Evince does not print hyphens in some PDF documents (cairo bug)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cairo |
Fix Released
|
High
|
|||
cairo (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
In some PDF files, characters like hyphen (minus sign) and others symbols are not printed in Evince.
According to https:/
The bug was fixed last year in version 1.15 (see https:/
I've backported the above patch in Ubuntu 16.04 xenial, and it fixes the bug.
To reproduce the bug (see attached test files) in Ububtu 16.04 (with libcairo2 1.14.6-1):
1. Create a LaTeX test document (test.tex) with the following content:
\documentclass{
\usepackage[
\begin{document}
a-b---
\end{document}
2. Create a test.pdf from test.tex:
pdflatex test.tex
3. Create a cairo pdf output (or print test.pdf on a printer, using Evince):
pdftocairo test.pdf -pdf test1.pdf
Open test1.pdf with Evince: as you can see, some of the hyphen signs have disappeared.
To fix the bug, rebuild the cairo deb packages with the attached patch, install the packages and do (or print test.pdf on a printer, using Evince):
pdftocairo test.pdf -pdf test2.pdf
Now, open test2.pdf with Evince: there is no more missing hyphen sign.
System: Ubuntu 16.04.3 LTS
Packages: libcairo2 (1.14.6-1)
tags: | added: patch xenial |
Changed in cairo: | |
importance: | Unknown → High |
status: | Unknown → Fix Released |
When I print PDF documents generated by pdflatex from Evince, the output often misses hyphens, dashes and similar symbols, which is quite annoying because it makes proofreading those printouts impossible.
Printing the same document from Okular does not result in missing hyphens.
The big can be reproduced without printing using pdftocairo:
> echo "\documentclass {article} \usepackage[ T1]{fontenc} \begin{ document} a-b---\ end{document} " | pdflatex
> pdftocairo -pdf article.pdf out.pdf
If you open article.pdf (in Evince or in Okular), you will see a hyphen and a long dash. If you open out.pdf instead, the dash is missing.
This bug has been observed already in other places: /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 810617 superuser. com/questions/ 969987/ how-to- prevent- missing- hyphens- when-printing- pdf-from- evince
https:/
http://
I am running an up-to-date Ubuntu 15.10 on AMD64 with
libpoppler52:amd64 0.33.0-0ubuntu3 and
evince 3.16.1-0ubuntu1.