I am trying to split a PDF into 2 smaller PDF's using gs (Ghostscript version 8.62 on Debian Lenny). I only have Debian Linux on hand, so please don't offer Windows or Mac solutions.
When specifying -dLastPage=740
, I receive the error:
GPL Ghostscript 8.62: ERROR: A pdfmark destination page 1203 points
beyond the last page 740.
I have scoured the Ghostscript documentation for how to disable
pdfmark entirely (I don't need links or bookmarks for a straight-to-
print pdf). -dDOPDFMARKS=false
does not work.
I've scoured the internet for anyone reporting a similar error. I haven't found a solution yet.
Please help!
For reference, the command I'm using is:
gs -dSAFER -dBATCH -sDEVICE=pdfwrite -DNOPAUSE -sPAPERSIZE=halfletter -
dFIXEDMEDIA -dEmbedAllFonts=true -sOutputFile=library.1of2.pdf -
dLastPage=740 -dPDFFitPage library.pdf