How to Stop a PDF Print Dialog from Opening Automatically
Question details
The user wants to prevent a Print dialog box from appearing automatically right after downloading or opening a PDF file from Gmail in Internet Explorer.

- Product
- Web Browser PDF Viewer
- Device & OS
- not provided
- Scenario
- Downloading or opening a PDF attachment from an email client using a web browser.
- Observed behavior
- A Print dialog automatically triggers and opens on the screen as soon as the PDF is downloaded or viewed in the browser.
Before changing any settings, check your browser's interface to confirm whether the PDF is being opened by the browser's built-in PDF viewer or an external plugin like Adobe Acrobat.
Identify and Change the Default PDF Viewer in Your Browser
Check which application is handling PDFs in your browser, as automatic print prompts usually stem from browser extensions or built-in viewers rather than dedicated desktop software.
Often, email clients like Gmail or browsers like Internet Explorer use their own integrated PDF viewers which might interpret download actions differently. Disabling the browser plugin forces the PDF to open in a dedicated desktop application.
Open the PDF from Gmail and look at the toolbar to determine if it is the browser's native viewer or an Adobe plugin.
Navigate to your browser's settings menu and select 'Manage Add-ons' or 'Extensions'.
Find the extension responsible for PDF viewing (e.g., Adobe Acrobat Reader or a native PDF viewer).
Disable the extension to force the browser to download the PDF instead of opening it automatically, or set your dedicated desktop software as the default handler.

Check the PDF File for Embedded Print Scripts
Determine if the auto-print behavior is caused by a specific script embedded inside the PDF file itself.
Open and Print PDFs Securely with WPS Office
Use WPS Office as your default PDF reader to bypass unwanted browser scripts and automatic print dialogs. It provides a clean, fast, and feature-rich desktop environment for viewing, editing, and printing PDF documents safely.
- 1. Install WPS Office: Download and install WPS Office on your computer for free.
- 2. Set as Default Viewer: Right-click any PDF file on your computer, select 'Open with', and choose WPS Office.
- 3. Apply settings: Check the box that says 'Always use this app to open .pdf files' to make it your default desktop viewer.
- 4. Open files safely: Double-click your downloaded PDFs to view them securely without unexpected browser print commands.

Frequently Asked Questions
Why does my PDF automatically try to print when I open it?
This happens for two main reasons: either the PDF file has an embedded JavaScript command created by the author to auto-print (common for shipping labels and tickets), or your web browser's PDF extension is misconfigured.
How do I stop my web browser from automatically opening PDFs?
You can change your browser settings to download PDFs directly instead of previewing them. In your browser's Privacy and Security settings, look for 'Site Settings' or 'Downloads', and toggle the option to download PDF documents instead of automatically opening them in the browser.
Can I disable JavaScript in my PDF reader to stop auto-printing?
Yes. If the PDF contains a print script, you can disable JavaScript in your dedicated PDF reader. For example, in most desktop PDF readers, you can navigate to Edit > Preferences > JavaScript, and uncheck 'Enable Acrobat JavaScript' to prevent scripts from executing.




