mozilla / pdf.js

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

XFA does not handle page orientation changes #13749

Open JDziurlaj opened 3 years ago

JDziurlaj commented 3 years ago

Attach (recommended) or Link to PDF file here: https://www.arimr.gov.pl/fileadmin/pliki/delegowane/413_male_projekty/2012/wopp_413_MP_agll.pdf Configuration:

Steps to reproduce the problem:

  1. enableXfa = true
  2. Open form

What is the expected behavior? (add screenshot) image (pg 9)

What went wrong? (add screenshot) Page cuts off (also extra pages) (pg 19) image

calixteman commented 3 years ago

I cannot find the pdf anymore. @JDziurlaj would you be able to find it again and upload it here ?

Snuffleupagus commented 3 years ago

An earlier version of that document can be found on the Internet Archive, where pages 10 and 11 are the "landscape" ones: wopp_413_MP_agll.pdf

In PDF.js that document has 20 pages, whereas in Adobe Reader (with scripting disabled) there's only 13 pages.

marco-c commented 3 years ago

Related to https://bugzilla.mozilla.org/show_bug.cgi?id=1730129?