PDA

View Full Version : Inserting PDF metadata



Randria
14th May 2009, 15:13
Hi all,

I was able to generate a PDF file using QPrinter :


QPrinter printer;
printer.setOutputFormat(QPrinter::PdfFormat);
printer.setOutputFileName(pdfFile.fileName());


I know that Qt just can render a PDF file in order to visualize it and not to work with it. My probleme is that I want to insert some informations in the given pdf file to simplify its indexation on a Database.
So I'm wondering if there's a library that can manipulate a pdf metadata.

Thanks in advance

jpujolf
18th May 2009, 07:48
Take a look at Poppler, perhaps can help you...

http://doc.trolltech.com/qq/qq27-poppler.html

http://poppler.freedesktop.org/

Lykurg
18th May 2009, 10:18
poppler is only a rendering library for pdf files. If you want manipulate the content of a pdf file you could e.g. use pdftk (http://www.accesspdf.com/pdftk/).