Exercise 3: Sorting files by information contained within the PDF file

Instruction

Duplicate the flow you created in exercise 1 and change the sorting method; instead of sorting based on file type or file name pattern (exercise 2), now the input should be sorted on information from within the PDF file. In this example, only documents with a trim box size of 144 x 252 pixels should be routed to the PDFs folder.

Note: Other information that could be used to sort files is for example: page width and height, page count or color model used.

Test files

This method can be useful to confirm or use information that is native to the PDF files you're processing.

For example, if you have a workflow for business card production, you may want to confirm the files entering the workflow are business card size. This would allow you to look at the actual size defined within the file and confirm it's correct before processing.

Download the test files: http://www.enfocus.com/manuals/Extra/Switch/Switchtutorial.zip

Solution

  • Review the step-by-step solution.
  • Check the result in your own copy of Switch. To do so, import Tutorial 1C Flow.sflow (included in the zip package, under Tutorial Flows) by selecting Flows > Import Flows .
  • Have a look at the video explaining how to build this flow http://youtu.be/GIwDS8kvnvw.