Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 144740 - pdftops (poppler 0.5.3 ) creates invalid postscript-file
Summary: pdftops (poppler 0.5.3 ) creates invalid postscript-file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Printing (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-22 06:04 UTC by Florian Mickler
Modified: 2006-10-09 09:48 UTC (History)
1 user (show)

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


Attachments
cups debug log (error_log.gz,5.22 KB, application/x-gzip)
2006-08-22 06:05 UTC, Florian Mickler
Details
the pdf in question... aka corpus delicti (loesung10.pdf,66.31 KB, application/pdf)
2006-08-22 06:06 UTC, Florian Mickler
Details
simple patch in Gfx.cc (poppler.patch,470 bytes, patch)
2006-09-09 03:15 UTC, Ingo Krabbe
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Mickler 2006-08-22 06:04:23 UTC
Hi!
I have  cups-1.1.23-r8 and ghostscript-gpl 8.54 installed and am using an hp-lj 1320 with the standard postscript laserjet ppd(no manual fiddling with the cups config or smth like that)

everthinh works fine. But I have trouble printing with one special pdf. Other pdf's (even from the same source - means same pdfinfo besides title and date) print just fine.

I have attached the cups-debug output. 
I have also attached the corpus delicti... (means the pdf in question)

could someone perhaps confirm this bug? 
and tell me perhaps whats wrong?

(Brief excerpt:)
D [22/Aug/2006:14:36:18 +0200] [Job 594] Error: /undefined in pdfLastFill
D [22/Aug/2006:14:36:18 +0200] [Job 594] Operand stack:
D [22/Aug/2006:14:36:18 +0200] [Job 594] --nostringval--
D [22/Aug/2006:14:36:18 +0200] [Job 594] Execution stack:
D [22/Aug/2006:14:36:18 +0200] [Job 594] %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   1   3   %oparray_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--
D [22/Aug/2006:14:36:18 +0200] [Job 594] Dictionary stack:
D [22/Aug/2006:14:36:18 +0200] [Job 594] --dict:1132/1686(ro)(G)--   --dict:0/20(G)--   --dict:76/200(L)--   --dict:64/75(L)--   --dict:7/8(L)--   --dict:2/2(L)--
D [22/Aug/2006:14:36:18 +0200] [Job 594] Current allocation mode is local
D [22/Aug/2006:14:36:18 +0200] [Job 594] Last OS error: 2
D [22/Aug/2006:14:36:18 +0200] [Job 594] GPL Ghostscript 8.54: Unrecoverable error, exit code 1
E [22/Aug/2006:14:36:18 +0200] PID 4419 stopped with status 1!
E [22/Aug/2006:14:36:18 +0200] [Job 594] No pages found!
E [22/Aug/2006:14:36:18 +0200] PID 4420 stopped with status 1!


greets,
Florian

p.s. thx for your help!
Comment 1 Florian Mickler 2006-08-22 06:05:07 UTC
Created attachment 94858 [details]
cups debug log
Comment 2 Florian Mickler 2006-08-22 06:06:39 UTC
Created attachment 94859 [details]
the pdf in question... aka corpus delicti
Comment 3 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-22 06:20:15 UTC
can you please report this to the ghostscript afpl/gpl bugzilla? I guess it will not be resolved here
Comment 4 Florian Mickler 2006-08-22 07:20:03 UTC
done...

greetings,
Florian
Comment 5 Florian Mickler 2006-08-22 07:20:36 UTC
done... (http://bugs.ghostscript.com/show_bug.cgi?id=688842)

greetings,
Florian
Comment 6 Florian Mickler 2006-08-25 09:51:23 UTC
Hi!
I am back again! :)

ok the investigation at ghostscript-bugzilla revealed that the pdftops-binary in gentoo creates an invalid postscript file (see the ghostscript-bug report)
Comment 7 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-30 18:38:17 UTC
hmh, gentoo does not patch poppler in any way. Must be a poppler upstream problem then. Can you please try with poppler 0.5.1?
Comment 8 Florian Mickler 2006-09-07 13:07:58 UTC
0.5.1 does not suffer from this problem (it gets printed fine)


p.s.: sorry for late answer, i was busy
Comment 9 Ingo Krabbe 2006-09-08 01:27:40 UTC
I have actually solved the problem.  It comes from PSOutputDevice.cc which formerly came from xpdf.

The problem arises on embedding Type3 fonts, which commonly happens when using TeX fonts.

There is a simple line /pdfLastFill false def that might be inserted before line 17, which corrected the problem for a file of mine.  I cannot say which side effects happen, but I assume they are small, since it's simple a switch off, of a feature.


Comment 10 Ingo Krabbe 2006-09-08 01:28:18 UTC
I already posted a message to Glyph & Cog, LLC.
Comment 11 Florian Mickler 2006-09-08 02:29:05 UTC
if it is not a poppler bug, how comes that 0.5.1 works fine? was there a code-sync with xpdf after 0.5.1?
Comment 12 Ingo Krabbe 2006-09-09 02:15:59 UTC
(In reply to comment #11)
> if it is not a poppler bug, how comes that 0.5.1 works fine? was there a
> code-sync with xpdf after 0.5.1?
> 

but it is a poppler bug, since PSOutputDevice.cc is the same in poppler and xpdf.  I don't know how this changed in 0.5.1 but I know how to change the PSOutputDevice.cc to solve the problem.
Comment 13 Ingo Krabbe 2006-09-09 03:15:12 UTC
Created attachment 96461 [details, diff]
simple patch in Gfx.cc

This simple patch disables updateAll, which writes out the errorneous graphic commands in the non-page environment of T3 definition.
Comment 14 Florian Mickler 2006-10-09 08:32:56 UTC
didn't came around to test the patch, sorry...

but it seems to be fixed in 0.5.4
Comment 15 Stefan Schweizer (RETIRED) gentoo-dev 2006-10-09 09:48:59 UTC
marking as fixed then