Bug 708065 - ZUGFeRD: XML is not included in the PDF with GS 10.04.0
Summary: ZUGFeRD: XML is not included in the PDF with GS 10.04.0
Status: RESOLVED DUPLICATE of bug 708066
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: 10.04.0
Hardware: PC Windows 10
: P2 normal
Assignee: Default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-02 13:29 UTC by rhaase
Modified: 2024-10-11 08:07 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
ZUGFeRD-PDF without XML includet (106.74 KB, application/x-zip-compressed)
2024-10-02 13:29 UTC, rhaase
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rhaase 2024-10-02 13:29:40 UTC
Created attachment 26088 [details]
ZUGFeRD-PDF without XML includet

It seems to be due to GS 10.04.0 that the ZUGFeRD-XML is no longer included in the PDF. 

1)
example line:

"C:\Program Files (x86)\gs\gs10.04.0\bin\gswin32c.exe" --permit-file-read="C:\Program Files (x86)\gs\gs10.04.0\*";"d:\TEST\GS\*" -sDEVICE=pdfwrite -dPDFA=3 -sColorConversionStrategy=RGB -sZUGFeRDXMLFile=d:\TEST\GS\Beleg_V22_27628_20240923.xml -sZUGFeRDProfile="C:\Program Files (x86)\gs\gs10.04.0\iccprofiles\default_rgb.icc" -sZUGFeRDVersion=2p1 -sZUGFeRDConformanceLevel=EXTENDED -o d:\TEST\GS\Zugferd_Beleg_V22_27628_20240923.pdf "c:\Program Files (x86)\gs\gs10.04.0\lib\zugferd.ps" d:\TEST\GS\Beleg_V22_27628_20240923.pdf"

2)
The same cmd call works with gs version 10.3.1 (To check this, I copied the gswin32c.exe in version 10.3.1 into the path “C:\Program Files (x86)\gs\gs10.04.0\bin\gswin32c.exe” to be absolutely sure that there is no error in the call).
Comment 1 Ken Sharp 2024-10-11 08:07:59 UTC
For anyone who reads this in future; this is an example of 'please don't guess at the problem'.

The output file in fact contains the XML (both the XML invoice *and* the ZuGFERD specific XML metadata) and with no other information I would simply have closed this bug report, pointing this out.

Fortunately the bug report this is marked as a duplicate of came in nearly simultaneously. That report doesn't state that the XML is missing (which it isn't) but sensibly points out that Acrobat can't find it.

*** This bug has been marked as a duplicate of bug 708066 ***