Date: Wed, 24 Jan 2018 09:30:15 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 225422] Some PDF files cannot be processed and come out blank or with missing fonts Message-ID: <bug-225422-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225422 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@FreeBSD.org Reporter: gmelis@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: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D root@localhost ~/x # gs -sDEVICE=3Dpdfwrite -sOutputFile=3Dx13.pdf 13.pdf GPL Ghostscript 9.16 (2015-03-30)=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Copyright (C) 2015 Artifex Software, Inc. All rights reserved.=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20 This software comes with NO WARRANTY: see the file PUBLIC for details.=20= =20=20=20=20=20=20=20=20=20 Processing pages 1 through 1.=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20 Page 1=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 **** Warning: can't process font stream, loading font by the name.=20=20= =20=20=20=20=20=20=20=20=20 Can't find CID font "CIDFont+F1".=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Attempting to substitute CID font /Adobe-Identity for /CIDFont+F1, see doc/Use.htm#CIDFontSubstitution.=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20 The substitute CID font "Adobe-Identity" is not provided either. attempting= to use fallback CIDFont.See doc/Use.htm#CIDFontSubstitution.=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 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.=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 **** File did not complete the page properly and may be damaged.=20=20= =20=20=20=20=20=20=20=20=20=20=20 entity ... Done.=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 Loading NimbusSan-Reg font from /usr/local/share/ghostscript/9.16/Resource/Font/NimbusSan-Reg... 8955488 7270221 2744192 1358197 3 done.=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20 >>showpage, press <return> to continue<<=20=20=20=20=20=20=20 **** This file had errors that were repaired or ignored.=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 **** The file was produced by:=20=20=20=20=20=20=20=20=20=20=20=20=20=20 **** >>>> Microsoft: Print To PDF; modified using iText 5.5.11 2000-2017 iText Group NV (AGPL-version) <<<<=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 **** Please notify the author of the software that produced this=20=20= =20=20=20=20=20=20=20=20=20=20=20 **** file that it does not conform to Adobe's published PDF=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 **** specification.=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 GS>GPL Ghostscript 9.16: PDFDocEncoding 0 cannot be represented in Unicode= =20=20=20=20=20=20 GPL Ghostscript 9.16: PDFDocEncoding 0 cannot be represented in Unicode =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D 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 probl= em. 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 upgr= aded to the 9.22 release, or at least replace the "pdf_font.ps" file with a newer version. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225422-13>