These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Automating page splitting based on data fields

dstott
Registered: Feb 19 2008
Posts: 6
Answered

I've been pointed to this forum by Adobe Sales Support.
Looking for the ability to, on an on-going basis, split a large pdf file based on the data within. Example every time an a User Code changes on the page we'd like to create a new PDF file for that user (as a means of securing sensitive data). I've been told that Java Scripting may be necessary. Has anyone successfully solved a similar problem and if so can you point me in the direction to achive similar results?

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Splitting pages based on page content is a common operation. In fact, there are some 3rd party tools (look at www.artspdf.com) for this.

But Acrobat JavaScript can also be used. Look at the "doc.extractPages()" and "doc.removePages()" function in the Acrobat JavaScript Reference. Find the reference and more info here:

http://www.adobe.com/devnet/acrobat/javascript.php

As for detecting where the split should be. Is the data in form fields or on the page content?

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

dstott
Registered: Feb 19 2008
Posts: 6
"As for detecting where the split should be. Is the data in form fields or on the page content?"


The data is columnized. The data we'd like to split on is one (column) field