mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
48.34k stars 9.97k forks source link

Background portrait in PDF not rendered in pdf.js #9763

Closed kicktheken closed 5 years ago

kicktheken commented 6 years ago

Attach PDF file here: tatertots-portrait.pdf

Title:          PowerPoint Presentation
Creator:        Acrobat PDFMaker 18 for PowerPoint
Producer:       Adobe PDF Library 18.9.66
CreationDate:   Sun Jan 21 20:41:25 2018 PST
ModDate:        Thu May 31 17:42:32 2018 PDT
Tagged:         yes
UserProperties: no
Suspects:       no
Form:           AcroForm
JavaScript:     no
Pages:          1
Encrypted:      no
Page size:      1920 x 1080 pts
Page rot:       0
File size:      995873 bytes
Optimized:      no
PDF version:    1.6

Configuration:

Steps to reproduce the problem:

  1. Open attached file in Mac PDF viewer or via Chrome 66.0.3359.181
  2. View attached file in Firefox 60.0.1 or on Chrome 66.0.3359.181 via https://mozilla.github.io/pdf.js/web/viewer.html

Expected: tatertots-portrait_good

Actual: tatertots-portrait_bad

janpe2 commented 6 years ago

The background portrait is a tiling pattern that has huge steps: /XStep 2147480000.0 /YStep 2147480000.0

Snuffleupagus commented 6 years ago

The background portrait is a tiling pattern that has huge steps: /XStep 2147480000.0 /YStep 2147480000.0

Given the above analysis, PR #6606 might be relevant here!?