Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Text in pdfjs. Works in acrobat reader. #5804

Closed
petercartagena opened this issue Mar 6, 2015 · 4 comments · Fixed by #6820
Closed

Missing Text in pdfjs. Works in acrobat reader. #5804

petercartagena opened this issue Mar 6, 2015 · 4 comments · Fixed by #6820

Comments

@petercartagena
Copy link

Hi,

We have documents in which sometimes the text is not visible. It's weird since if I open the document in acrobat, the text is in there but if I open the same document on the viewer(http://mozilla.github.io/pdf.js/web/viewer.html) the text is not visible.

This is the document:
https://drive.google.com/file/d/0BxOKwuUlD3P1QTZWZVVQMWk3aTQ/view?usp=sharing

PDF viewer:
notext

PDF in acrobat:
text

I know the text is in there since:
textinhtml

When I unchecked the color property I can see the text but without the proper style.

textindocument

Windows 7. 64
Chrome 40.
Firefox 36, 26
IE 9.

@petercartagena petercartagena changed the title Missing Text in pdfjs but its in there in acrobar reader. Missing Text in pdfjs. Works in acrobat reader. Mar 6, 2015
@petercartagena
Copy link
Author

Any luck here?

@timvandermeij
Copy link
Contributor

Not yet, someone has to look into the shading pattern issue.

@THausherr
Copy link
Contributor

The text uses a shading pattern, which is the same problem as e.g. in #6234 (using a shading pattern for text rendering)

BT
/CS1 cs
/P0 scn
/T1_1 1 Tf
16 0 0 16 144.7216 584.7087 Tm
(THIS IS TEXT #1) Tj
ET

The file has two shadings, which are using type 3 and type 0 functions.

@petercartagena
Copy link
Author

It works.
Thank you very much guys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants