Summary: | Attachments missing in PDF but according to file size their data is embedded | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Reinhard Nißl <reinhard.nissl> |
Component: | PDF Writer | Assignee: | Default assignee <ghostpdl-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | guenter, henrik.genssen, jandmc88+gs, jbrunet, rhaase |
Priority: | P2 | ||
Version: | 10.04.0 | ||
Hardware: | PC | ||
OS: | Windows 10 | ||
Customer: | Word Size: | --- | |
Attachments: | input and output files |
Description
Reinhard Nißl
2024-10-02 17:12:06 UTC
*** Bug 708065 has been marked as a duplicate of this bug. *** As noted in the title, the XML (both the embedded file and the metadata for ZuGFERD) is present in the output PDF file. The reason Acrobat can't find it is twofold; firstly because your PostScript program adds a /AF key to the Catalog dictionary. Since commit fc04328faeaa646359783eab980416020682ccaa pdfwrite now emits a /AF key for PDF/A-3 files, as this is a required entry. The result of your program adding one is that the Catalog now gets *2* /AF entries, which is illegal. In addition it seems Acrobat doesn't like an indirect reference which points to nothing more than an indirect reference. This commit 5d9b000c70f66f5be7bfaed1f16ef4e50d820dc6 prevents the indirection, and will not write the pdfwrite-generated /AF key if one already exists in the Catalog dictionary. You can update your PostScript program so that it doesn't write a /AF if you wish, or rely on pdfwrite not to add another one. *** Bug 708179 has been marked as a duplicate of this bug. *** *** Bug 708190 has been marked as a duplicate of this bug. *** Is there any MAC OS compiled version available having this fix ( http://www.ghostscript.com/cgi-bin/findgit.cgi?5d9b000c70f66f5be7bfaed1f16ef4e50d820dc6 ) included? Homebrew has 10.04 ... I have the same problem on win32. I tried myself with no luck and downloaded this example here (for win64 and changed it to win32) with no luck ether. https://github.com/kerm1t/zugferd Will you reopen this bug or should I open a new one? regards Hinnack |