How to Create a PDF from a Website Without JavaScript in Acrobat
Question details
The user needs to convert a web page to a PDF document without including the dynamic, JavaScript-generated content.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Converting a dynamic website into a static PDF document.
- Observed behavior
- Acrobat automatically renders and includes JavaScript-generated content during the web-to-PDF conversion, and does not provide a dedicated built-in toggle to disable JavaScript execution.
Before attempting the conversion, test the target webpage in your browser with JavaScript disabled to confirm that the static content renders correctly without breaking the page layout.
Use the Browser's Native Print to PDF Feature
Since Acrobat's direct conversion engine automatically executes JavaScript, the most reliable workaround is to disable JavaScript directly in your web browser and save the page as a PDF using the browser's print function.
Modern web browsers allow you to block JavaScript on a per-site basis. By disabling JavaScript first, you force the browser to render only the static HTML content. You can then use the built-in print functionality to generate a clean PDF without dynamic elements.
Click the site information icon (usually a padlock) next to the website URL in your browser's address bar, go to Site Settings, and change the JavaScript permission to 'Block'.
Refresh the webpage so it loads entirely without JavaScript.
Press Ctrl + P (Windows) or Cmd + P (Mac) to open the browser's print menu.
In the 'Destination' or 'Printer' dropdown menu, select 'Save as PDF' instead of a physical printer.
Click the 'Save' button and choose a location on your computer to store the static PDF.

Adjust Acrobat Web-to-PDF Preferences
While Adobe Acrobat lacks a specific 'Disable JavaScript' switch, you can modify the Web Page conversion settings to filter out certain dynamic media elements.
Manage and Edit Web PDFs Easily with WPS Office
Bypass complicated conversion settings by printing your webpages directly to a PDF, then use WPS Office to edit, annotate, and refine the document. WPS PDF provides a comprehensive set of tools to handle all your document needs without the high subscription costs.
- 1. Download and install WPS Office: Get the free WPS Office suite from the official website and install it on your device.
- 2. Print webpage to PDF: Use your browser's native print function (Ctrl + P) to save your desired webpage as a PDF file.
- 3. Open the PDF in WPS: Launch WPS Office, click on 'Open', and select the newly created web PDF.
- 4. Edit and annotate: Use the 'Edit' and 'Comment' tabs to highlight text, remove unwanted blank pages, or add notes to the static content.

Frequently Asked Questions
Why does Acrobat include JavaScript elements when converting a webpage to PDF?
Acrobat's web conversion engine acts like a modern browser. It executes scripts to ensure that dynamically loaded text, images, and layouts are captured exactly as they would appear on a fully loaded screen.
Can I disable JavaScript directly inside the Acrobat browser extension?
No, the Acrobat browser extension does not currently offer a dedicated setting to disable JavaScript during the web-to-PDF conversion process.
How can I capture a webpage without annoying pop-ups or dynamic ads?
The most effective method is to use your web browser's site settings to block JavaScript for that specific page, reload it to ensure a clean layout, and then use the browser's native 'Print to PDF' feature.




