Bug 71141 - Text not displayed in PDF
Summary: Text not displayed in PDF
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-01 20:37 UTC by Cédric
Modified: 2018-08-21 11:10 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Pdf of Invoice (162.88 KB, text/plain)
2013-11-01 20:37 UTC, Cédric
Details
zathura with poppler backend (8.38 KB, image/png)
2013-11-03 18:22 UTC, Cédric
Details
zathura with mupdf backend (19.63 KB, image/png)
2013-11-03 18:23 UTC, Cédric
Details

Description Cédric 2013-11-01 20:37:48 UTC
Created attachment 88511 [details]
Pdf of Invoice

Hello,

I receive regularly a pdf document but when I open it, no text is displayed. I have tried with the pdf viewers okular and zathura. If I change the backend to mupdf for those viewers the pdf is displayed properly. The file is a pdf version 1.2. It's old, but unfortunately, it's what I receive and it's from a firm, so I can change nothing. I have modified a pdf document with which we can reproduce the the problem. There is not a lot of text in the modified version. 

Just tell me if you need something else. 

Thanks
Comment 1 Albert Astals Cid 2013-11-01 23:03:12 UTC
Works fine for me, which poppler and freetype versions do you have?
Comment 2 Cédric 2013-11-02 19:06:50 UTC
Sorry, I wanted to mention the poppler version, but I forgot. I have poppler 0.24.3 and freetype 2.5.0.1.
Comment 3 Albert Astals Cid 2013-11-03 12:19:57 UTC
Just to be sure, can you attach a screenshot showing where the text is missing?
Comment 4 Cédric 2013-11-03 18:22:29 UTC
Created attachment 88567 [details]
zathura with poppler backend
Comment 5 Cédric 2013-11-03 18:23:22 UTC
Created attachment 88568 [details]
zathura with mupdf backend
Comment 6 Cédric 2013-11-03 18:33:58 UTC
I have just attached the two pictures. There is somehting more I can say if you don't have the problem. With zathura and the mudpf backend I get the following when I start zathura with the file:

% warning: premature end of data in flate filter
warning: ... repeated 6 times ...

And with the poppler backend:

% Syntax Error: could not create truetype face<0a>
some font thing failed

I have already asked on some forums, and I was said the problem has to do with some fonts. Take a look here

https://bbs.archlinux.org/viewtopic.php?id=169198
Comment 7 Albert Astals Cid 2013-11-03 21:25:42 UTC
How hard would be for you to try to downgrade freetype to 2.4.12 ?
Comment 8 Cédric 2013-11-04 10:13:15 UTC
I have downgraded to freetype 2.4.12, but I get exactly the same. I can't remember it worked in the past and for sure I have tried before freetype 2.4.12. But perhaps you want to try freetype 2.4.12 with something else.
Comment 9 kurt.pfeifle 2013-11-07 20:11:15 UTC
It is not clear to me how the "Pdf of Invoice" should display.

Ghostscript (current Git version, 9.11 pre-release) emits these warnings about the file:

Page 1
   **** Ignoring nested BT operator.
   **** Ignoring nested BT operator.
   **** Ignoring nested BT operator.
   **** Warning: File has unbalanced q/Q operators (too many q's)
   **** This file had errors that were repaired or ignored.
   **** The file was produced by: 
   **** >>>> Composeur Ver. VERSION 4.7.1.83 <<<<
   **** Please notify the author of the software that produced this
   **** file that it does not conform to Adobe's published PDF
   **** specification.

Cédric's "Pdf of Invoice" is an "incrementally updated" PDF. As such it is easy enough for PDF-savvy people to restore its original version (including the full content!).

@Cédric: you should consider to remove the file if you think it contains confidential stuff!
Comment 10 Cédric 2013-11-07 22:05:15 UTC
Thank you Kurt for reporting it! I didn't know it was possible to find the data from the pdf. Unfortunately, I can't find how I can delete the attachment. Could an admin delete it or did I miss the option ?

I could then send the pdf on request to solve the bug.
Comment 11 Albert Astals Cid 2013-11-14 22:52:40 UTC
Sorry i can't delete the file. Maybe you can try https://bugs.freedesktop.org/enter_bug.cgi?product=freedesktop.org ?

About the bug it's hard what to say, i can perfectly see it here with my freetype, and the error is pointing exactly to freetype being unable to create the font, so it *seems* that freetype may be the problem, but then if you update to my version you don't get it to work either, so i'm lost.

I'll leave the bug open but unless someone can shed more light not sure we can do much.
Comment 12 GitLab Migration User 2018-08-21 11:10:23 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/547.


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.