FS#50297 - [xpdf] doesn't show PDF content on several PDF files.
Attached to Project:
Community Packages
Opened by Javier (jevv) - Sunday, 07 August 2016, 09:53 GMT
Last edited by Levente Polyak (anthraxx) - Tuesday, 02 January 2018, 19:58 GMT
Opened by Javier (jevv) - Sunday, 07 August 2016, 09:53 GMT
Last edited by Levente Polyak (anthraxx) - Tuesday, 02 January 2018, 19:58 GMT
|
Details
Description:
My bank account sends status of some account through PDF files. Before I had no problems looking at them through xpdf, but now the content is not rendered on xpdf. Might be that the recent changes on poppler and poppler-glib affected xpdf somehow, or that xpdf requires a re-build given those changes, even though poppler is not a requirement... Additional info: * package version(s) xpdf 3.04-5 poppler 0.46.0-2 poppler-glib 0.46.0-2 * config and/or log files etc. Steps to reproduce: See attachment called xpdf_read_pfd.gif and notice how it's empty, whereas the the attachment called gv_read_pdf.gif shows how gv has no problem rendering the PDF. Just in case, xpdf usually shows several fonts errors, who I usually ignore, given there was no problem rendering these PDFs before, but now that it's failing, here I add some of the errors: % xpdf Estado_de_cuenta.pdf Config Error: No display font for 'Courier' Config Error: No display font for 'Courier-Bold' Config Error: No display font for 'Courier-BoldOblique' Config Error: No display font for 'Courier-Oblique' Config Error: No display font for 'Helvetica' Config Error: No display font for 'Helvetica-Bold' Config Error: No display font for 'Helvetica-BoldOblique' Config Error: No display font for 'Helvetica-Oblique' Config Error: No display font for 'Symbol' Config Error: No display font for 'Times-Bold' Config Error: No display font for 'Times-BoldItalic' Config Error: No display font for 'Times-Italic' Config Error: No display font for 'Times-Roman' Config Error: No display font for 'ZapfDingbats' ... Syntax Error: Couldn't find a font for 'Courier-Bold' Syntax Error: Couldn't find a font for 'Courier' Syntax Error: Couldn't find a font for 'Times-Bold' Syntax Error: Couldn't find a font for 'Courier' ... Syntax Error: Couldn't find a font for 'Helvetica-Bold' ... At any rate, other PDFs are being rendered fine, showing the same config errors... |
This task depends upon
Closed by Levente Polyak (anthraxx)
Tuesday, 02 January 2018, 19:58 GMT
Reason for closing: Fixed
Additional comments about closing: 4.00-2
Tuesday, 02 January 2018, 19:58 GMT
Reason for closing: Fixed
Additional comments about closing: 4.00-2
If you feel like its poppler related please try downgrading those and see if it helps.
Otherwise i would recommend opening a bug report at upstream
The same PDFs that were rendered before, now are not rendered, and xpdf hadn't changed... So not sure what to file upstream with, :-(
Otherwise try to check your recent package updates in /var/log/pacman.log and what could have correlation with fonts or xpdf
freetype2 2.6.5-1
gsfonts 20160531-1
fontconfig 2.12.1-1
Didn't work, :-(
BTW, gsfonts fails on Type1 when downgrading:
% sudo mkfontscale
Unknown Type 1 weight "Bold Italic"
Couldn't determine weight for P052-BoldItalic.t1
Unknown Type 1 weight "Oblique"
Couldn't determine weight for NimbusSans-Oblique.t1
And then when installing the fonts post-installation fails:
:: Processing package changes...
(1/1) reinstalling gsfonts [############################################################] 100%
Unknown Type 1 weight "Bold Italic"
Couldn't determine weight for P052-BoldItalic.t1
Unknown Type 1 weight "Oblique"
Couldn't determine weight for NimbusSans-Oblique.t1
Well, downgraded didn't help then...
/usr/local/share/ghostscript/fonts/. Works just fine.
Upstream's commit message says:
| URW++ update to base 35 from June 2016.
|
| This extends the Greek and Cyrillic glyphs originally supplied in only three
| font families to cover all the relevant fonts in the base 35.
|
| These remain covered by the GPL with the embedding exemption.
There /might/ be some license problem with redistributing these missing fonts.
While fixed, Arch can have a gsfonts2015 package, stuck with the old fonts, and it can be removed when xpdf start depending on the right set of fonts, or start providing them themselves (the fonts it depends on, and gsfonts doesn't provide)...
How about that?
1. xpdf package: Modify /etc/xpdfrc to point to existing, compatible fonts.
2. xpdf upstream: Adapt to existing, compatible fonts in gsfonts.
3. gsfonts package: Provide compatibility links to existing fonts while programs rely on them.
4. gsfonts upstream: Same as 3., because the old names may be considered "tradition" similar to
MTAs that provide sendmail compatible commands.
It seems to boil down to policy.
I agree that something should be done. Maybe follow the suggestion there and put the Type1 fonts into another package like gsfonts-type1 or so, and have xpdf depend on it?
Now the fix is simple and known. These fonts are not resource intensive, so please do something even it it consists of shipping two versions of the same fonts.