How to Embed PDFs in WordPress Without Download or Print Controls
Question details
The user wants visitors to read PDF documents on a WordPress website while hiding download and print options.

- 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.
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.
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.
Visit the Adobe Developer Console, create a new project for the PDF Embed API, and copy your unique Client ID credentials.
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.
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.
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.

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. Download and Install: Get WPS Office for free from the official website and install it on your device.
- 2. Open Your Document: Launch the WPS PDF tool and open the document you plan to upload to your WordPress site.
- 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.

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.




