PDF Security & Access Issues

How to Embed PDFs in WordPress Without Download or Print Controls

Algirdas JasaitisAlgirdas Jasaitis Oct 23, 2026 871 views

Question details

The user wants visitors to read PDF documents on a WordPress website while hiding download and print options.

How to Embed PDFs in WordPress Without Download or Print Controls
Product
WordPress, Adobe PDF Embed API
Device & OS
not provided
Scenario
Embedding a PDF viewer on a WordPress site and restricting user access to download or print functionalities.
Observed behavior
Default browser PDF embeds allow users to easily download or print the file; the goal is to load them in a secure viewer lightbox where these controls are explicitly hidden.
Before you start

Ensure you have registered an Adobe Client ID for the PDF Embed API and have access to inject custom JavaScript into your WordPress site's header or footer.

Solution 1Recommended

Use Adobe PDF Embed API with a jQuery Script

Configure the Adobe View SDK to open PDF links in a Lightbox viewer while passing parameters to hide download and print controls.

By integrating the Adobe PDF Embed API with a custom jQuery script, you can intercept all direct PDF links on your WordPress pages and force them to open in a secure Lightbox viewer.

This method allows you to explicitly disable the default download and print buttons, offering better control over your document's distribution. Keep in mind that while this deters casual users, viewer controls cannot guarantee that determined users will be completely unable to save content.

1
Obtain an Adobe Client ID

Visit the Adobe Developer Console, create a new project for the PDF Embed API, and copy your unique Client ID credentials.

2
Install a Script Insertion Plugin

In your WordPress dashboard, install and activate a plugin like 'Scripts n Styles' or 'WPCode' to easily add custom JavaScript to your web pages safely.

3
Load the Required Scripts

Insert the Adobe Document Cloud View SDK script tag (`https://documentcloud.adobe.com/view-sdk/main.js`) and a custom jQuery embed plugin script into your page header or footer.

4
Configure the Viewer Parameters

Add your initialization code. Define the `viewParameters` object with `showDownloadPDF: false` and `showPrintPDF: false`. Make sure to replace `YOUR_CLIENT_ID` with the actual credential you obtained earlier.

Use Adobe PDF Embed API with a jQuery Script
Security Disclaimer: Removing download and print buttons from the UI prevents standard downloading, but advanced users may still extract the file using browser developer tools or take manual screenshots.
Free Microsoft Office alternative

Prepare and Secure Your PDFs with WPS Office

Before uploading PDFs to WordPress, use WPS Office to edit content, add watermarks, and apply standard document security features. WPS Office is a highly compatible, lightweight, and free alternative to Microsoft Office.

  1. 1. Download and Install: Get WPS Office for free from the official website and install it on your device.
  2. 2. Open Your Document: Launch the WPS PDF tool and open the document you plan to upload to your WordPress site.
  3. 3. Apply Watermarks and Save: Navigate to the 'Protect' or 'Insert' tab to add a custom watermark, then save the finalized PDF to maintain ownership context.
Easily add watermarks to your PDFs to deter unauthorized use or screenshots.Fully compatible with Microsoft Office document formats and standard PDFs.Lightweight software with a familiar, easy-to-use interface.Seamlessly convert Word, Excel, and PowerPoint files to PDF before uploading.
microsoft office alternative - wps office

Frequently Asked Questions

Can I completely block users from downloading an embedded PDF?

No frontend viewer can provide 100% protection against file extraction. While you can remove the download buttons to stop average users, tech-savvy individuals might still extract the source file using browser developer network tools.

Do I need coding skills to use the Adobe PDF Embed API on WordPress?

You only need basic knowledge of how to copy and paste HTML and JavaScript into your WordPress header or footer. This process is often made easier by using free script-insertion plugins.

Will this jQuery method work for all PDF links on my page?

Yes, if the jQuery script is configured to target all standard anchor tags linking to '.pdf' files, it will automatically intercept them and launch the Adobe Lightbox viewer without requiring changes to individual links.