Copy link to clipboard
Copied
Hi all,
I am currently trying to source a method to separate a bulk pdf containing multiple letters with varying lengths into groups of letters containing 8 pages, 7 pages, and 6 pages to simplify the letter insertion stage after printing. I am unsure how the data is sorced but all letters will be placed into one PDF.
There isn't any data that is used on all pages. There is one reference number that is used on every page of the letter except for the first one of each letter. I was thinking that I could use the page numbers being in the format of 1 of 8 and so on.
Any suggestions would be very much appreciated. Thank you!
Copy link to clipboard
Copied
If there's text that says "Page X of Y" on each page then it should be possible to identify each letter and then split it to a new file. This will require the development of a custom-made script, though.
I've created many similar tools for my clients in the past and would be happy to have a look at a sample file and let you know if I think it's doable, and if so, for how much. If you're interested, feel free to contact me privately by clicking my user-name and then on "Send a Message" to discuss it further.
Copy link to clipboard
Copied
Hi Try67,
Thank you for your response!
So the pages do have "Page x of y". I have been looking at potential scripts but it's proving to be a challenge to find something that works for me. I don't have much experience with scripts but I did find something that partially works. What I mean by that is that I can search one word and extract pages containing that but I was hoping that I could extract pages into a new PDF that have "of 8" and so on so that there's one file with all 8 page letters, one with 7 page letters, and one with 6 page letters but that didn't work.
This is what I tried:
Copy link to clipboard
Copied
Just another quick update,
My colleage has created a script to find the heading text on each page and separate each letter into an individual PDF. The next step we need to figure out is how to merge all 6 page, 7 page, and 8 page letters into their respective page length categories.
Copy link to clipboard
Copied
It's easier to do that before extracting the pages. You can know the length of each file based on the values in your array. All you need to do is create a new document and then insert those pages into it to create files with just those records.
Copy link to clipboard
Copied
Post some sample pages from the document so we can see if this can be automated, as suggested by Try67.