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

Highlighting not displaying #3885

Closed
aurimasv opened this issue Nov 4, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@aurimasv
Copy link

commented Nov 4, 2013

Highlighting does not display in the following minimal test case PDF document (lower right corner): https://www.dropbox.com/s/ooqk82fq0gr5p6f/test-min-notext-opt.pdf (generated from a larger document by removing irrelevant objects/text)

Tested on PDF.js 0.8.657 in Firefox 25.0. (built-in PDF.js on Firefox 25.0 fails to render the page entirely) Browser Console displays the following warning:
Warning: Unhandled rejection: Error: Bad encoding in flate stream error@resource://pdf.js/build/pdf.worker.js:126 FlateStream_getBits@resource://pdf.js/build/pdf.worker.js:32013 FlateStream_readBlock@resource://pdf.js/build/pdf.worker.js:32091 DecodeStream_getByte@resource://pdf.js/build/pdf.worker.js:31742 Lexer_nextChar@resource://pdf.js/build/pdf.worker.js:31270 Lexer_getObj@resource://pdf.js/build/pdf.worker.js:31466 Parser_shift@resource://pdf.js/build/pdf.worker.js:30932 Parser_getObj@resource://pdf.js/build/pdf.worker.js:30999 PartialEvaluator_getOperatorList@resource://pdf.js/build/pdf.worker.js:14501 PartialEvaluator_buildFormXObject@resource://pdf.js/build/pdf.worker.js:14184 PartialEvaluator_getOperatorList@resource://pdf.js/build/pdf.worker.js:14584 PartialEvaluator_buildFormXObject@resource://pdf.js/build/pdf.worker.js:14184 PartialEvaluator_getOperatorList@resource://pdf.js/build/pdf.worker.js:14584 Annotation_getToOperatorList/<@resource://pdf.js/build/pdf.worker.js:2570 runHandlers@resource://pdf.js/build/pdf.worker.js:795

The highlighting displays correctly in Chrome and Adobe Reader X. According to the original report, highlighting was generated via Android Acrobat Reader and used to be displayed properly several months ago (but it's not clear if it was though pdf.js).

@timvandermeij

This comment has been minimized.

Copy link
Contributor

commented Jan 7, 2014

Fixed by #4011.

jlegewie pushed a commit to jlegewie/zotfile that referenced this issue Jan 8, 2014

Joscha Legewie
fix for issue with certain pdfs
pdf.js issue
mozilla/pdf.js#3885

commit that solved the problem
mozilla/pdf.js#4011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.