How to Hide the PDF Embed Toolbar in Firefox
Question details
The user is trying to hide the PDF toolbar when embedding a document on a webpage, but standard HTML methods only work in Chrome and fail in Firefox.

- Product
- Mozilla Firefox
- Device & OS
- not provided
- Scenario
- Embedding a PDF file into a webpage using HTML embed tags and appending URL parameters to control the UI.
- Observed behavior
- The PDF embed toolbar is successfully hidden in Google Chrome but remains visible when the page is loaded in Mozilla Firefox.
Verify your HTML embed code parameters (such as #toolbar=0) and confirm you are testing on the latest version of Mozilla Firefox, as native browser rendering behaviors update frequently.
Implement Custom PDF.js Integration
Bypass Firefox's native PDF viewer limitations by explicitly integrating a JavaScript PDF rendering library on your webpage.
Firefox uses a built-in PDF viewer that handles URL parameters like #toolbar=0 differently than Chromium-based browsers.
To achieve a consistent UI where the toolbar is guaranteed to be hidden across all web browsers, you must avoid relying on native browser embedding tags.
Delete the standard <embed src='file.pdf#toolbar=0'> or <iframe> tags from your HTML source code, as Firefox natively ignores this toolbar parameter for accessibility reasons.
Download Mozilla's open-source PDF.js library and include the script within your website's codebase. This allows you to render the PDF onto a standard HTML5 <canvas> element.
Use the PDF.js API in your JavaScript code to build a custom viewing container without importing the default toolbar components, ensuring it renders seamlessly in both Firefox and Chrome.

Seek Support from the Mozilla Community
Because this is a specific Firefox rendering behavior rather than an Adobe or PDF software issue, Mozilla's developer support channels are the best resource for updates.
View and Edit PDFs Seamlessly with WPS Office
While browser-embedded PDFs can cause inconsistent viewing experiences across Chrome and Firefox, WPS Office provides a reliable, full-featured desktop environment for reading, editing, and sharing your PDF documents.
- 1. Open your PDF file natively: Launch WPS Office on your computer and click 'Open' to view your PDF document directly, bypassing unpredictable web browser viewers entirely.
- 2. Customize your reading mode: Navigate to the 'View' tab at the top of the screen and select 'Read Mode' to enjoy a clean, distraction-free layout with fully customizable toolbars.
- 3. Share documents securely: Use the 'Share' button in the top right corner to send the document as an email attachment or a secure link, guaranteeing the recipient views the file exactly as intended.

Frequently Asked Questions
Why does the #toolbar=0 parameter work in Chrome but not Firefox?
Google Chrome uses a built-in PDF viewer that actively reads and supports the #toolbar=0 URL parameter to hide the top menu in embedded iframes. Firefox relies on its own distinct PDF.js-based viewer, which handles parameters differently and intentionally prioritizes keeping the toolbar visible so users have consistent navigation controls.
Can modifying Adobe Acrobat settings fix the Firefox embed toolbar issue?
No. When a PDF is embedded within a webpage using HTML tags, the rendering process is completely handled by the web browser's native PDF viewer. Local Adobe Acrobat application settings do not influence how Firefox displays the file online.
Is there an HTML-only fix for hiding the PDF toolbar in Firefox?
Currently, there is no reliable HTML-only or URL-parameter method to completely hide the native Firefox PDF toolbar during embedding. The most robust and cross-browser compatible solution is to use a JavaScript-based rendering library, such as PDF.js, to manually draw the PDF document on a webpage canvas.




