OL Learn

Page count after Barcode Scan


I do have a simple workflow which using Barcode Scan plugin to segregate the input PDF file after detected QR Code.

Is there any possibility to count the total pages of the segregated PDF files?

Thanks and Regards,

Here are two fairly simple methods to achieve that. Both methods assume that the PDF is the current job file and that you have created a “PageCount” local variable in your process:

Method 1: Using metadata

  • Add a Create Metadata task and set it to passthrough mode
  • Use the Set Job Info and Variables task to store the page count in the PageCount variable using this expression : GetMeta(SelectedCount[0], 11, Job.Group[0].Document[0])

Method 2: Using a script

var myPDF = Watch.GetPDFEditObject();