I'd like to disagree there. If the framework gives me a high level option
to append a *whole* pdf document (which the Append function provides), I'm
expecting that it's doing just that, including the embedded file. On the
contraty, if I iterate over all pages and add each page sequentially, I
wouldn't expect the embedded files to be added as well (does this work?).
Even if we agree that the Append() function should only append the pages of
the given pdf file, there's still the effect that previously existing
embedded files are still hidden in the pdf, but cannot be accessed
(evaluated by looking at file sizes). That's inconsistent if we agreed that
the function only appends pages.
So I think, either something has to be done to make the embedded files
accessible again (where I would need help for) or the embedded files should
be ignored at all when using the Append() function, so the result pdf size
won't increase by the size of the previously existing embedded files.
Frederik
2017-03-07 14:54 GMT+01:00 Leonard Rosenthol <lrose...@adobe.com>:
> Appending is not the same as Attaching.
>
>
>
> Appending is what the name implies – append the pages from one to the
> other. So that a appending a 10 page document to another 10 page document
> yields a document with 20 pages.
>
>
>
> Attaching is the same as it is with Email or using a ZIP file. You are
> adding the files “inside of” the primary file – but not as part of the
> content.
>
>
>
> Leonard
>
>
>
> *From: *"F. E." <exler7...@gmail.com>
> *Date: *Tuesday, March 7, 2017 at 8:44 AM
> *To: *"podofo-users@lists.sourceforge.net" <podofo-users@lists.
> sourceforge.net>
> *Subject: *[Podofo-users] Appending PDF: Embedded files of appended file
> not accessible in result pdf
>
>
>
> Hello dear podofo users,
>
> recently I experimented with merging multiple pdf files into one pdf using
> the Append function of PdfDocument. It works like a charm with the pdf
> pages and annotations, but I recognised that attached files (at document
> root) of appended pdfs are not listed in the attachment table of my pdf
> viewer (Foxit 8.0, didn't check other viewers I've got to admit). When
> checking the size of my result pdf, it was clear that the embedded files
> are still there somewhere, but I cannot access them it seems.
>
> Is this the expected behaviour or did I stumble over a bug / missing
> feature here? I think there might be a way to recreate the necessary
> internal references, but I'm lacking the knowledge to do so. I could
> circumvent this issue by manually extracting the embedded files (I know how
> to do that) and adding them to the result pdf (trivial via AttachFile
> function), but I don't know how to remove the embeeded files before
> appending the pdf file.
>
> Thanks in advance,
>
> Frederik
>
>
>
------------------------------------------------------------------------------
Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
http://sdm.link/oxford
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users