Bug 19747

Summary: Generates invalid Postscript on a given file
Product: poppler Reporter: Albert Astals Cid <aacid>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: mkasik, next_ghost
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: The said file
Embed Type1 fonts to PostScript files correctly

Description Albert Astals Cid 2009-01-26 11:49:55 UTC
The attached file generates Postscript that is not liked by gs.

This is an up-upstream report from https://bugs.kde.org/show_bug.cgi?id=182016
Comment 1 Albert Astals Cid 2009-01-26 11:50:20 UTC
Created attachment 22253 [details]
The said file
Comment 2 Albert Astals Cid 2009-09-20 14:56:24 UTC
The problem seems to be that the embedded font Type 1 is not understood by gs while freetype does understand it
Comment 3 Marek Kasik 2015-06-24 12:32:46 UTC
Created attachment 116690 [details] [review]
Embed Type1 fonts to PostScript files correctly

The problem here is similar to the one from #69717. The embedded Type1 font is in PFB format and includes PFB headers which are not removed before embedding the font again to the resulting PostScript file.
Attached patch recognises that the font contains PFB headers and doesn't include them in the conversion.
Comment 4 Albert Astals Cid 2015-07-03 18:14:55 UTC
5 year old bug fixed! awesome :)

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.