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!
![]() |
Embed XML in pdf (ZUGFeRD 2.1) |
Post Reply ![]() |
Author | |
sko ![]() Team Player ![]() Joined: 13 Feb 19 Status: Offline Points: 33 |
![]() ![]() ![]() ![]() ![]() 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 |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
sko ![]() Team Player ![]() Joined: 13 Feb 19 Status: Offline Points: 33 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
sko ![]() Team Player ![]() Joined: 13 Feb 19 Status: Offline Points: 33 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store