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)
  FAQ FAQ  Forum Search   Register Register  Login Login

Embed XML in pdf (ZUGFeRD)

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


Joined: 11 Jan 17
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote skoschke Quote  Post ReplyReply Direct Link To This Post Topic: Embed XML in pdf (ZUGFeRD)
    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
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: 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

Back to Top
skoschke View Drop Down
Team Player
Team Player


Joined: 11 Jan 17
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote skoschke Quote  Post ReplyReply Direct Link To This Post 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
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: 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

Back to Top
skoschke View Drop Down
Team Player
Team Player


Joined: 11 Jan 17
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote skoschke Quote  Post ReplyReply Direct Link To This Post Posted: 26 Aug 17 at 7:45AM
EmbedRelatedFile is a function from Quick PDF library and this doesn't work correct!

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

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