Compare page count and route job accordingly

Post Reply
popniete
Newbie
Posts: 10
Joined: Thu Apr 19, 2018 11:22 am

Compare page count and route job accordingly

Post by popniete »

Hi
I'm failing on a problem I thaught would be simple: I want to route a jobfolder to folder A, if all contained PDFs have the same page count. If not, route job to folder B. Any hints on this? Thanks!
laurentd
Member
Posts: 137
Joined: Wed Mar 13, 2019 2:06 pm

Re: Compare page count and route job accordingly

Post by laurentd »

Here is a flow to solve this:

• First ungroup the job and write the number of pages of each file in a private data, "pages".
• Assemble the job with metadata merge, the "pages" private data will be the one of one of the files in the job.
• Ungroup the job again, and check if the number of pages of each file equals the "pages" private data.
• If not, add a "pageCount" private data with value "different".
• Then assemble the job again with metadata merge.
• Sort the jobs based on that "pageCount" private data.
.
sort jobs with different page count.png
sort jobs with different page count.png (19.83 KiB) Viewed 2335 times
sort jobs with different page count.sflow.zip
(15.11 KiB) Downloaded 184 times
Laurent De Wilde, Solution Architect @ Enfocus
freddyp
Advanced member
Posts: 1008
Joined: Thu Feb 09, 2012 3:53 pm

Re: Compare page count and route job accordingly

Post by freddyp »

I am interested in knowing a bit more about the use case. Why do the number of pages have to be the same? How many files can there be inside the job folder? How many pages can there be?
popniete
Newbie
Posts: 10
Joined: Thu Apr 19, 2018 11:22 am

Re: Compare page count and route job accordingly

Post by popniete »

Hi Laurent, thank you so much, this does exactly what I need!
Tobi
Post Reply