[Bug 225422] Some PDF files cannot be processed and come out blank or with missing fonts
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Jan 24 09:30:16 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225422
Bug ID: 225422
Summary: Some PDF files cannot be processed and come out blank
or with missing fonts
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: freebsd-ports-bugs at FreeBSD.org
Reporter: gmelis at mikroskosmos.gr
When trying to process a PDF file with CID fonts (not included in the PDF) I
got a blank page with an error of this type:
==========================================================
root at localhost ~/x # gs -sDEVICE=pdfwrite -sOutputFile=x13.pdf 13.pdf
GPL Ghostscript 9.16 (2015-03-30)
Copyright (C) 2015 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
**** Warning: can't process font stream, loading font by the name.
Can't find CID font "CIDFont+F1".
Attempting to substitute CID font /Adobe-Identity for /CIDFont+F1, see
doc/Use.htm#CIDFontSubstitution.
The substitute CID font "Adobe-Identity" is not provided either. attempting to
use fallback CIDFont.See doc/Use.htm#CIDFontSubstitution.
Loading a TT font from
/usr/local/share/ghostscript/9.16/Resource/CIDFSubst/DroidSansFallback.ttf to
emulate a CID font Adobe-Id **** Error reading a content stream. The page may
be incomplete.
**** File did not complete the page properly and may be damaged.
entity ... Done.
Loading NimbusSan-Reg font from
/usr/local/share/ghostscript/9.16/Resource/Font/NimbusSan-Reg... 8955488
7270221 2744192 1358197 3 done.
>>showpage, press <return> to continue<<
**** This file had errors that were repaired or ignored.
**** The file was produced by:
**** >>>> Microsoft: Print To PDF; modified using iText 5.5.11 2000-2017
iText Group NV (AGPL-version) <<<<
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
GS>GPL Ghostscript 9.16: PDFDocEncoding 0 cannot be represented in Unicode
GPL Ghostscript 9.16: PDFDocEncoding 0 cannot be represented in Unicode
==========================================================
The automatic font substitution did not work and the resulting file came up
blank. I tried the exact same command on a debian system and it came out
perfect, even with ghostscript 9.05, so it's not just a newer version problem.
After enough trial and error I ended up copying the file
"/usr/share/ghostscript/9.22/Resource/Init/pdf_font.ps" from another system
over "/usr/local/share/ghostscript/9.16/Resource/Init/pdf_font.ps", and it
worked as expected. I believe the ghostscript package should either be upgraded
to the 9.22 release, or at least replace the "pdf_font.ps" file with a newer
version.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list