Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 27066 - Can not print from acroread
Summary: Can not print from acroread
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-21 10:59 UTC by Henrik Brix Andersen
Modified: 2005-01-23 13:25 UTC (History)
1 user (show)

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


Attachments
/var/log/cups/error_log (error_log,19.69 KB, text/plain)
2003-08-21 11:02 UTC, Henrik Brix Andersen
Details
PS file generated by acroread (print1.ps,645.12 KB, application/octet-stream)
2004-01-01 10:00 UTC, Collins Richey
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Brix Andersen 2003-08-21 10:59:50 UTC
I am able to print from all other application, at least those which I have
tried, but I can not print any .pdf files from acroread, the Adobe Acrobat Reader.

I can print the same files using ggv, Gnome Ghostview - so the file is not the
problem here.

The .pdf file was generated by pdflatex.

My setup:

Hewlett-Packard Deskjet 930C

app-text/ghostscript-7.05.6-r3
net-print/cups-1.1.19-r1
net-print/hpijs-1.4.1

app-text/ggv-2.0.1
app-text/acroread-5.07
app-text/tetex-1.0.7-r12

I will attach the appropiate lines from /var/log/cups/error_log (LogLevel
"debug") below.
Comment 1 Henrik Brix Andersen 2003-08-21 11:02:27 UTC
Created attachment 16438 [details]
/var/log/cups/error_log
Comment 2 Heinrich Wendel (RETIRED) gentoo-dev 2003-08-21 11:18:27 UTC
hm, no idea, you could try acroread 5.0.8 (currently ~x86)
Comment 3 Henrik Brix Andersen 2003-08-21 11:45:33 UTC
I just tried acroread 5.0.8 - same result.
Comment 4 Heinrich Wendel (RETIRED) gentoo-dev 2003-08-26 11:25:43 UTC
which printcommand are you using in acroread?
Comment 5 Henrik Brix Andersen 2003-08-26 11:30:22 UTC
/usr/bin/lpr
Comment 6 Heinrich Wendel (RETIRED) gentoo-dev 2003-08-26 11:37:46 UTC
i cannot reproduce this, so try to revdep-rebuild, remerge cups and ghostscript 
Comment 7 Thomas Raschbacher gentoo-dev 2003-08-26 11:42:11 UTC
same bug here ..

i tried to fix it .. seems to me like acroread produces invalid PS ... don't ask me why .. (if u print to file it won't work ..)

just use (g)gv something.pdf and print it there or just do lpr 'filename.pdf' if u want to print the whole thing
Comment 8 Henrik Brix Andersen 2003-08-26 11:59:59 UTC
I already tried re-merging cups and ghostscript - same result.

I agree with Thomas Raschbacher - it seems as if acroread is producing invalid postscript.

Never happened to me on any other system...
Comment 9 Heinrich Wendel (RETIRED) gentoo-dev 2003-09-03 05:46:51 UTC
so how can we fix a acroread bug?
Comment 10 Heinrich Wendel (RETIRED) gentoo-dev 2003-11-29 12:09:35 UTC
please try the new gs 7.07
Comment 11 Henrik Brix Andersen 2003-12-10 07:04:20 UTC
I just tried with app-text/ghostscript-7.07.1-r1 - printing from acroread still doesn't work.

I've tried printing the exact same files from a Red Hat 9 installation also with cups... works there.
Comment 12 Heinrich Wendel (RETIRED) gentoo-dev 2003-12-10 10:42:34 UTC
what's the gs version of redhat 9?
Comment 13 Henrik Brix Andersen 2003-12-11 13:46:09 UTC
7.05
Comment 14 Heinrich Wendel (RETIRED) gentoo-dev 2003-12-16 12:27:26 UTC
can you please attach the file?
Comment 15 Collins Richey 2004-01-01 10:00:35 UTC
Created attachment 22960 [details]
PS file generated by acroread

Ghostscript fails to view this file.
Comment 16 Collins Richey 2004-01-01 10:01:23 UTC
I believe this is an upstream problem with acroread-5.0.8 (the only version currently in portage).  Acroread is not generating valid postscript.  Neither ghostscript nor ghostview can handle the output.  It doesn't matter whether printing directly (cups and ghostscript) or printing to a file and viewing with ghostscript.  Nor does it matter whether PS Level 1/2/3 are selected.  I get similar behavior on SUSE 9.0.  The same site is printable on the version of acroread offered with WinXP Professional.

Ghostview produces the following error from the attached PS file:

Error: /invalidfont in -dict-
Operand stack:
   EOAIEN+Wingdings-Regular-Identity-H   --dict:7/10(G)--   Font   EOAIEN+Wingdings-Regular-Identity-H   --dict:7/10(G)--   EOAIEN+Wingdings-Regular-Identity-H
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1   3   %oparray_pop   1   3   %oparray_pop   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   3   8   %oparray_pop   3   8   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   7   9   %oparray_pop   --nostringval--   7   9   %oparray_pop   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1049/1417(ro)(G)--   --dict:0/20(G)--   --dict:74/200(L)--   --dict:36/89(L)--   --dict:79/160(ro)(L)--   --dict:63/78(ro)(L)--   --dict:8/25(L)--   --dict:27/35(ro)(L)--   --dict:17/17(ro)(G)--
Current allocation mode is local
Last OS error: 2
ESP Ghostscript 7.07.1: Unrecoverable error, exit code 1

My software levels:
gentoo-dev-sources-2.6.0-r1
glibc-2.3.2-r3
gcc-3.2.3-r3
acroread-5.08  
ghostscript-7.07.1-r1  
ghostview-1.5-r1
cups-1.1.19-r1     
foomatic-db-20031018         
foomatic-filters-20031018
foomatic-20031018  
foomatic-db-engine-20031018

To recreate, go to  http://www.fafsa.ed.gov/before012.htm then click on Pre-application worksheet in PDF'.  Try to print from acroread or print to file and view with ghostview.
Comment 17 Thomas Raschbacher gentoo-dev 2004-01-13 07:29:37 UTC
can we do anything about that atm?

(except downgrade acroread or wait for 5.09?)
Comment 18 Heinrich Wendel (RETIRED) gentoo-dev 2004-01-17 10:03:11 UTC
downgrade is not an option since it was an security update, so we have to wait.
Comment 19 Andrey Shytov 2004-04-14 17:52:46 UTC
Workaround: disable "Optimize for Speed" option in the print dialog. Cured this problem for me. 
Comment 20 Kenyon Ralph 2005-01-23 13:25:18 UTC
I know this is a really old bug, but I'm getting this same problem now.  Setting cupsd to log debugging info in error_log shows the same "renderer dieing" errors as logs posted previously in this bug.  Printing with acroread *used* to work, a couple weeks ago, then some emerge world update made it stop working, but I don't know which.  Possibly cups or one of the many xpdf security-related updates recently or ghostscript or hpijs, all update fairly recently.

This is with an HP DeskJet 895C.  The command acroread is using to print is kprinter.  Unchecking Optimize for speed didn't fix it.  Using lpr for the print command still failed.  No PDF will print with acroread, but kghostview, xpdf, and kpdf all print the same documents just fine.

My versions now:
app-text/ghostscript-7.07.1-r8
net-print/cups-1.1.23-r1
net-print/hpijs-1.7.1
app-text/acroread-5.10

Hopefully acroread 7 will be much better...