Bug 89357

Summary: pdftocairo produces illegal postscript
Product: poppler Reporter: Dag Nygren <dag>
Component: cairo backendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

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.