Bug 96514 - Text is scrambled after certain fontRefs
Summary: Text is scrambled after certain fontRefs
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-13 21:59 UTC by Stephen E.
Modified: 2018-08-20 22:29 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
PDF file demonstrating the bug (229.70 KB, application/pdf)
2016-06-13 21:59 UTC, Stephen E.
Details
Page 3 of the attached PDF as rendered by Poppler 0.45 (143.07 KB, image/png)
2016-06-23 20:55 UTC, Stephen E.
Details

Description Stephen E. 2016-06-13 21:59:07 UTC
Created attachment 124515 [details]
PDF file demonstrating the bug

I've encountered a PDF that Poppler renders improperly, scrambling text on entire pages.

I recently reported the same issue to PDF.JS, and a fix was implemented. Here are links from that discussion:

- The issue: https://github.com/mozilla/pdf.js/issues/7403
- The fix: https://github.com/mozilla/pdf.js/pull/7347
- Reduced test case PDF demonstrating the bug: https://github.com/Snuffleupagus/pdf.js/raw/d47c9f36f8b9b68d40496cf8a225816eea06fc38/test/pdfs/issue7403.pdf

I've attached the same PDF that I originally included in the above GitHub issue. In Poppler-based renders and conversions, the corruption is obvious in later pages (3-5).
Comment 1 Albert Astals Cid 2016-06-13 22:12:49 UTC
I can't see anyuthing wrong

Which poppler version are you using? which renderer? Can you attach a screenshot of what you get?
Comment 2 Stephen E. 2016-06-23 20:55:54 UTC
Created attachment 124689 [details]
Page 3 of the attached PDF as rendered by Poppler 0.45

(In reply to Albert Astals Cid from comment #1)
> I can't see anyuthing wrong
> 
> Which poppler version are you using? which renderer? Can you attach a
> screenshot of what you get?

Here is page 3 of the PDF attachment as rendered by Poppler 0.45.0. Pages 4 and 5 look similar. The result is identical whether you use pdftocairo or pdftoppm.

Commands used:

    poppler-0.45.0/utils/pdftocairo -png garbled.pdf pdftocairo

    poppler-0.45.0/utils/pdftoppm -png garbled.pdf pdftoppm
Comment 3 Albert Astals Cid 2016-07-05 21:54:22 UTC
Oh, interesting, if you use pdftoppm looks weird but if you use qt4/tests/test-poppler-qt4 it looks good :S
Comment 4 GitLab Migration User 2018-08-20 22:29:20 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/246.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.