[cairo-bugs] [Bug 105579] New: pdftocairo -pdf adds adds characters

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Mar 18 17:37:51 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105579

            Bug ID: 105579
           Summary: pdftocairo -pdf adds adds characters
           Product: cairo
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: pdf backend
          Assignee: ajohnson at redneon.com
          Reporter: jason at inspiresomeone.us
        QA Contact: cairo-bugs at cairographics.org

Created attachment 138181
  --> https://bugs.freedesktop.org/attachment.cgi?id=138181&action=edit
anonymized.pdf

I received a file from gour on the poppler IRC. With recent versions of cairo,
printing with evince adds some characters to the document. I don't believe I'm
allowed to share the original file so I'm attaching this anonymized version.

This is reproducible through poppler's pdftocairo program. Running `pdftocairo
-pdf anonymized.pdf bad.pdf` produces a pdf that shows additional characters. I
traced the regression to this commit:

commit 495362279b42620071c6b46f69918ce324aee0db (refs/bisect/bad)
Author: Adrian Johnson <ajohnson at redneon.com>
Date:   Sun Sep 27 08:27:53 2015 +0930

    scaled-font-subsets: if glyph 0 used for rendering, remap to different
index

    Some broken pdfs use glyph 0 in embedded fonts for rendering instead of
.notdef.
    The cmap we use for embedding latin fonts does not allow rendering glyph 0.
Ensure
    if glyph 0 is used, it is mapped to a non 0 glyph in the subset.

    Bug 89082

This PDF includes a character mapped to glyph index 0. It's not supposed to be
visible in the document, but after `pdftocairo -pdf` conversion it is.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo-bugs/attachments/20180318/2010f324/attachment.html>


More information about the cairo-bugs mailing list