PDF is not designed for the task you wish. The on disk serialization has no
bearing on the in-memory representation. White space, key sort order,
comments, etc. are not persisted into memory so they cannot be put back when
re-serialized. If you need the original – then keep the original around.
Of course, if you don’t need the original “byte-for byte”, then PoDoFo will be
happy to create a new PDF from the in-memory objects.
Leonard
From: Riaan Du Plessis
Date: Friday, February 13, 2015 at 6:22 AM
To:
"podofo-users@lists.sourceforge.net<mailto:podofo-users@lists.sourceforge.net>"
Subject: [Podofo-users] Podofo Library Questions
Good day
I am evaluating the Podofo library for a project that I am currently involved
in.
Part of the requirements are to load and interrogate a PDF document and persist
it back to disk - but without making any modifications to the file. Some system
boundaries prevent me from having access to the original file once it has been
loaded into memory (in this case using Podofo) - therefore requiring me to use
the data made available by Podofo when writing the file back to disk.
Does the Podofo object structure allow for reconstructing the original document
this way - especially taking into account de/re-encrypting a provided document?
Additionally, I need access to the original byte data for each identified
PdfObject - not only the way it is represented by the PdfDataType derived
objects. Does the library currently support this requirement?
Kind Regards
Riaan du Plessis
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users