Copy link to clipboard
Copied
Hi would really appreciate advice and expertise on a task I will like to do described below but given that I have very little expertise in Javascript but have Acrobat Pro DC, I am stuck.
I have a report that contains multiple reports in a single pdf which I want to split it into individual reports. The cover page of each report has a report number XPD Report - nnn. I want to be able to search for a specific string ("XPD Report") within the pdf, and then save the sequence of numbers that come after that string for my file name ("001","002"...). I would want to extract the cover page and the succeeding pages of the XPD report and include it into one pdf until it finds another unique XPD Report.
For example,
page 1 XPD Report - 001
page 2
page 3 XPD Report - 002
page 4
page 5 XPD Report - 003
page 6
page 7
Using this example, pages 1 and 2 would be extracted into one pdf together. Page 3 and 4 would be extracted by itself, and pages 5, 6 and 7 would be extracted into one pdf.
I was trying to replicate as much as possible what I could find of the codes in the forum link below and running as an Action in Action Wizard, but to no avail.
https://forums.adobe.com/thread/2502247?q=Split%20PDF%20based%20on%20content%20but%20not
Copy link to clipboard
Copied
XPD Report are 2 words in the PDF file. You must test for "XPD" and "Report".