pdfopt problem caused by change of pdf_base.ps
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GS-GPL |
Fix Released
|
Medium
|
|||
ghostscript (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Till Kamppeter |
Bug Description
I have just noticed a problem caused by the change on 3 Oct 2011, which
prevents pdfopt from linearizing pdflatex-generated files at least under Ubuntu
12.04:
[IMPACT]
pdfopt does not work on any file generated by pdflatex.
[TESTCASE]
Cited from the original reporter of this bug:
----------
How to reproduce the problem:
ghostscript/9.05 is used by Ubuntu 12.04. Linearizing a pdflatex-generated file
does not work here. For test, simply /usr/share/
doc/latex/
dreibh@lupo:/tmp$ pdfopt /usr/share/
x.pdf
**** Considering object with an invalid number 264 as null.
**** Considering object with an invalid number 265 as null.
**** Considering object with an invalid number 264 as null.
**** Considering object with an invalid number 265 as null.
dreibh@lupo:/tmp$ pdfinfo x.pdf
Producer: ESP Ghostscript 815.03
CreationDate: Mon Feb 25 18:03:04 2008
ModDate: Mon Feb 25 18:03:04 2008
Tagged: no
Pages: 26
Encrypted: no
Page size: 595 x 842 pts (A4)
File size: 184754 bytes
Optimized: no ########### <<-- not linearized
PDF version: 1.3
I have therefore reverted the change in pdf_base.ps:
- 1 index 0 lt {
- ( **** Considering object with a negative number as null.\n)
pdfformaterror
+ 1 index dup 0 lt exch NumObjects ge or {
+ ( **** Considering object with an invalid number )
+ 2 index 20 string cvs concatstrings
+ ( as null.\n) concatstrings pdfformaterror
Now, pdfopt works as before:
dreibh@lupo:/tmp$ pdfopt /usr/share/
doc/latex/
dreibh@lupo:~/tmp$ pdfinfo y.pdf
Producer: ESP Ghostscript 815.03
CreationDate: Mon Feb 25 18:03:04 2008
ModDate: Mon Feb 25 18:03:04 2008
Tagged: no
Pages: 26
Encrypted: no
Page size: 595 x 842 pts (A4)
File size: 185577 bytes
Optimized: yes ########### <<-- linearized
PDF version: 1.3
----------
After installing the proposed package this problem should disappear, getting
...
Optimized: yes
...
without needing to edit pdf_base.ps.
[Regression Potential]
Very low, as only a simple consistency check got removed by the patch, on the rendering nothing is changed.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ghostscript 9.05~dfsg-
ProcVersionSign
Uname: Linux 3.2.0-27-generic x86_64
ApportVersion: 2.0.1-0ubuntu11
Architecture: amd64
Date: Thu Aug 2 23:05:41 2012
InstallationMedia: Kubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120423)
Lpstat:
device for Farblaser-TCP: socket:
device for HP-LaserJet-2420: socket:
device for HPLaserJet4050: socket:
device for HPLaserJet5MP: socket:
device for Knoll: lpd://192.
MachineType: LENOVO 4061W1N
Papersize: a4
PccardctlIdent:
Socket 0:
no product info available
PccardctlStatus:
Socket 0:
no card
PpdFiles:
Knoll: Fiery X3eTY 50_45C-KM PS Color Server 1.01eu
Farblaser-TCP: Dell MFP Laser 3115cn v3015.103 PS
HPLaserJet4050: HP LaserJet 4050 Series Postscript (recommended)
HP-LaserJet-2420: HP LaserJet 2420 Postscript (recommended)
HPLaserJet5MP: HP LaserJet 5MP Postscript (recommended)
ProcEnviron:
LANGUAGE=
TERM=xterm
PATH=(custom, user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: ghostscript
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/14/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 6FET92WW (3.22 )
dmi.board.name: 4061W1N
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.name: 4061W1N
dmi.product.
dmi.sys.vendor: LENOVO
Related branches
Changed in gs-gpl: | |
importance: | Unknown → High |
status: | Unknown → Invalid |
Changed in ghostscript (Ubuntu): | |
importance: | Undecided → Medium |
Changed in ghostscript (Ubuntu Precise): | |
importance: | Undecided → Medium |
assignee: | nobody → Till Kamppeter (till-kamppeter) |
description: | updated |
Changed in ghostscript (Ubuntu Precise): | |
status: | Triaged → In Progress |
Changed in gs-gpl: | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
The bug has been fixed upstream: http:// bugs.ghostscrip t.com/show_ bug.cgi? id=693044 . It is necessary to add the patch http:// git.ghostscript .com/?p= ghostpdl. git;a=commitdif f;h=535d11e8a1d 667a3d71680b27f 18e4a89df98b2d for the Ubuntu package.