Looking for a tool to split up large PDF files.

Posted by WizardOfIF@reddit | sysadmin | View on Reddit | 10 comments

I have to work around two applications with some interesting limits. The first one produces a PDF files that is over 2 GBs in size. The second one will only ingest files of less than 250 MBs. I need to get the excessively large PDF into the restricted long term storage application.

For text files I just break them up into 100 MB size files and import them piece by piece and then stitch them back together in the long term storage.

I'm looking for a tool that I can call from a script and have it either break apart a PDF file by byte size adjusted for page breaks if possible or by page count if necessary.

Has anyone found a good tool that could handle this? The recombining of files is handled natively by the long term storage. It will pieve PDF files together but it isn't able to break them apart, not programatically anyway.