Skip to main content
Participant
April 19, 2016
Question

split one pdf to se

  • April 19, 2016
  • 2 replies
  • 1016 views

i dont know if this is common thing but i would like to split one pdf into multiple files heres the senero.

1.) The pdfs are generated by adobe print to pdf. ( i could use other means such as print to file)

2.) The documents could be pages 1-1, 1-2, 1-3, or 1-4  out of over 100 pgs mixed together, with 40- 50 invoices within the generated pdf doccument so the standard split function by X amount of pages would not work.

3.) Each invoice will have the same invoice number on all pages in the same location. also the doccumnets are numbered per invoice.

4.) I can print each individual invoice and save it as the invoice number but its taking too long.

so my question is there any way to split a pdf based on a certain cryteria on the documnet then have that document save with that key word as the file name that splits it.

Challange- No 3rd party applications can be used only program can be used is adobe or any of the microsoft office programs.

This topic has been closed for replies.

2 replies

Participant
June 2, 2016

Sorry for the delay in a response, Currently I'm still stuck in the same situation. I've found an easier task with splitting the documents but would still like to find a JavaScript to automate the task

What I am currently doing to split my documents are:

Selecting my text Ex.  "6145YX36"  Note this can be any number like this

Then I create a bookmark: "CTRL + B"

after I scroll through all the documents I then go into > organize pages > split > top level bookmarks> change my output options and use bookmark names for file names.

Inspiring
June 24, 2016

You can use JavaScript to check each word on  a page in a PDF and use the RegExp object to test each word t see if it has an invoice number in the format of the invoice number. One notes the first and last page that this number appears on. Using this range one can extract that page range into a new file or store in an array for later processing.

try67
Community Expert
Community Expert
April 19, 2016

There's no built-in option in Acrobat that does that. It can be done using a script (under some circumstances), though. I don't know if you consider that a "3rd party application" or not...

Participant
April 19, 2016


I do know that it can be done through a script which i would like to work with if it does the job, how to build it im unsure on how that can be done. The 3rd parry applications would include adpdf, or other programs that would be required to be downloaded. I am currently exploring on converting the pages to Microsoft word and using a macro to separate the docs based on the invoice numbers, then reconvert the files back to a pdf, but again im unsure how to use macros. If i can do the splits within adobe program or useing a bat file that would be better.

try67
Community Expert
Community Expert
April 19, 2016

In principle it's possible to do it with Acrobat using a script, as I said, but to know for sure if it's possible in your case you would need to share a sample file.