Other PDF Issues

How to Hide the PDF Embed Toolbar in Firefox

Huda QurayshiHuda Qurayshi Nov 5, 2026 868 views

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.

How to Hide the PDF Embed Toolbar in Mozilla 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.
Before you start

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.

Solution 1Recommended

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.

1
Remove standard embed 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.

2
Integrate PDF.js directly

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.

3
Customize the viewer UI

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.

Implement Custom PDF.js Integration
Developer Knowledge Required: This workaround requires front-end web development experience. If you are not a developer, you may need to accept the native browser behavior or provide a direct download link to the PDF instead.
Advanced PDF Management

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. 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. 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. 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.
Consistent, high-quality PDF viewing without browser toolbar limitations.Advanced offline tools to edit text, insert images, and manage PDF pages natively.Highly compatible with standard Adobe PDF formats and Microsoft Office files.
microsoft office alternative - wps office

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.