Here is a solution for the “Expected an array object” if you are splitting a PDF file, particularly with bookmarks. If splitting a file by page numbers, you can easily print to PDF which will then produce a non-erroneous PDF, but with bookmarks lost.
I couldn’t find a solution that resolved the splitting in Acrobat, but found a free tool that didn’t error on these particular PDF types.
SplitPDF.jar does this. Simply run the below command to split the PDF by bookmarks.
java -jar splitpdf.jar -iFile "filename.pdf" -bLevel 1 -UniqueSplitFilename -oFolder c:\outfolder |
Leave a Reply