Summary: | Ghostscript is not able to render the attached PDF files | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Till Kamppeter <till.kamppeter> |
Component: | PDF Interpreter | Assignee: | Chris Liddell (chrisl) <chris.liddell> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chris.liddell |
Priority: | P4 | ||
Version: | 9.04 | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: |
printout.pdf
printout_original.pdf |
Description
Till Kamppeter
2012-01-07 12:46:55 UTC
Created attachment 8252 [details]
printout_original.pdf
The problem seems to be independent of the output device and the resolution. It happens with the deafult output device (low-res X display) when using the shown commands and it happens with the "cups" output device (high resolution, used when the original reporter tried to print). (In reply to comment #0) > Created an attachment (id=8251) [details] > printout.pdf > > Original bug report: > > https://bugs.launchpad.net/ubuntu/+source/ghostscript/+bug/909331 > > Ghostscript is not able to render some PDFs due to a font substitution problem. > > Running > > gs printout_original.pdf > > or > > gs printout.pdf > > shortly pops up a window in which parts of the page appear and then errors out > like this > > GPL Ghostscript 9.04 (2011-08-05) Maybe you need this? commit 0ab8cd1259dc76f6b3465f1ccd08a7509428e021 Author: Chris Liddell <chris.liddell@artifex.com> Date: Fri Aug 19 13:38:04 2011 +0100 Reinstate Identity-UTF16-H and UniHojo-UCS2-H CMaps We need these in order to use Truetype fonts to emulate CIDFonts, see gs_ciddc.ps CLUSTER_UNTESTED I can't find a version of Ghostscript that doesn't error out on this file, unless you have an ArialMT CIDFont installed, or you have an ArialMT subsitute defined in your cidfmap file. 8.71, 9.02, and 9.04 all give error out without the CIDFont available. So, I'm not clear how the file "worked" previously, unless the Ubuntu install included CIDFont substitutions. Current master includes code to automatically subsitute DroidSansFallback.ttf for missing CIDFonts. Hin-Tak, commit 0ab8cd1259dc76f6b3465f1ccd08a7509428e021 does not solve the problem for me. I still get the same error. The problem is actually fixed in the GIT master of Ghostscript. Therefore I change the status to "FIXED". To backport the fix BOTH the patches 0ab8cd1259dc76f6b3465f1ccd08a7509428e021 AND 18a5170163b690647f70d58e4c9d75873cd1324b need to get applied, and the file /usr/share/ghostscript/9.04/Resource/CIDFSubst/DroidSansFallback.ttf be installed (do not know which patch does it, I copied the file manually). Then the attached files render completely and do not error out. There are only warnings, but this is intended behavior. According to the GIT log, the two patches seem to cause problems with pdfwrite (bug 690779), so applying patch 3875e5a471e3f9b9b4a2f5ea03e37b59fcd8913c is recommended when backporting the fix. |