Installed versions: app-text/ghostscript-9.04-r4(13:09:18 11/19/11)(cups -X -bindist -dbus -djvu -gtk -idn -jpeg2k -linguas_ja -linguas_ko -linguas_zh_CN -linguas_zh_TW -static-libs) Linux localhost 3.1.0-gentoo #2 SMP Fri Dec 2 06:33:37 EST 2011 x86_64 Intel(R) Core(TM) i7 CPU Q 820 @ 1.73GHz GenuineIntel GNU/Linux Reproducible: Always Steps to Reproduce: assume '$i' are the input files, if a loop were to process each one, the contents would look like this (for test you can replace $i with your input file); A=`gs -q -dNODISPLAY -c "($i) (r) file runpdfbegin pdfpagecount = quit"` for x in `seq -w 1 $A`; do gs -dBATCH -q -dNOPAUSE -sDEVICE=pdfwrite -dFirstPage="$x" -dLastPage="$x" -o "$i"-"$x" "$i" done Actual Results: GPL Ghostscript 9.04: ERROR: A pdfmark destination page 24 points beyond the la **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** Warning: Outline has invalid link that was discarded. **** This file had errors that were repaired or ignored. **** The file was produced by: **** >>>> OpenOffice.org 3.1 <<<< **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification. No split occurs. Expected Results: input file is split into individual pages kens ( a primary dev) in #ghostscript on freenode said the following: 1) it is fixed in the 9.05 pre-release. 2) a release is expected in febuary. 3) now, they simply ignore destinations which point to pages outside the output range I've tested the git source and it works, a fix is simply to update the ebuild source location.
(In reply to comment #0) > > kens ( a primary dev) in #ghostscript on freenode said the following: > 1) it is fixed in the 9.05 pre-release. > 2) a release is expected in febuary. > 3) now, they simply ignore destinations which point to pages outside the output > range > > I've tested the git source and it works, a fix is simply to update the ebuild > source location. Please ask around for the exact commit that fixes this, maybe we can backport it.
Ghostscript 9.05 has been released and added to the tree, please reopen if it's still an issue with gs 9.05.