Hi

PoDoFo is able to do add additional content to existing PDFs. Please have a 
look into the WatermarkTest in the test/ subdirectory of the PoDoFo 
distribution. This example will draw lines on every page of an existing PDF. 
It is a simple task to replace the DrawLine call's with CreateFont and 
DrawText methods.

I cannot give a general solution how you can determine where to add the text. 
In the worst case you have to parse the content stream to find the position 
where you add your text. If you have the posibility to add extra objects to 
the original PDF it might make your life easier.
Maybe we can help you if you can provide us with a more concrete description 
of your problem.

Best regards,
        Dom



Am Montag 30 November 2009 schrieb Sheldon Porcina:
> I need the ability to load a third-party PDF and add text to
> it programmatically via c++ code.  Can PoDoFo handle this?  How would I
> determine where to add text in the document?  Does it require me to add
> objects to the original PDF first?
> 

-- 
**********************************************************************
Dominik Seichter - [email protected]
KRename  - http://www.krename.net  - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game,  for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to