[Interest] Combine PDF files into a single PDF File

Michael Jackson imikejackson at gmail.com
Fri Mar 29 14:42:19 CET 2013


On Mar 29, 2013, at 4:44 AM, Alejandro Exojo wrote:

> 2013/3/28 Michael Jackson <imikejackson at gmail.com>:
>> I would like to take a bunch of PDF files and combine them into a single PDF file. Would this be possible with Qt? I see where I can print an HTML file to a PDF but I have 60 html files that I want to convert into a single PDF file.
>> 
>> Thanks for any pointers
> 
> Also, note that there is the Qt-style API in Poppler. I think that
> last versions support PDF manipulation as well as rendering:
> 
> http://people.freedesktop.org/~aacid/docs/qt4/
> 
> -- 
> Alejandro Exojo Piqueras
> 
> ModpoW, S.L.
> Technova LaSalle | Sant Joan de la Salle 42 | 08022 Barcelona | www.modpow.es

I have been digging more into this and the QPrinter class has the method "newPage()" which I have been trying to use by basically calling print on the first rendered page, then calling printer->newPage(); then calling print on the next rendered page. Unfortunately this does not seem to work as all I get when complete is the last page printed.
 
  I really think this _should_ work but I have a feeling that I would have to create a custom QPainter class to actually do all of this.

 Comments? Thoughts? Ideas?

---
Mike Jackson


More information about the Interest mailing list