-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Scrolling for PDF file is slow #3120
Comments
Using Nightly, Ubuntu 12.10 and pdf.js development i jsut get this warning:[07:47:53.914] "Warning: Error during font loading: ranges[(ranges.length - But, at first glance, the pdf looks OK... 2013/4/19 Matthias Jacob [email protected]
Att, Marcos Paulo de Souza |
Just to be exact on where to spot the error: The first pages are fine (except page 2, umlauts are missing). But the table on page 4 for example has missing characters, wrong characters (probably due to umlauts/missing font), and misplaced characters. An example: In the first column, one of the lines in bold font should read "Der Betrieb von öffentlichen Apotheken". |
Matthias, Thanks for some details :) But here, I don't see any errors.. Just in page 2, there are some strange lines around the main image... 2013/4/19 Matthias Jacob [email protected]
Att, Marcos Paulo de Souza |
Is this still an issue? |
Just tried that document again with FF 22.0 (32 bit, Win 7 x64) and the problem persists, although the errors I initially reported seem to be gone. I am aware that this might not be much of a help. If I can do anything to provide you with more information, I will be glad to help in order to get this display error fixed. PS: Maybe this issue is already fixed in a nightly build, as @marcosps indicated, but not yet shipped with FF 22.0? Or it is a Windows-only problem? |
It is still an issue in Firefox 24.0, but it works in Evince |
I can no longer reproduce this issue using the latest Nightly. My configuration is: Windows 7 (64-bit); Firefox Nightly 28 (buildID: 20131114030204), with HWA both on and off; and PDF.js 0.8.689. Since I could reproduce this a week ago, I've tried to bisect where this was fixed. It turns out that this wasn't actually fixed by a patch in PDF.js, but it actually seems to have been resolved by a patch in Firefox. The pushlog is fairly long, but after reading through it the most likely candidates seems to be https://bugzilla.mozilla.org/show_bug.cgi?id=936440, or maybe https://bugzilla.mozilla.org/show_bug.cgi?id=909344. |
This is fixed now, but I'm labeling this as a performance issue because there is a big scrolling delay after a few pages are loaded. |
I also consider the performance issue as not fixed, even with #5586: try to scroll down to page 25 or some other page with a lot of small text, and the large number of div elements will slow Firefox down significantly (there's one div for every two letters or so). If its not slow, try scrolling up an down for a while. |
@fkaelberer Since the font issue was actually fixed at one point (PR #4259), would you mind running |
I can reproduce the missing letters and the scrolling performance is still a bit of a problem once you get half-way scrolling through the document. |
There are sanitizer errors, which might explain the missing characters: "PDF 956fb3798200a14d9840b55a0f7db9af [1.4 Adobe PDF Library 8.0 / Adobe InDesign CS3 (5.0.4)] (PDF.js: 1.1.203)" viewer.js:6633:0 downloadable font: CFF : failed to parse table (font-family: "g_font_98" style:normal weight:normal stretch:normal src index:0) source: data:font/opentype;base64,T1RUTwAJAIAAAwAQQ0ZGIDNVseoAAACcAAAB0U9TLzIEjypwAAACcAAAAGBjbWFwAAvgMwAAAtAAAAAsaGVhZKsnUAkAAAL8AAAANmhoZWEDugKaAAADNAAAACRobXR4AAAAAAAAA1gAAAAEbWF4cAABUAAAAANcAAAABm5hbWUlFWqxAAADZAAAAo5wb3N0AAMAAAAABfQAAAAgAQAEAgABAQElU0RPSVFOK0hlbHZldGljYU5ldWUtSGVhdnktT1YtR0lHVVpBAAEBAUb4G/gciwwe+B0B+B4EHQAAoZsN+z37fvrc+ksFHQAAAWIPHQAAAWMRHQAAAAAdAAAAABL4HwwVHQAAAYcMJR0AAAGJDCQABgEBBg6lqsLfQWRvYmVJZGVudGl0eUNvcHlyaWdodCBcKGNcKSAxOTg4LCAxOTkwLCAxOTkzIEFkb2JlIFN5c3RlbXMgSW5jb3Jwb3JhdGVkLiAgQWxsIFJpZ2h0cyBSZXNlcnZlZC5IZWx2ZXRpY2EgaXMgYSB0cmFkZW1hcmsgb2YgTGlub3R5cGUtSGVsbCBBRyBhbmQvb3IgaXRzIHN1YnNpZGlhcmllcy5IZWF2eS9PcmlnRm9udFR5cGUgL1R5cGUxIGRlZkhlbHZldGljYU5ldWUtSGVhdnktT1YtR0lHVVpBAAAAAAABAQEg90b3+QHT9/kD0/f5FSjaO+7u29vu7jvaKCg8PCgeDgAAAAEBARAdAAAAMx0AAAGdEvggDC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AGkAYwBhAE4AZQB1AGUALQBIAGUAYQB2AHkALQBPAFYALQBHAEkARwBVAFoAQQBWAGUAcgBzAGkAbwBuACAAMAAuADEAMQBVAG4AawBuAG8AdwBuAFUAbgBrAG4AbwB3AG4AVQBuAGsAbgBvAHcAbgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= PZ-Beilage-ApBetrO_2012_21.pdf downloadable font: rejected by sanitizer (font-family: "g_font_98" style:normal weight:normal stretch:normal src index:0) source: data:font/opentype;base64,T1RUTwAJAIAAAwAQQ0ZGIDNVseoAAACcAAAB0U9TLzIEjypwAAACcAAAAGBjbWFwAAvgMwAAAtAAAAAsaGVhZKsnUAkAAAL8AAAANmhoZWEDugKaAAADNAAAACRobXR4AAAAAAAAA1gAAAAEbWF4cAABUAAAAANcAAAABm5hbWUlFWqxAAADZAAAAo5wb3N0AAMAAAAABfQAAAAgAQAEAgABAQElU0RPSVFOK0hlbHZldGljYU5ldWUtSGVhdnktT1YtR0lHVVpBAAEBAUb4G/gciwwe+B0B+B4EHQAAoZsN+z37fvrc+ksFHQAAAWIPHQAAAWMRHQAAAAAdAAAAABL4HwwVHQAAAYcMJR0AAAGJDCQABgEBBg6lqsLfQWRvYmVJZGVudGl0eUNvcHlyaWdodCBcKGNcKSAxOTg4LCAxOTkwLCAxOTkzIEFkb2JlIFN5c3RlbXMgSW5jb3Jwb3JhdGVkLiAgQWxsIFJpZ2h0cyBSZXNlcnZlZC5IZWx2ZXRpY2EgaXMgYSB0cmFkZW1hcmsgb2YgTGlub3R5cGUtSGVsbCBBRyBhbmQvb3IgaXRzIHN1YnNpZGlhcmllcy5IZWF2eS9PcmlnRm9udFR5cGUgL1R5cGUxIGRlZkhlbHZldGljYU5ldWUtSGVhdnktT1YtR0lHVVpBAAAAAAABAQEg90b3+QHT9/kD0/f5FSjaO+7u29vu7jvaKCg8PCgeDgAAAAEBARAdAAAAMx0AAAGdEvggDCZ8mvlemvtmmvc3lAb3oZTWlP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GUAYQB2AHkALQBPAFYALQBHAEkARwBVAFoAQQBWAGUAcgBzAGkAbwBuACAAMAAuADEAMQBVAG4AawBuAG8AdwBuAFUAbgBrAG4AbwB3AG4AVQBuAGsAbgBvAHcAbgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= PZ-Beilage-ApBetrO_2012_21.pdf downloadable font: font load failed (font-family: "g_font_98" style:normal weight:normal stretch:normal src index:0) source: data:font/opentype;base64,T1RUTwAJAIAAAwAQQ0ZGIDNVseoAAACcAAAB0U9TLzIEjypwAAACcAAAAGBjbWFwAAvgMwAAAtAAAAAsaGVhZKsnUAkAAAL8AAAANmhoZWEDugKaAAADNAAAACRobXR4AAAAAAAAA1gAAAAEbWF4cAABUAAAAANcAAAABm5hbWUlFWqxAAADZAAAAo5wb3N0AAMAAAAABfQAAAAgAQAEAgABAQElU0RPSVFOK0hlbHZldGljYU5ldWUtSGVhdnktT1YtR0lHVVpBAAEBAUb4G/gciwwe+B0B+B4EHQAAoZsN+z37fvrc+ksFHQAAAWIPHQAAAWMRHQAAAAAdAAAAABL4HwwVHQAAAYcMJR0AAAGJDCQABgEBBg6lqsLfQWRvYmVJZGVudGl0eUNvcHlyaWdodCBcKGNcKSAxOTg4LCAxOTkwLCAxOTkzIEFkb2JlIFN5c3RlbXMgSW5jb3Jwb3JhdGVkLiAgQWxsIFJpZ2h0cyBSZXNlcnZlZC5IZWx2ZXRpY2EgaXMgYSB0cmFkZW1hcmsgb2YgTGlub3R5cGUtSGVsbCBBRyBhbmQvb3IgaXRzIHN1YnNpZGlhcmllcy5IZWF2eS9PcmlnRm9udFR5cGUgL1R5cGUxIGRlZkhlbHZldGljYU5ldWUtSGVhdnktT1YtR0lHVVpBAAAAAAABAQEg90b3+QHT9/kD0/f5FSjaO+7u29vu7jvaKCg8PCgeDgAAAAEBARAdAAAAMx0AAAGdEvggDCZ8mvlemvtmmvc3lAb3oZTWlPy0kwd6nPlenPtqlwj3pZLvkvzplwn3J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FoAQQBWAGUAcgBzAGkAbwBuACAAMAAuADEAMQBVAG4AawBuAG8AdwBuAFUAbgBrAG4AbwB3AG4AVQBuAGsAbgBvAHcAbgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= PZ-Beilage-ApBetrO_2012_21.pdf |
I don't see any sanitizer errors anymore and it appears all the missing letters are better. Can someone else confirm? |
@brendandahl The characters on page 11 are still missing for me on Windows 10 x64. It still looks like #3120 (comment), even with the most recent development add-on. The sanitizer errors are indeed gone. |
So the missing letters seem to depend on the browser, no matter which pdf.js version or OS is used. Besides the missing letters, text selection is also not correct, there are too many word breaks. If I double click on "Apothekenbetriebsordnung" (in the header of page 11), then only a part of the word is selected. In Sumatra or Acrobat, text selection works as expected. |
FYI: missing chars are still an issue in Firefox 52.3.0 ESR, Linux amd64. |
Closing since the performance problems have been solved and the characters are no longer missing. |
http://www.pharmazeutische-zeitung.de/fileadmin/pdf/PZ-Beilage-ApBetrO_2012_21.pdf
This looks odd and produces a bunch of errors. Actually, it is just those two:
and
The other errors are in fact only siblings of the two mentioned above, as only the font family is different.
Note that the font is provided as a data url. Please also note that the document contains German umlauts.
EDIT
Tested under Firefox 20.0.1.
The text was updated successfully, but these errors were encountered: