Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To display a password-protected PDF in a web application, use a browser-side viewer such as Mozilla PDF.js or Adobe PDF Embed API, then provide the document through a URL or bytes and handle the password prompt without confusing permission to view with permission to edit. For PDFs hosted on another domain, configure CORS or fetch the file through your application’s proxy. Which approach fits best depends on how much viewer control you need and how you want to manage document access and storage.

Choose a viewer: PDF.js or Adobe PDF Embed API

Both options provide a JavaScript-based way to display PDFs in a web application, but they differ in integration and data handling.

Consideration Mozilla PDF.js Adobe PDF Embed API
Integration Self-host a library and viewer, or build an interface with its display API. Mozilla’s getting-started guide describes the viewer as a starting point and recommends adapting or building on it when embedding on your own site. Mozilla PDF.js getting started Embed Adobe’s JavaScript viewer in your application. Adobe PDF Embed API overview
Document storage and access Your application controls how documents are stored and delivered to the browser. Adobe says the Embed API does not manage PDF storage. The host website or browser controls file access and storage; this is distinct from Adobe’s PDF Services APIs, which process documents. Adobe PDF Embed API security
Cross-origin delivery Fetching from another origin requires CORS permission or an application proxy. Range-based partial loading depends on browser and server support. Mozilla PDF.js FAQ Follow the access and delivery requirements for your integration. The cited Embed API documentation does not establish that it removes your application’s origin or authorization responsibilities.
Compatibility and maintenance Mozilla publishes versioned builds and browser guidance; test your supported browser matrix and check for newer releases. Use Adobe’s current integration documentation and validate the viewer against your application’s requirements.

PDF.js is a practical choice when you want control over the rendering stack and can manage delivery and compatibility. Its three layers are Core, which parses and interprets PDF data; Display, which provides rendering and document-information APIs; and Viewer, which supplies the user interface. Mozilla’s guide listed stable version 6.4.299 on October 4, 2026; that is a version observed on that date, not a permanent recommendation. Mozilla PDF.js getting started

Adobe PDF Embed API is an alternative if you want an integrated viewer. Adobe documents its core functionality as running in a sandboxed HTML iframe, which limits access across the iframe boundary. Its security documentation describes the API as client-side JavaScript and WebAssembly and says the viewer does not manage customer PDF storage. Adobe PDF Embed API security

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Yojaro 4Pack Silicone Suction Phone Case Mount, Silicon Adhesive Smartphones Stand Sticky, Hands-Free Phone Accessories Holder for Selfies and Videos (Black & White & Translucent & Light Pink)
  • 【Strong Adsorption】The inspiration of the silicone phone suction case comes from the adhesive force of the octopus. Each suction cup phone mount is 3.15 inches long and 2.17 inches wide, with 24 independent suction cups providing a stronger and more stable suction force, so you don't have to worry about your phone falling during use.
  • 【Back of Phone Suction Grip】Remove the adhesive film on the phone suction cup and stick it on the phone case. You can then fix the phone on any smooth surface, which is very convenient. (The phone suction cup cannot be removed and reused after being attached to the phone case. It is recommended to attach it to a regular phone case, not a valuable one.)
  • 【Widely Used】Our non-slip silicone phone sticky grip mount attaches to almost any flat phone case and make it compatible with common mobile phones such as iPhone and Android.You can shoot, watch videos or video calls in the kitchen, gym, dance studio, bathroom and other places.
  • 【Capture the Wonderful Picture】Whether you are a TikTok creator or just like to share videos and photos, this phone suction cup can help you hands-free capture wonderful videos and photos for sharing with friends.
  • 【Note】You can fix the phone suction cup on a smooth surface such as a mirror or glass. If necessary, wipe the suction cup with a damp cloth to obtain stronger suction. Before releasing your hand, make sure the phone is firmly fixed. (Not applicable to rough walls, wooden surfaces, and other uneven surfaces)

Understand the two PDF password types

