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

Annotations appear misplaced #5974

Closed
mabkenar opened this issue Apr 28, 2015 · 7 comments
Closed

Annotations appear misplaced #5974

mabkenar opened this issue Apr 28, 2015 · 7 comments

Comments

@mabkenar
Copy link

I have a PDF file (in grayscale) which is annotated (in red) using the Adobe PDF software. Opening it using Evince or Adobe Reader shows the annotations in the correct position (middle right of the page).

Opening the same file using pdf.js shows the annotations
(a) much smaller, and
(b) in the wrong place, bottom left of the page.

Here is the PDF file:
https://iffcloud.fz-juelich.de/index.php/s/PxmixAyXdPyg252

Firefox version: 37.0.2
Also tested in ownCloud: version 8.0.2 (stable)

@mcorb
Copy link
Contributor

mcorb commented May 26, 2015

The annotations appear in the correct place with current PDF.js from git.

@mcorb
Copy link
Contributor

mcorb commented May 26, 2015

The integration process used by owncloud seems unsatisfactory:

https://github.com/owncloud/files_pdfviewer

It looks like they're bundling a partial build of the PDF.js sources without indicating which version is in use, which makes it difficult to diagnose problems here.

They should really use npm, bower or git submodules to handle dependencies so PDF issues can be addressed by the correct developers in the community. (I see a trail of PDF.js bug reports in their bug tracker that's mostly redundant duplication of effort.)

@mabkenar
Copy link
Author

I suppose the version of pdf.js shipped with Firefox is up-to-date. Now I want to test my PDF using the Firefox version of pdf.js from my local file.
When I open my local PDF file (Ctrl+O) from inside Firefox, I see a Firefox dialog asking whether I want to save the file or to open it using an external viewer. How can I force Firefox to open the file internally using pdf.js?

@timvandermeij
Copy link
Contributor

It does not seem to work for me yet, even with the latest PDF.js build. The annotations are very small and in the bottom left for me. You can always work with the latest PDF.js build (Git master) on https://mozilla.github.io/pdf.js/web/viewer.html. Use the Open File button in the toolbar to open a PDF file.

@mabkenar
Copy link
Author

@timvandermeij thanks for your help. For me it is also the same. Even the Git master branch shows the annotations wrong (very small and in the bottom left). The Evince 3.10.3 viewer on my Ubuntu 14.04 LTS works fine, showing the annotations in the middle right and much bigger (as it was intended when edited by my colleague using Adobe Reader).
@mcorb Can you confirm this?

@mcorb
Copy link
Contributor

mcorb commented May 26, 2015

@mabkenar My mistake. A local copy of the PDF was auto-saved by the Preview PDF viewer, and that appears to have made it work.

I can now confirm the misplaced annotations are still a problem with the original file and the current development PDF.js.

@timvandermeij
Copy link
Contributor

Closing as fixed by #6814.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants