How to split a document with 126 pages with Javascript

New Here ,
Jul 26, 2017

Copy link to clipboard

Copied

Hello,

I hope that somebody can help me, with the next questions.

I'm looking for a script that can automatic splitting and save a document (in this case 126 pages) into a maximum off 6 pages so that's means 21 (126/6) separate documents.

If the splitting in to 6 pages is possible, than the next question is: On the third page off every document is a description, is it possible that this description can be the name off the file? What I want is if I save the file, than it's namend "AMENDE3333666446727181". As an example see the attachment (in Dutch), I have marked the description.... Note: the description is different every time.

AMENDE.PNG

TOPICS
Acrobat SDK and JavaScript

Views

232

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

How to split a document with 126 pages with Javascript

New Here ,
Jul 26, 2017

Copy link to clipboard

Copied

Hello,

I hope that somebody can help me, with the next questions.

I'm looking for a script that can automatic splitting and save a document (in this case 126 pages) into a maximum off 6 pages so that's means 21 (126/6) separate documents.

If the splitting in to 6 pages is possible, than the next question is: On the third page off every document is a description, is it possible that this description can be the name off the file? What I want is if I save the file, than it's namend "AMENDE3333666446727181". As an example see the attachment (in Dutch), I have marked the description.... Note: the description is different every time.

AMENDE.PNG

TOPICS
Acrobat SDK and JavaScript

Views

233

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 26, 2017 0
Most Valuable Participant ,
Jul 26, 2017

Copy link to clipboard

Copied

Splitting the file into 6-page files is easily done. In fact, you don't need a script for it. You can use the Split Document command to do it.

Using specific text for the file name of each part is possible in theory, but implementing it is not easy, and in some cases it doesn't work.

In the screenshot you attached it seems that he file is scanned. Has Text Recognition been executed on it? Are you able to copy the text and paste it into Notepad, and it comes out correctly? If so, there's still the issue of identifying the transaction ID on the page.

Without seeing some sample files it's nearly impossible to say for sure whether it's possible or not.

Can you share some pages publicly (via Dropbox, Google Drive, Adobe Cloud, etc.)? Or if you prefer to share them privately you can send them to me directly to try6767 at gmail.com.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 26, 2017 0
New Here ,
Jul 27, 2017

Copy link to clipboard

Copied

I know that you can do splitting by use the split document command, but that's not what I want.

What I want is that it happens automatically, through a predefined template..... in this case for example if you choose the template France, adobe knows that the file has 6 pages.

The answer to the other question is: Yes if I select the text and put it in Notepad, than the text is still correctly.

I will send the document to your gmail account, hopefully it is possible what I what.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 27, 2017 0