Emano-Waldeck / pdf-reader

a PDF reader extension based on Mozilla's PDF.js library for Chromium-based browsers
https://webextension.org/listing/pdf-reader.html
29 stars 8 forks source link

Automatically prepares document for printing when opened #7

Open arunkumaraqm opened 3 years ago

arunkumaraqm commented 3 years ago

Most of the time, when I open a local file or one from the internet, the extension pops up the Preparing Document for Printing progress bar and tries to print the document. Operating system: Windows 10 Browser: Vivaldi 3.1

Emano-Waldeck commented 3 years ago

Can you share a screenshot? Is this happening when you open a local PDF file or any file?

arunkumaraqm commented 3 years ago

Any PDF file. The frequency of this error happening keeps changing. Here is a screen recording: https://drive.google.com/file/d/1KlDSOeJ0dYm-y7tQp4QJf_2avJT4JWJS/view?usp=sharing I did not press any keyboard shortcuts in the browser.

Emano-Waldeck commented 3 years ago

Can you share the PDF file too? It looks like that this PDF has an embedded JS code to run window.print();

arunkumaraqm commented 3 years ago

Module 3 - PPT.pdf

arunkumaraqm commented 3 years ago

[Feature Request] Disable JavaScript when rendering PDF.

Emano-Waldeck commented 3 years ago

There is a new option on the v0.2.0 release to enable scripting. Enable this option to get rid of the initial printing dialog.

arunkumaraqm commented 3 years ago

Do you mean Options or Rendering Options? Besides, I wouldn't know what to type in to remove the dialog. On the other hand, where's the theme that was used before? I can barely see the options on the top bar.

Emano-Waldeck commented 3 years ago

I meant the rendering options of the right-click context menu. You just need to enable the checkbox.