Pdf.js: Wrong content behaviour on the pdf

Created on 14 Nov 2019  路  3Comments  路  Source: mozilla/pdf.js

Attach (recommended) or Link to PDF file here:
pdf.pdf

Configuration:

  • Firefox 70.0.1 (64-bit)
  • Microsoft Windows 10 Pro, 10.0.18362 N/A Build 18362
  • PDF.js: 2.3.101 (Firefox console output)
  • built in

Steps to reproduce the problem:
Drag and drop the pdf file in a firefox browser.

What is the expected behavior? (add screenshot)
Line on the first page should have start coordinates x=100, y=100.
pdf
I have checked on a Chrome and Adobe, works fine.

What went wrong? (add screenshot)
Line on the bottom of the first page has start coordinates x=0, y=0.
pdf_wrong

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension):

1-core

Most helpful comment

This one does the transformation after the path has been set but before the draw. All PDFs I have seen do the transformation first. I could not find which way is correct by looking at the PDF specification.

All 3 comments

I can reproduce this using Firefox 70.0.1 (64-bit, Linux). There are no warnings/errors in the console.

This one does the transformation after the path has been set but before the draw. All PDFs I have seen do the transformation first. I could not find which way is correct by looking at the PDF specification.

Looks like a duplicate of #10908.

Was this page helpful?
0 / 5 - 0 ratings