Another option available is Ghostscript. It has an exe that you can call from the command line. I used it once to extract text from a PDF but it can also split/merge. Here's something I knocked up to get you started: https://gist.github.com/medalark/31eb67305f0fec81cae1ba4a75407ac4
You need to change the four variables at the start of the program. Also, you might need to change the reference to the Ghostscript exe. I used the 64 bit version.
Ricardo
On Thu, 1 Aug 2019 at 21:19, MB Software Solutions, LLC < mbsoftwaresolutions@mbsoftwaresolutions.com> wrote:
Customer has a single PDF ("document") with several pages in it (let's say 12 pages). The document is made up of several scanned files, each a different file type or "component."
Customer wants to extract certain pages from this single PDF into later email to other parties. They cannot mail the entire document because some content isn't intended for recipients (like invoices) but they want to be able to send other selected "component" parts and that file attached to the email deliverable would be a SINGLE file.
Example:
MyPDF.PDF
Page 1: Invoice ("A") Page 2-3: Bill of lading ("B") Page 4-6: Fuel slips ("C" Page 7-10: Something else ("D") Page 11-12: Yada yada yada ("E")
Eventually, components B, C, and E will be emailed to somebody.
Given this scenario, what do you recommend?
tia, --Mike
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
[excessive quoting removed by server]