LockPDF - WordPress DRM Safe PDF HTML ViewerLockPDF - WordPress DRM Safe PDF HTML Viewer
LockPDF – protects your PDFs and showcases them elegantly on your WordPress siteLockPDF - WordPress DRM Safe PDF HTML Viewer
LockPDF – protects your PDFs and showcases them elegantly on your WordPress site
Overview
LockPDF transforms the way you handle PDFs on your WordPress site. Upload single or multiple PDFs, convert them to HTML, and display them with a sleek custom viewer. Protect your documents with watermarks, passwords, DRM controls, and domain restrictions, while preventing unauthorized downloads or direct link access.
Organize files with nested categories, customize layouts, and generate shortcodes to embed PDFs anywhere posts, pages, or custom post types. Flexible settings let you enable or disable downloads, printing, and visibility options (public or private). Admins can rename, delete, or manage details effortlessly, while users enjoy a secure, professional viewing experience.
Whether you’re publishing reports, eBooks, or client documents, LockPDF gives you complete control over presentation, security, and accessibility, all in one powerful plugin.
Sell ebooks without piracy
- disable download
- add watermark
- restrict domain
Client document portal
- private access
- secure sharing
- no direct link access
Premium content / courses
- protect PDFs inside membership sites
- control visibility
Features
1. PDF Upload & Conversion – Upload PDFs and convert them into HTML for display in a custom viewer.
2. pdf2htmlEx Integration – Use either native packages or Docker-based pdf2htmlEx for conversion.
3. Flexible Storage – Save converted HTML files either in the database or as standalone files.
4. Custom Watermarking – Add watermarks with adjustable opacity, font size, and position (top, center, bottom).
5. Organized Library – Manage PDFs in nested categories for both front-end and back-end views.
6. Shortcode Support – Each uploaded PDF generates a shortcode for embedding in posts, pages, or custom post types.
7. Access Controls – Enable/disable download and print options for public users.
8. Privacy Options – Set documents as public or private, with password-protected sharing.
9. Domain Locking – Restrict HTML viewers to specific domains for tighter control.
10. DRM Protection – Prevent printing, downloading, or screen recording when DRM is enabled.
11. Customizable Viewer – Tailor the layout and design of the PDF/HTML viewer from the admin panel.
12. Secure Access – Protect uploaded files; direct links are inaccessible outside the viewer.
13. Batch Uploads – Drag-and-drop single or multiple PDFs for conversion in one go.
Requirements
Server Dependency: LockPDF requires pdf2htmlEx installed on your server.
Instructions
- Install pdf2htmlEx
- Docker method:
- Open Terminal or WSL (Ubuntu)
Run the following commands:
~$ docker pull pdf2htmlex/pdf2htmlex:0.18.8.rc2-master-20200820-alpine-3.12.0-x86_64
~$ sudo chown -R www-data:www-data /var/www/html/wp-content/uploads/lockpdf/
~$ sudo chmod -R 775 /var/www/html/wp-content/uploads/lockpdf/
~$ sudo usermod -aG docker www-data
- Native method:
1. Install Dependencies
sudo apt-get update
sudo apt-get install -y build-essential cmake git pkg-config
libfontforge-dev fontforge libpoppler-dev libpoppler-private-dev
libcairo2-dev libpango1.0-dev libglib2.0-dev
2. Clone the Repository
git clone https://github.com/pdf2htmlEX/...
cd pdf2htmlEX
3. Build the Project
cmake .
make
sudo make install
4. Verify Installation
pdf2htmlEX --version
Other items by this author
| Category | Plugins / WordPress / Miscellaneous |
| First release | 27 March 2026 |
| Last update | 27 March 2026 |
| Supported CMS | WordPress 5.0, WordPress 5.8, WordPress 5.9, WordPress 6.0, WordPress 6.1, WordPress 6.2, WordPress 6.3, WordPress 6.4, WordPress 6.5, WordPress 6.6, WordPress 6.7, WordPress 6.8 |
| Files included | .php, .css, .html, .sql, Javascript .js |
| Tags | conversion, document, lockpdf, pdftohtml, htmlconversion, pdfconversion |








