question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PDFViewerApplication annotations misplaced

See original GitHub issue

Link 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:

  1. scroll to page 12
  2. scroll a lot of pages and go to page 90
  3. using the page selector, go to page 12

Now I see the data annotation misplaced like: image

but it must be: image

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:closed
  • Created 7 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Snuffleupaguscommented, Dec 12, 2016

I recall there was an issue about flipped annotations before that has been fixed.

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 pdf have many data annotation; very often in the scenario presented in configuration the annotations are misplaced.

The “very often” part seems to suggest that this is an intermittent issue, thus making any sort of debugging quite hard.

Web browser and its version: Android 5.01 webview Operating system and its version: Samsung Galaxy Tab with Android 5.0.1 […] I’m trying a lot, but I’m unable to reproduce this issue in a desktop browser…

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.

0reactions
Snuffleupaguscommented, Feb 9, 2017

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PDF.js - Using search function on embedded PDF
I embedded a PDF using PDF.js with the iframe src=viewer.html?file=... tag. I'm using PDF.js and its viewer.html as it already provides a search...
Read more >
Information on using PDF Viewer Plus - Nuance Support
PDF Viewer Plus allows the user to open, read, annotate, share, search and create PDF files. During the installation of PaperPort, the user...
Read more >
PDF Viewer - Annotation Expert on the App Store
PDF Viewer Pro is a fast and beautiful app, allowing you to view, search, and annotate PDF documents with ease on your Mac....
Read more >
Resolving the Adboe PDF error 110 – “The document could ...
Resolving the Adboe PDF error 110 – “The document could not be saved.” ... Adobe Acrobat Reader DC is the standard PDF Viewer...
Read more >
Can I download previous versions of single apps without re ...
Nope, but you can get a different PDF viewer application. ... Preview seems to have corrupted PDF and lost all text and arrow...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found