How to add trim box in PDF according size mentioned in XML

mrkkrai
Newbie
Posts: 16
Joined: Thu Mar 17, 2016 4:31 pm

How to add trim box in PDF according size mentioned in XML

Postby mrkkrai » Tue Jun 27, 2017 3:38 pm

I'm trying to add trim box in a PDF automatically according to size mentioned in XML file. (Please see below, sizes are highlighted).

<ValueDescription Type="metadatafields">
<MF_1 LocalizedTagName="Project Name" Tooltip="Project Name" ReadOnly="No" Editor="inline" Subtype="inline" Type="string" ValueIsRequired="No" RememberLastValue="Yes" Format="" Default="">Congo Textbooks</MF_1>
<MF_2 LocalizedTagName="Job Code" Tooltip="Job Code" ReadOnly="No" Editor="inline" Subtype="inline" Type="string" ValueIsRequired="No" RememberLastValue="Yes" Format="" Default="">CON031</MF_2>
<MF_3 LocalizedTagName="Job Name" Tooltip="Job Name" ReadOnly="No" Editor="inline" Subtype="inline" Type="string" ValueIsRequired="No" RememberLastValue="No" Format="" Default="">XYZ</MF_3>
<MF_4 LocalizedTagName="Pages" Tooltip="Pages" ReadOnly="No" Editor="inline" Subtype="inline" Type="number" ValueIsRequired="No" RememberLastValue="No" Format="" Default="">60</MF_4>
<MF_5 LocalizedTagName="Width (mm)" Tooltip="Width (mm)" ReadOnly="No" Editor="inline" Subtype="inline" Type="number" ValueIsRequired="No" RememberLastValue="No" Format="" Default="">176</MF_5>
<MF_6 LocalizedTagName="Height (mm)" Tooltip="Height (mm)" ReadOnly="No" Editor="inline" Subtype="inline" Type="number" ValueIsRequired="No" RememberLastValue="No" Format="" Default="">250</MF_6>
<MF_7 LocalizedTagName="Inner Colour" Tooltip="Inner Colour" ReadOnly="No" Editor="inline" Subtype="inline" Type="enum:1C;2C;4C" ValueIsRequired="No" RememberLastValue="No" Format="" Default="">4C</MF_7>
<MF_8 LocalizedTagName="Inner GSM" Tooltip="Inner GSM" ReadOnly="No" Editor="inline" Subtype="inline" Type="number" ValueIsRequired="No" RememberLastValue="No" Format="" Default="">80</MF_8>
<MF_9 LocalizedTagName="Cover" Tooltip="Cover" ReadOnly="No" Editor="inline" Subtype="inline" Type="enum:4+0;4+1;4+4" ValueIsRequired="No" RememberLastValue="No" Format="" Default="">4+4</MF_9>
<MF_10 LocalizedTagName="Cover GSM" Tooltip="Cover GSM" ReadOnly="No" Editor="inline" Subtype="inline" Type="number" ValueIsRequired="No" RememberLastValue="No" Format="" Default="">250</MF_10>
<MF_11 LocalizedTagName="Binding" Tooltip="Binding" ReadOnly="No" Editor="inline" Subtype="inline" Type="enum:Perfect Bound;Saddle-stitched;Thread-sewn" ValueIsRequired="No" RememberLastValue="No" Format="" Default="">Saddle-stitched</MF_11>
</ValueDescription>

abailescollins
Member
Posts: 90
Joined: Wed Apr 22, 2015 4:28 pm

Re: How to add trim box in PDF according size mentioned in XML

Postby abailescollins » Fri Jun 30, 2017 3:10 pm

You'll need to set up a variable set and use an xpath to pull those values out of the XML.
Then in the preflight profile instead of using a number, link to the variable.

you then drop the xml and pdf into the hotfolder, but you need to be able to associate them, normally this is by filename.
Unless you have Switch of course in which case there are multiple options
PitStop Product Manager @ Enfocus.
andrewb@enfocus.com


Return to “PitStop Server”



Who is online

Users browsing this forum: No registered users and 1 guest