Hi, Sure! This is possible with PoDoFo. If you open a PDF file as a PdfMemDocument, you acess each page as a PdfPage.
Using PdfPage::GetContents() you can retrieve a PdfObject, which has a
PdfStream. The easiest way is to append to the PdfStream or, if you need more
modifications than just appending, you can retrieve the old contents as plain
text using PdfStream::GetFilteredCopy ... modify the data and set it as the
new stream for the object using PdfStream:Set ... voila :)
So it is possible, if you have more detailed questions - I am sure we can help
on this list.
best regards,
Dom
Am Mittwoch, 14. Januar 2009 schrieb Michael Marsella:
> Hello,
>
> I am currently in the process of evaluating PoDoFo, I have it building,
> and have been going over the API docs, I am a little unclear if there is
> a way to modify the page contents stream of a PDF file and have that
> saved back to the same file.
>
> Specifically I want to add marked content tags to each item in the
> content stream.
>
> Can anybody help clarify if this is possible with PoDoFo?
>
> Cheers!
> ~Michael Marsella
>
>
>
>
> ---------------------------------------------------------------------------
>--- This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Podofo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/podofo-users
--
**********************************************************************
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
**********************************************************************
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
