PDFViewerApplication annotations misplaced
See original GitHub issueLink to PDF file (or attach file here): http://79.99.8.89/test/web/compressed.tracemonkey-pldi-09.pdf
Configuration:
Web browser and its version: Android 5.01 webview Operating system and its version: Samsung Galaxy Tab with Android 5.0.1 PDF.js version: 1.3.91
In order to use less memory possibile I’m loading the file in chunks and here is the configuration code:
PDFJS.disableWorker = true;
PDFJS.maxCanvasPixels = 393216;
I’m using pdfviewer in my application; the viewer works fine and is loaded ad documented here https://github.com/mozilla/pdf.js/issues/7127
The pdf have many data annotation; very often in the scenario presented in configuration the annotations are misplaced.
Often (not always) I see the issue in this way:
- scroll to page 12
- scroll a lot of pages and go to page 90
- using the page selector, go to page 12
Now I see the data annotation misplaced like:
but it must be:
How can I fix the issue? I’m trying a lot, but I’m unable to reproduce this issue in a desktop browser…
Kind regards, Irvin Dominin
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
Are you perhaps thinking of PR #6814, by any chance? If so, I’m unfortunately not sure if that will help here, since the annotations that this issue is about appear to just be standard
LinkAnnotations
with a border.The “very often” part seems to suggest that this is an intermittent issue, thus making any sort of debugging quite hard.
This further suggests that the issue might be platform and/or even browser specific, thus making debugging even harder.
So, to summarize: Based on all of the information provided, it seems very likely that this is a browser (or platform) specific bug, and thus unfortunately most likely not something that can be fixed on the PDF.js side.
Closing, since based on https://github.com/mozilla/pdf.js/issues/7434#issuecomment-266419093 there doesn’t appear to be much that can really be done about this in PDF.js unfortunately.