Splitting a PDF into separate pages
More Tips and tricks with BardecodeFiler…
Splitting a PDF into separate pages named after the last bar code value
This is a guide to splitting a PDF document into separate pages, renamed according to the last bar code value found using BardecodeFiler.
You can download BardecodeFiler from here.
Step 1: Start BardecodeFiler and click on the Options button.
Step 2: Reset your settings back to default – Under Import, Export & Reset Settings click on the Reset button.
Step 3: Go to Splitting/Mode and change the mode to “Split at fixed intervals” and also tick the option “Process images with no barcode“.
Step 4: Go to Reformat Barcode Values/Reformat Table and on the first line of the table enter the following in the left hand side: .* and the following on the right hand side: {0}. The .* matches any pattern of bar code and the {0} assigns the %VAL1 token with the entire value of the barcode. We can now use this token in our file naming template.
Step 5: Go to Output Files/Name Template and enter the following %PAGE_%VAL1. This will create file names based on a 3 digit page number followed by the value of the last barcode found in the document.
Variations:
Maybe every page has a unique barcode and you don’t want to use a barcode from a previous page if the application doesn’t find one. Well in this case just change Step 5 to enter %PAGE_%VALUES and if the page doesn’t contain a barcode then you will get a file called something like 001_NOVALUE. Then you can manually correct the NOVALUE files.
Alternatively you could un-tick the “Process images with no barcode” from Step 3 and allow these pages to go to the exceptions folder for manual handling.