Public bug reported:

In some PDF files, characters like hyphen (minus sign) and others
symbols are not printed in Evince.

According to https://bugs.freedesktop.org/show_bug.cgi?id=94615, the bug
is in version 1.14 of cairo.

The bug was fixed last year in version 1.15 (see
https://cgit.freedesktop.org/cairo/commit/?id=190678f6444ad879847d603c3c9eaf8e9ab6887a).

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{article}
\usepackage[T1]{fontenc}
\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)

** Affects: cairo (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: patch xenial

** Attachment added: "Test files and patch"
   
https://bugs.launchpad.net/bugs/1734092/+attachment/5013531/+files/test-files-and-patch.tar.gz

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1734092

Title:
  Evince does not print hyphens in some PDF documents (cairo bug)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/1734092/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to