Datamapper Extract field for number of pages in record (PDF)

Hi there

Is there a way to have an extract field in Datamapper that returns how many pages are in each record? I mean it shows the actual pages in the PDF viewer, so why not the page count?

To get the number of pages in the current record in a PDF based data mapping configuration:

  • Add an Extract Field based on Javascript
  • Use the folloing expression: steps.totalPages;

More information about the steps object is available here:

PReS Connect 1.6.1 User Guide?

Perfect. Thank you Rod