Bug 22063

Summary: when printing, words slant up the page
Product: poppler Reporter: William Bader <williambader>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: williambader
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: The PDF page generated by evince
Screen capture of correct rendering of output.pdf in evince.
Incorrect postscript generated by pdftops
Screen capture of the slanted text in the generated postscript file.

Description William Bader 2009-06-03 06:24:35 UTC
Created attachment 26394 [details]
The PDF page generated by evince

I downloaded a 2.8 MB PDF from http://www.firesifestes.com/Fires/F-Cirera-Sta-Col-Cervello.htm (no longer available from the site, but I can sent it by email).  I opened the PDF in evince and saved one of the pages as a PDF.  I then used pdftops to convert the PDF page to a postscript page.  On the postscript page, the text slants upward at about 45 degrees.  It seems like the WMode of the generated postscript font is wrong and the position after each character shifts both right and up.
To reproduce:
Open the 2.8 MB file in evince and print page 18 to a PDF file.
$ evince Festa-cirera.pdf
Check that the page is OK.
$ evince output.pdf
Convert the page to postscript using pdftops from either xpdf or poppler.
$ pdftops output.pdf output-pdftopsbug.ps
View the postscript page.
$ gv output-pdftopsbug.ps
I will attach the single page PDF and ps and screen captures.
$ ls -ltr Festa-cirera.pdf output.pdf output.gif output-pdftopsbug.ps output-pdftopsbug.gif
-r--r--r-- 1 william users 2860442 2009-05-30 17:28 Festa-cirera.pdf
-rw-rw-rw- 1 william users  214486 2009-06-03 15:00 output.pdf
-rw-rw-rw- 1 william users   98819 2009-06-03 15:04 output.gif
-rw-rw-rw- 1 william users  604911 2009-06-03 15:05 output-pdftopsbug.ps
-rw-rw-rw- 1 william users   36067 2009-06-03 15:06 output-pdftopsbug.gif
I have Fedora 8, xpdf-3.02pl3, poppler-0.10.7, gs8.64, evince 2.20.2 (using poppler 0.6.2 (cairo)).
William
williambader@hotmail.com
Comment 1 William Bader 2009-06-03 06:25:32 UTC
Created attachment 26395 [details]
Screen capture of correct rendering of output.pdf in evince.
Comment 2 William Bader 2009-06-03 06:26:12 UTC
Created attachment 26396 [details]
Incorrect postscript generated by pdftops
Comment 3 William Bader 2009-06-03 06:27:37 UTC
Created attachment 26397 [details]
Screen capture of the slanted text in the generated postscript file.
Comment 4 William Bader 2009-06-11 09:46:49 UTC
The author of xpdf says that this problem will be fixed in xpdf-3.03.
Comment 5 William Bader 2011-08-19 06:23:32 UTC
xpdf-3.03 was released on August 15, and it fixes the slanted text.
http://www.foolabs.com/xpdf/
xpdf-3.03 is released under dual GPL 2/3 licensing.
Can any xpdf updates be applied to poppler?
The change file in xpdf-3.03 lists about 400 improvements since 3.02.
Comment 6 Adrian Johnson 2012-02-24 04:20:26 UTC
xpdf 3.03 has been merged into master. I checked your test case and the merge has fixed the bug.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.