A PDF’s password prompt does not always mean the same thing. Adobe distinguishes a document open password, also called a user password, from a permissions password, also called an owner password. Adobe: Secure PDFs with passwords

  • Open password: The person opening the PDF must enter the password.
  • Permissions password: Protects settings that may restrict printing, editing, or copying. A permissions-only password does not necessarily prevent someone from opening or viewing the document.

A PDF secured with both types can be opened with either password, but Adobe says only the permissions password allows restricted features to be changed. Design your application’s prompt and access flow around the action being requested: opening for viewing is not the same as changing document restrictions. Request only passwords the user is authorized to provide.

Rank #2
Apple EarPods Headphones with USB-C Plug, Wired Ear Buds with Built-in Remote to Control Music, Phone Calls, and Volume
  • SUPERIOR COMFORT — Unlike traditional circular ear buds, the design of EarPods is defined by the geometry of the ear. Which makes them more comfortable for more people than any other ear bud–style headphones.
  • HIGH-QUALITY AUDIO — The speakers inside EarPods have been engineered to maximize sound output and minimize sound loss, which means you get high-quality audio.
  • BUILT-IN REMOTE — EarPods with USB-C plug also include a built-in remote that lets you adjust the volume, control the playback of music and video, and answer or end calls with a pinch of the cord.
  • COMPATIBILITY — Works with all devices that have a USB-C port.
  • INTEGRATED MICROPHONE — A built-in microphone precisely captures your voice while you’re on the phone, taking a FaceTime call, or summoning Siri — so you’re always heard loud and clear.

Load a PDF with PDF.js

PDF.js can load a document from a URL or from raw bytes. When working with bytes, Mozilla recommends a Uint8Array rather than converting the file to base64, because base64 conversion uses more memory. If you provide a document URL in the viewer’s query string, encode it with encodeURIComponent(). Mozilla PDF.js FAQ

A URL-based request must also be permitted by the browser’s origin security rules. Mozilla explains that PDF.js runs with the same permissions as other JavaScript code and cannot make cross-origin requests by default. Configure the PDF server to allow the requesting origin with CORS, or have your application retrieve and serve the document through a proxy. The generic/demo viewer also blocks this behavior on deployments outside mozilla.github.io to reduce content-spoofing risk; do not treat that demo restriction as a substitute for configuring your own application. Mozilla PDF.js FAQ

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
PopSockets Adhesive Phone Grip, Holder- Black
  • Secure Hold: Our PopSockets adhesive phone grip gives your cell phone a secure, comfortable hold in hand to help prevent drops while texting, taking photos, or scrolling on the go. Designed to stick firmly to most phone cases and devices.
  • Hands-Free Made Easy: Easily turn your PopSocket into a phone stand to prop up your phone anywhere, perfect for watching videos, video calls, or following recipes. A must-have phone holder that keeps your device secure and ready for anything.
  • Compatibility: Works with all phones, tablets, and Kindles. Sticks best to smooth, hard plastic cases and may not adhere to silicone or textured cases. Easily swap your PopTop to change up your style.
  • Black PopSockets: Simple, refined, and endlessly versatile. A timeless essential for any phone.
  • Travel Must-Have for People On the Go: A must-have travel accessory for flights, flying, airports, air travel, airplanes, planes, international trips, cruises, and long travel days. Key gadget for your airport haul, travel accessories and must-haves.

For large PDFs, PDF.js may use HTTP Range Requests to retrieve portions needed for visible pages. This depends on browser support and the server’s range-request headers, so partial loading is not guaranteed in every deployment. Test the actual hosting setup and network behavior for your documents. Mozilla PDF.js FAQ

Plan password handling and processing carefully

When a PDF requires an open password, your application needs an authorized user to supply it to the viewer that opens the document. Do not treat a permissions password as though it were required merely to view every restricted PDF, or imply that a viewer can legitimately remove restrictions without authorization.

