Sorting a split PDF by pagenumbers using metadata

Post Reply
Nico
Newbie
Posts: 1
Joined: Fri Jan 04, 2013 2:10 pm

Sorting a split PDF by pagenumbers using metadata

Post by Nico »

Hi everyone,



I am using Switch 11 and pdfToolbox 6 Server.



Today I realized that it is not possible to use pdfToolbox to convert user defined pages (e.g. 1,3,6) into grayscale (or I did not find the right option :/).



Due to that I decided the split the pdf, than ungroup and now want to sort the files by using saved metadata.



I thought that this should be possible by edit the connection to the pdfToolbox configurator using "define conditions using variables"



In the metadata the pages are saved as followed:





...

<convertgray>

<pages>(_1.pdf|_5.pdf|_6.pdf)</pages>

</convertgray>

...





I made two attempts so far:



1. [Job.Name] contains [Metadata.Integer:Path="/root/errors/convertgray/pages",Dataset="Xml",Model=XML]



2. [Job.Name:Search="[Metadata.Integer:Path="/root/errors/convertgray/pages",Dataset="Xml",Model=XML]"] is true





Using #1 is just routing all files to the conversion. #2 is not accepted by Switch, It shows a syntax warning:

Variable "Job.Name has incorrect syntax in 'Include these jobs': unexpected "/" character after the argument value; expected characters are ',' or ']'


I hope the problem is understandable and you can help me with this :)



Greetings

Nico
freddyp
Advanced member
Posts: 413
Joined: Thu Feb 09, 2012 3:53 pm

Sorting a split PDF by pagenumbers using metadata

Post by freddyp »

Not having the complete setup that you have this is not tested, but based on your description I am pretty sure you have to make the condition with [Job.Name] on the left-hand side , the condition "Matches", and the regular expression that you pick out of the metadata on the right-hand side.



Using 1 Smart Preflight variable you can pass the pages to be converted to black and white to PitStop Server, so there is no need to split the file and put it back together again.



Freddy
Post Reply