Write the XML file contents into PDF

Post Reply
bx609311029
Newbie
Posts: 5
Joined: Mon Nov 11, 2013 3:04 am

Write the XML file contents into PDF

Post by bx609311029 »

Write the XML file contents into PDF.

The use of private property.

It is best written switchscripter.

thank you!

Boris
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

Write the XML file contents into PDF

Post by dkelly »

With the exception of XMP metadata, Switch can not modify a PDF file directly. It needs another program such as Pitstop. If you want to write a private key into a PDF you will need a specialized tool such as pdflib or a customized version of an open source tool.
bx609311029
Newbie
Posts: 5
Joined: Mon Nov 11, 2013 3:04 am

Write the XML file contents into PDF

Post by bx609311029 »

I should go to find these tools?Can send a link?And the method of use!thank you
bx609311029
Newbie
Posts: 5
Joined: Mon Nov 11, 2013 3:04 am

Write the XML file contents into PDF

Post by bx609311029 »

I tried to use XSLT converts the XML to XMP, but XMP can't pick up into PDF
freddyp
Advanced member
Posts: 413
Joined: Thu Feb 09, 2012 3:53 pm

Write the XML file contents into PDF

Post by freddyp »

There is an "XMP inject" element which does exactly what you want. However, contrary to what you may think "XMP inject" does not directly inject an external XML into a PDF. When you look at the properties of "XMP inject" you will see that it injects a dataset, so your XMP has to be a dataset first.



In other words, after the transformation you pick up your XML so it becomes a dataset and then use "XMP inject". Done.



Here is an example of what your XMP should look like:









Freddy

Pieters

Enfocus









When the structure of your XMP is different, it will also not work.



Freddy
Post Reply