When I open a particular pdf with Evince, I get this error:
evince: ../cairo/src/cairo-scaled-font.c:285: _cairo_scaled_font_set_error: Assertion `status < CAIRO_STATUS_LAST_STATUS' failed.
Aborted (core dumped)
It only happens with this specific pdf and only Evince. I don’t have control over how the original pdf is built.
I’ve isearched and have tried several actions to pinpoint the problem and get a solution.
-
firefox
,xpdf
,qpdfview
open the pdf with no visual problem. -
pdfinfo
output looks the same as any other working pdf. -
qpdf --check
doesn’t show any errors. -
pdftocairo -png -f 1 -l 1 <pdf> -o cairo-output
produces the same error as evince.
Based on this arch bb entry, my current workaround is to either use a program that works (#1 above) or rebuild the pdf via:
pdftops -origpagesizes <in.pdf> - | ps2pdf - <out.pdf>
Any other suggestions or thoughts?
pdffonts
pdffonts
name type encoding emb sub uni object ID
------------------------------------ ----------------- ---------------- --- --- --- ---------
[none] Type 3 Custom yes no yes 2 0
Helvetica Type 1 WinAnsi no no no 9 0
Helvetica-Bold Type 1 WinAnsi no no no 10 0
Helvetica-Oblique Type 1 WinAnsi no no no 11 0
[none] Type 3 Custom yes no yes 12 0
[none] Type 3 Custom yes no yes 13 0
Helvetica Type 1 WinAnsi no no no 72 0
Helvetica-Oblique Type 1 WinAnsi no no no 73 0
Helvetica-Bold Type 1 WinAnsi no no no 74 0
[none] Type 3 Custom yes no yes 75 0
pdffonts -subst
name object ID substitute font substitute font file
------------------------------------ --------- ------------------------------------ ------------------------------------
Helvetica 9 0 NimbusSans-Regular /usr/share/fonts/gsfonts/NimbusSans-Regular.otf
Helvetica-Bold 10 0 NimbusSans-Bold /usr/share/fonts/gsfonts/NimbusSans-Bold.otf
Helvetica-Oblique 11 0 NimbusSans-Italic /usr/share/fonts/gsfonts/NimbusSans-Italic.otf
Helvetica 72 0 NimbusSans-Regular /usr/share/fonts/gsfonts/NimbusSans-Regular.otf
Helvetica-Oblique 73 0 NimbusSans-Italic /usr/share/fonts/gsfonts/NimbusSans-Italic.otf
Helvetica-Bold 74 0 NimbusSans-Bold /usr/share/fonts/gsfonts/NimbusSans-Bold.otf
Environment: XFCE; Updated regularly