Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Embed XML in pdf (ZUGFeRD 2.1)
  FAQ FAQ  Forum Search   Register Register  Login Login

Embed XML in pdf (ZUGFeRD 2.1)

 Post Reply Post Reply
Author
Message
sko View Drop Down
Team Player
Team Player


Joined: 13 Feb 19
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote sko Quote  Post ReplyReply Direct Link To This Post Topic: Embed XML in pdf (ZUGFeRD 2.1)
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
sko View Drop Down
Team Player
Team Player


Joined: 13 Feb 19
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote sko Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
sko View Drop Down
Team Player
Team Player


Joined: 13 Feb 19
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote sko Quote  Post ReplyReply Direct Link To This Post 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


Edited by sko - 01 Apr 20 at 9:02AM
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store