Handle font problems better
Submitted by Orion Poplawski
Assigned to poppler-bugs
Description
Created attachment 46832 Problematic pdf
The attached document apparently has some problems with the embedded Type 1C fonts in it. With gs 9.02, it reports errors and replaces the problematic fonts with system fonts:
$ pdf2ps NovopashinMuriel2002_IsTheCriticalReynoldsNumberUniversal.pdf **** Warning: can't process font stream, loading font by the name. **** Warning: can't process font stream, loading font by the name.
**** This file had errors that were repaired or ignored. **** The file was produced by: **** >>>> Mac OS X 10.6.7 Quartz PDFContext <<<< **** Please notify the author of the software that produced this **** file that it does not conform to Adobe's published PDF **** specification.
gs directly also reports:
Substituting font Times-Roman for XQAGXY+Times-Pandre-Light. Can't find (or can't open) font file /usr/share/ghostscript/9.02/Resource/Font/NimbusRomNo9L-Regu. Can't find (or can't open) font file NimbusRomNo9L-Regu. Can't find (or can't open) font file /usr/share/ghostscript/9.02/Resource/Font/NimbusRomNo9L-Regu. Can't find (or can't open) font file NimbusRomNo9L-Regu. Querying operating system for font files... Loading NimbusRomNo9L-Regu font from /usr/share/fonts/default/Type1/n021003l.pfb... 3700140 2347017 6809988 5252199 3 done.
The poppler pdftops output when printed produces the following error on the printer:
ERROR: invalidfont OFFENDING COMMAND: definefont
STACK:
/Font -dictionary- /RDNCVK+RusTimes-Pandre-LightItalic
It would be great if poppler could detect the same issue and do the same font substitution.
$ pdffonts NovopashinMuriel2002_IsTheCriticalReynoldsNumberUniversal.pdfname type emb sub uni object ID
QGTTJK+Symbol TrueType yes yes no 10 0 FKIRVC+Symbol TrueType yes yes yes 11 0 TIZLRL+Times-Pandre-LightItalic Type 1C yes yes no 14 0 RDNCVK+RusTimes-Pandre-LightItalic Type 1C yes yes no 9 0 UJIXRV+Times-Roman TrueType yes yes no 7 0 BQZNJF+Times-Italic TrueType yes yes no 8 0 USEOII+Times-Bold TrueType yes yes no 12 0 XQAGXY+Times-Pandre-Light Type 1C yes yes no 22 0
Attachment 46832, "Problematic pdf":
NovopashinMuriel2002_IsTheCriticalReynoldsNumberUniversal.pdf