Print Page | Close Window

Embed XML in pdf (ZUGFeRD)

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=3495
Printed Date: 27 Apr 24 at 9:32AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Embed XML in pdf (ZUGFeRD)
Posted By: skoschke
Subject: Embed XML in pdf (ZUGFeRD)
Date Posted: 24 Aug 17 at 1:02PM
Hi,

with this code i put a xml file into the pdf:

PDF.EmbedRelatedFile('ZUGFeRD-invoice.xml', xml_filename,'text/xml', 'Alternative', 1);

In a validation portal i get following messages:

Embedded files - Desc key fehlt im file specification directory (Das file specification dictionary einer eingebetteten Datei sollte den Desc key enthalten.) 

and

 Color spaces - Device color space CMYK used 

What is wrong?

Ciao
Stefan



Replies:
Posted By: Ingo
Date Posted: 24 Aug 17 at 10:52PM
Hi Stefan,

the new function (since version 13.12) isn't in the online reference yet - so no further information about it.
I've tried it with Google (why you don't do it by yourself?):
file specification dictionary desc key missing
... and there are many results for you to read ;-)
i think it has to do with the "text/xml".
Try EmbedFile - it's easier ;-)



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



Posted By: skoschke
Date Posted: 25 Aug 17 at 5:56AM
EmbedFile can not embed the xml-file for ZUGFeRD, this is a special format, see last parameter for EmbedRelatedFile = 1!

Ciao
Stefan


Posted By: Ingo
Date Posted: 25 Aug 17 at 10:16PM
Hi,

like i've told:
You've something to do with "text/xml".
Something not having to do with QuickPDF.
Try Google...;-)



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



Posted By: skoschke
Date Posted: 26 Aug 17 at 7:45AM
EmbedRelatedFile is a function from Quick PDF library and this doesn't work correct!

Ciao
Stefan


Posted By: Ingo
Date Posted: 27 Aug 17 at 7:35PM
if you think that's a prob inside QuickPDF then you should post it into the official Debenu-forum for things like this.
This here is only the user-user-forum ;-)



-------------
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