On Wed, 2017-04-05 at 21:47 +0800, Shawn Lee wrote:
> PdfDocument::FillXObjectFromDocumentPage call PdfDocument::Append with 
> bAppendAll = false,

        Hi,
the problem with bAppendAll set to true is that it really appends
everything to the existing document. Which means that if you've
a 100-pages document and you'd like to use this function to take from
it only say 5 pages, then the resulting document might be 5-times
larger than the source document, still showing only 5 pages.

For that I believe the FillXObjectFromDocumentPage() function is not
truly meant to append whole source document. Better to use other
functions to achieve the same.

Just my opinion. (You probably know, the problem to extract only used
resources for certain page is rather complex, for example consider also
annotations and so on.) 
        Bye,
        zyx

-- 
http://www.litePDF.cz                                 i...@litepdf.cz

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to