Re: [Podofo-users] podofo vs. libpoppler: What should a pdf-parsing application use?
A PDF parsing, modification and creation library.
Brought to you by:
domseichter
|
From: Leonard R. <leo...@pd...> - 2007-02-13 12:24:50
|
On Feb 12, 2007, at 11:38 PM, Craig Ringer wrote: > Thanks. That seems pretty sane, and is the general way I was > thinking of > doing it in Scribus originally (before I jumped on board with > PoDoFo). I > just wasn't sure how to handle some of the specifics. If you're happy > with how the form xobject approach works that's what I'm inclined to > implement for PoDoFo. > That's the same approach used by everybody else - so yes, go for it! Only thing to remember, that might not be apparent, is to merge the streams. A Form XObject can only have a single content stream but a page can have an array of them - so you need to merge any arrays into a single streams AND remember to put a single whitespace char between each stream ;). > Guys, how does > PdfObject* PdfDocument::CopyPageAsForm(const PdfPage*) > sound? It'd deep copy all resources to the new document (renumbering > indirect objects in the process), update references in the copied > objects, and generate a form object for the copied page. > Sounds good to me. Leonard |