Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392945 - app-text/ghostscript-gpl-9.04-r4 - fails splitting pdfs due to destinations pointing outside of the page range
Summary: app-text/ghostscript-gpl-9.04-r4 - fails splitting pdfs due to destinations p...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-02 20:31 UTC by Chris Chan
Modified: 2012-02-20 14:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Chan 2011-12-02 20:31:38 UTC
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.
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2012-01-15 22:43:43 UTC
(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.
Comment 2 Timo Gurr (RETIRED) gentoo-dev 2012-02-20 14:40:20 UTC
Ghostscript 9.05 has been released and added to the tree, please reopen if it's still an issue with gs 9.05.