LockPDF - WordPress DRM Safe PDF HTML ViewerLockPDF - WordPress DRM Safe PDF HTML Viewer
LockPDF – Secure WordPress PDF manager with DRM, conversion, and customizable HTML viewerLockPDF - WordPress DRM Safe PDF HTML Viewer
LockPDF – Secure WordPress PDF manager with DRM, conversion, and customizable HTML viewer
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.
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.
Installation Options:
- Docker: Recommended for portability and easier setup.
- Native Packages: Can be installed directly on Linux distributions (Ubuntu/Debian/CentOS).
Setup 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
- Activate LockPDF Plugin
- Upload the plugin to WordPress.
- Activate it from the Plugins menu.
- Configure Conversion Settings
- Choose Docker or Native mode in the plugin settings.
- Set default storage option: Database or File system.
- Upload & Convert PDFs
- Use the drag-and-drop uploader for single or multiple PDFs.
- Converted HTML files will be stored securely and linked to a shortcode.
- Customize Viewer Options
- Enable/disable Download and Print.
- Set Public or Private (password-protected) access.
- Apply Watermarks with adjustable opacity, font size, and position.
- Enable Domain Locking or DRM Protection for stricter control.
- Embed in WordPress
- Copy the generated shortcode for each PDF.
- Paste it into any post, page, or custom post type to display the secure viewer.
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 |








