mozilla / pdf.js

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

The filled data in the document disappears on window resize event #4369

Closed fcaballero closed 10 years ago

fcaballero commented 10 years ago

The first time when the PDF is rendered the data filled by any PDF writter, for instance Adobe: image

but as soon as the window resize event is triggered that data disappears, to reproduce the bug you should keep open the pdf for a while, let's say 1 minute and then click on the "show side bar" button of the viewer:

image

PDF link: https://drive.google.com/file/d/0B_0FFVoXanYRWElvcXN6clRVOTA/edit?usp=sharing browser: Chrome 33.0.1750.117 and firefox 27.0.1 OS: Windows 7

Snuffleupagus commented 10 years ago

You need to provide a link to a PDF file that demonstrates the issue. Also, when reporting an issue, please see: https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#wiki-issue

fcaballero commented 10 years ago

This is the console log:

document_properties is undefined. l10n.js:794

document_properties is undefined. l10n.js:877

document_properties_label is undefined. l10n.js:794

document_properties_label is undefined. l10n.js:877

document_properties_file_name is undefined. l10n.js:794

document_properties_file_name is undefined. l10n.js:877

document_properties_file_size is undefined. l10n.js:794

document_properties_file_size is undefined. l10n.js:877

document_properties_title is undefined. l10n.js:794

document_properties_title is undefined. l10n.js:877

document_properties_author is undefined. l10n.js:794

document_properties_author is undefined. l10n.js:877

document_properties_subject is undefined. l10n.js:794

document_properties_subject is undefined. l10n.js:877

document_properties_keywords is undefined. l10n.js:794

document_properties_keywords is undefined. l10n.js:877

document_properties_creation_date is undefined. l10n.js:794

document_properties_creation_date is undefined. l10n.js:877

document_properties_modification_date is undefined. l10n.js:794

document_properties_modification_date is undefined. l10n.js:877

document_properties_creator is undefined. l10n.js:794

document_properties_creator is undefined. l10n.js:877

document_properties_producer is undefined. l10n.js:794

document_properties_producer is undefined. l10n.js:877

document_properties_version is undefined. l10n.js:794

document_properties_version is undefined. l10n.js:877

document_properties_page_count is undefined. l10n.js:794

document_properties_page_count is undefined. l10n.js:877

document_properties_close is undefined. l10n.js:794

document_properties_close is undefined. l10n.js:877

PDF bf4164f736fd44ebaad5bc626ebacd2 [1.5 Aspose.Pdf for Java 4.1 / Aspose Ltd.](PDF.js: 0.8.1) viewer.js:3256 Warning: AcroForm/XFA is not supported viewer.js:3274

Thanks

yurydelendik commented 10 years ago

I see PDF.js version is: 0.8.1. And I cannot replicate that with the latest version at http://mozilla.github.io/pdf.js/web/viewer.html. Please update PDF.js to the latest master.

yurydelendik commented 10 years ago

Okay, was able to replicate, I guess waiting for 1 minute is important step:

  1. Open PDF.js viewer and mrPotato.pdf
  2. Wait 1-2 minutes
  3. Press thumbnails sidebar