OL Learn

Output preset - split when document reaches X number of pages, but without splitting a document in two

Given a datamapper that has several thousands records and a template that creates variable sections for each (the number of pages of each record is unknown before), is it possible to create and output preset that creates merged PDFs with no more than, let’s say, 1000 pages but without splitting the pages of a record between two files?

For example, given a limit of 15 pages per file:

  • Record A has 10 pages
  • Record B has 17 pages
  • Record C has 3 pages

Expected output:

  • File One with 17 pages (record A and B), even if the number of pages is higher than the threshold, a record cannot be split, so all the record B is included
  • File Two with 3 pages (record C)