Sorting a split PDF by pagenumbers using metadata
Posted: Thu Feb 14, 2013 10:17 pm
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
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