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

Character encoding not recognized in pages don't loaded in first place #3263

Closed
APuertaSales opened this issue May 16, 2013 · 1 comment · Fixed by #3265
Closed

Character encoding not recognized in pages don't loaded in first place #3263

APuertaSales opened this issue May 16, 2013 · 1 comment · Fixed by #3265

Comments

@APuertaSales
Copy link

Hi all.
I'm trying to use pdf.js to serve PDFs from my WEB page. I've installed the code on my server and I've prepared a demo:

http://visionmedia.dev.cervantesvirtual.com/web/220816.html#page=15

It's a huge PDF, to test.
If you make scroll to a page up or a page down (sometimes 2 or 3 pages up or down), you find that the encoding changes and you can't read the text.
In the first page I don't get messages from my Firefox console, but when I change the page until I find one with the wrong encoding, I get messages in console:

downloadable font: table 'glyf': failed to parse table (font-family: "g_font_p23_6" style:normal weight:normal stretch:normal src index:0)
downloadable font: rejected by sanitizer (font-family: "g_font_p23_6" style:normal weight:normal stretch:normal src index:0)
downloadable font: font load failed (font-family: "g_font_p23_6" style:normal weight:normal stretch:normal src index:0)

But I don't have any of this errors if I try this PDF in Firefox opening it locally: I show the encoding fine in every page and I don't get any message in console.

Thank you in advance.

wrong
fine

@APuertaSales
Copy link
Author

Thank you very much.

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.

1 participant