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

Post Reply
mrkkrai
Member
Posts: 27
Joined: Thu Mar 17, 2016 4:31 pm

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

Post by mrkkrai »

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
Advanced member
Posts: 458
Joined: Wed Apr 22, 2015 4:28 pm

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

Post by abailescollins »

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
Head of Product Management @ Ultimate
abc@imposition.com
Post Reply