Rank #4
360° Rotating Stainless Steel Phone Tether Tab (Silvery 3-Pack) - Universal for iPhone & Other Phones (Fits Wristbands/Necklaces/Crossbody Straps)
  • [360 ° Flexible Rotation Design] Comes with a rotatable lanyard ring that supports 360 ° free rotation, effectively solving the problem of twisted and tangled lanyards
  • [Wide compatibility] The ultra-thin 0.02-inch design does not block the charging port at all, and both wired and wireless charging can be used directly without removing the pad. Compatible with most smartphones such as iPhone, compatible with various wristbands, lanyards, crossbody straps, and keychains
  • [Durable and Portable Material] Premium rust-resistant stainless steel material with good flexibility, which not only avoids scratching the phone case, but also has excellent anti rust and anti fading performance
  • [Multi scenario Practical] Paired with a lanyard or wristband, hands-free use can be achieved. The phone is within reach and not easily dropped, ideal for daily commuting and outdoor activities. Suitable for full coverage phone cases, does not support half coverage phone cases
  • [Quality Service] If you find any damage or other issues with the product upon receipt, please contact us immediately. We will handle it quickly

Adobe states that PDF files secured to require a password to open cannot be processed by PDF Services API. Its documentation describes Remove Protection for cases where the password is known and the PDF author has authorized removal. That is not a method for bypassing an unknown password. Adobe PDF Services: PDF protection

Keep authorization in your application’s delivery path: a viewer does not replace your controls over who may retrieve a document. Adobe says its Embed API does not manage PDF storage, so access and storage controls remain with the integrating website or browser. Adobe separately documents client-ID validation and anonymous product-improvement usage logging; its preconfigured analytics dashboard is opt-in and requires developer configuration. Adobe PDF Embed API security

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anteel 2 Pack Silicone Suction Cup Phone Case Mount Double Sided, Hands-Free Silicon Phone Grip with Higher Suction Power for Selfies and Videos, Non Slip Phone Accessories (LightPink&White)
  • 【PKYAA Double Sided Silicone Suction Phone Case Mount】PKYAA With Double Sided 40 Strong and Reliable individual suction cups, PKYAA provides a thicken and upgraded universal silicon suction mount for your phone.
  • 【Friendly to Content Creators】If you are a content creator or an online influencer, you can create videos anywhere with this suction mount completely hands free with this silicone cell phone mount for cases.
  • 【HANDS-FREE & Adhere to Mirrors】This Double Sided silicone suction phone case mount allows you to stick your phone to the mirror easily. No longer holding your phone in one hand to watch video tutorials while making up.
  • 【Strong Grip on the Smooth Surface】You can easily hang your phone anywhere with a smooth surface. All you do is you clean off your phone and smooth surface. It is STURDY and it not only sticks to mirrors, it also sticks to windows, it sticks to refrigerators, tiles and other clean, flat surfaces.
  • 【Press Down Firmly Every 30 Minutes】Use your palm or fingers to press the phone down firmly and check it's secure before letting go. Apply even pressure for a few seconds to allow the suction cup to adhere properly. To maintain the grip and prevent accidental falls, it's a good practice to periodically reapply pressure to the suction cup.

Do not conflate the Embed viewer with Adobe’s PDF Services workflows. Those service APIs process uploaded or externally stored documents; Adobe documents 24-hour default retention for uploaded or generated assets in the described workflows and supports signed URLs for certain external storage providers. Adobe also states that content in transit for Acrobat Services is encrypted using TLS 1.2 or greater. These statements apply to the documented Adobe services, not automatically to your host application or every web viewer. Adobe PDF Services API overview Adobe PDF Embed API security

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Test the application before release

Browser feature support varies by browser and version, and the PDF.js FAQ’s compatibility details can become outdated. Test the browsers your application actually supports rather than relying on historical compatibility tables as current guarantees. Mozilla PDF.js FAQ

  • Test PDFs with an open password and PDFs with permissions restrictions; they represent different access cases.
  • Verify that users receive an appropriate password prompt and that your application does not expose documents to unauthorized users.
  • For remote files, test CORS or proxy behavior using the production origin.
  • Check whether range requests are supported if you expect large files to load in portions.
  • Validate rendering and interaction in each target browser, and recheck the PDF.js release before adopting a specific build.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.