Print Page | Close Window

Embed XML in pdf (ZUGFeRD 2.1)

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3798
Printed Date: 29 Apr 24 at 8:52AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Embed XML in pdf (ZUGFeRD 2.1)
Posted By: sko
Subject: Embed XML in pdf (ZUGFeRD 2.1)
Date Posted: 31 Mar 20 at 8:36AM
Hi,

using QuickPDF 17.11...

I want to embed a xml file to PDF-A for ZUGFeRD invoices.
In Options i can use 

0 = Regular embedding
1 = ZUGFeRD mode

but if i set Options to 1 the title for xml in PDF always is "ZUGFeRD-invoice.xml" but in ZUGFeRD documentation for ZUGFeRD 2.1 the sample PDF contains "factur-x.xml' as title!

What can i de to embed a ZUGFeRD xml with title "factur-x.xml'?

Thanks
Stefan



Replies:
Posted By: Ingo
Date Posted: 31 Mar 20 at 8:46AM
Hi Stefan,

sorry but "ZUGFeRD-invoice.xml" is a fix string used inside the source.
But what's the sense of an additional
french made "factur-x.xml"?
Is ZUGFeRD a standard or not?
Perhaps you can initiate a second step changing
"ZUGFeRD-invoice.xml" to your "factur-x.xml" accessing directly to the content?
Ask the publishers via the official support page.



-------------
Cheers,
Ingo



Posted By: sko
Date Posted: 01 Apr 20 at 6:23AM
The ZUGFeRD documentation says:

"Die XML-Rechnungsdatei wird stets mit dem Namen factur-x.xml eingebettet."

ZUGFeRD 2.1 for germany is now the same as for france so i have to use the correct file title.

i wonder why Debenu uses fix "ZUGFeRD-invoice.xml" and ignores the parameter filetitle!

How to "accessing directly to the content?"

Ciao
Stefan


Posted By: Ingo
Date Posted: 01 Apr 20 at 6:56AM
Hi Stefan,

changes like the described one will last.
The ZUGFeRD-option itself lasts as well.
If you have the source you can change this easily (i've checked it already).
What you can do is decrypt the pdf and read the full pdf-content into a stream.
In the stream you'll find strings from the embedded xml like this:
<zf:DocumentFileName>ZUGFeRD-invoice.xml</zf:DocumentFileName>
Change this on the fly to the new content and try to save the stream again as pdf/a 3b.
That can be a solution...




-------------
Cheers,
Ingo



Posted By: sko
Date Posted: 01 Apr 20 at 9:01AM
Hi,

i have no source from Debenu Foxit, only dcu files :-(

"decrypt the pdf "
"Change this on the fly to the new content and try to save the stream again as pdf/a 3b."

How to decrypt and how to save again as pdf/a 3b?

I have tried to patch the pdf in Hexeditor, but when testing file "incorrect document structure"

the only reasonable solution is to use the parameter "filetitle" from the procedure and i hope it will be an update from foxit.

Ciao
Stefan


Posted By: Ingo
Date Posted: 17 Jul 20 at 10:46PM
Hi Stefan,

the new release 18.11 has additional options
like 20 for ZUGFerd 2.0 and 21 for ZUGFeRD 2.1.
Because 2.1 is compatible with factur-x using option 21 the title will be "factur-x".



-------------
Cheers,
Ingo




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk