Bug 89357 - pdftocairo produces illegal postscript
Summary: pdftocairo produces illegal postscript
Status: RESOLVED DUPLICATE of bug 85662
Alias: None
Product: poppler
Classification: Unclassified
Component: cairo backend (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-27 10:16 UTC by Dag Nygren
Modified: 2015-03-03 20:00 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Dag Nygren 2015-02-27 10:16:58 UTC
Hi!

Using Fedora Core 20, which currently is using pdftocairo 0.24.3 and found that
printing an some email with from kmail will produce invalid GhostScript.

Here an example of an invalid sequence:

/f-1-0 1 Tf
[(C)-16(r)54(o)-31(w)32(n)-9(e)-28( )33(P)-40(l)63(a)42(z)-47(a)41( )33
(<)-20(C)-16(r)54(o)-31(w)32(n)-9(e)-27(P)-40(l)63(a)42(z)-47(a)42(@r)54(e
)-28(s)-50(e)-28(r)54(v)92(a)41(t)35(i)64(o)-31(n)-10(s)-50(.)32(i)64(h)-
9(g)-8(.)32(c)-22(o)-31(m)46(>)]TJ
ET
0.587906 w
2 J

Mark the lone "-" at the end of a line. This will make my printer barf and also ghostview.

Seems like pdftocairo splits lines at a certain length disregarding the splitting points.
Comment 1 Adrian Johnson 2015-03-03 20:00:35 UTC
Has been fixed in cairo master.

*** This bug has been marked as a duplicate of bug 85662 ***


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.