Saral PDF Preview for WooCommerce
Add a PDF preview button to WooCommerce product pages. Customers can view a PDF sample in a lightbox without downloading.
Consider an alternative
Saral PDF Preview for WooCommer… shows warning signs in 2026 — compare the alternatives below before installing. It runs on 20+ sites and was last updated 6 months ago, and scores 39/100 on our health check.
- Small user base (20+ active installs)
- Very few reviews so far
- Only tested up to WordPress 6.9 (latest is 7.1)
- Needs PHP 8.1 or newer
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Saral PDF Preview for WooCo… stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| lightbox | >100 |
| >100 | |
| preview | >100 |
| product | >100 |
| woocommerce | >100 |
Version adoption
Share of active sites per release.
About Saral PDF Preview for WooCommerce
From the official readme · v1.2.0Description
Saral PDF Preview lets you attach a PDF file to any WooCommerce product. A configurable button appears on the product page and opens the PDF in a clean, distraction-free lightbox — no download, no print, just a smooth in-browser reading experience powered by PDF.js.
Features
- Upload a PDF per product via a dedicated meta box in the product editor.
- Configurable button text (default: “Preview Book”).
- Choose from 7 hook locations on the product page — a live visual diagram shows exactly where the button will appear.
- Protected mode (default): the real PDF URL is never exposed to visitors; the file is streamed through a signed REST endpoint.
- Public mode: uses the standard WordPress attachment URL.
- Zoom in / zoom out controls inside the lightbox.
- Keyboard accessible — press Escape to close.
- Responsive layout on mobile.
- No tracking, no external requests, no upsells.
Installation
- Upload the
saral-pdf-preview-for-woocommercefolder to/wp-content/plugins/. - Activate the plugin through the Plugins menu in WordPress.
- Go to WooCommerce → PDF Preview to configure the button text, position, and serving mode.
- Edit any product, find the PDF Preview meta box, and upload a PDF.
Changelog
Security and compatibility improvement — upgrade recommended. PDF.js updated to 5.7.284; output escaping hardened throughout.
1.2.0
- Upgraded PDF.js from 3.11.174 to 5.7.284.
- PDF.js now loads lazily on first lightbox open via dynamic import — reduces initial page weight.
- Hardened output escaping: button HTML is now passed through wp_kses() with an explicit allowlist; admin meta box attribute conditionals rewritten to eliminate unescaped echo calls.
1.1.0
- Added data-pdf-preview-trigger attribute as the lightbox trigger — any custom element can now open the lightbox without relying on the plugin’s CSS class.
- Added saral_pdf_preview_for_woocommerce_trigger_attr() helper function for use in theme templates and custom markup.
- Added saral_pdf_preview_for_woocommerce_trigger_attr filter to override the trigger attribute string.
- Settings page now documents the custom trigger element feature with usage examples.
1.0.6
- Added shortcode [saral_pdf_preview_for_woocommerce] — place the preview button in any custom location on a product page without touching theme files. Accepts an optional id attribute to target a specific product from any page.
- Added PHP template tag support: echo do_shortcode( ‘[saral_pdf_preview_for_woocommerce]’ ) for use directly in theme templates.
- Settings page now includes a Manual Embedding section with copy-ready shortcode and PHP snippets.
1.0.5
- Added “Data on Uninstall” setting — choose whether to keep or remove PDF assignments from products when the plugin is deleted. Defaults to keeping the data so assignments are restored on reinstall.
1.0.4
- Security: protected endpoint now verifies the product exists and is published before streaming the PDF.
- Security: Content-Disposition filename is now sanitised before being sent in the response header.
- Fixed: REST endpoint returns a proper error response instead of calling wp_die().
- Fixed: loading spinner now hides correctly if a network error occurs during PDF load.
- Fixed: uploading a non-PDF attachment no longer leaves stale metadata on the product.
- Fixed: preview button is now guarded against malformed button hook settings.
- Fixed: PDF attachment MIME type is verified in public serving mode before use.
- Improved: admin media frame strings (Select PDF, Use this PDF) are now translatable.
- Improved: modal dialog now uses aria-labelledby for better screen reader support.
1.0.3
- Added loading spinner shown while PDF is downloading and rendering.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Saral PDF Preview for WooComm… alternatives
All lightbox plugins →FAQ
Saral PDF Preview for WooCommerce: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Saral PDF Preview for WooCommer… free?
Yes. Saral PDF Preview for WooCommer… is free to download and use from the official WordPress.org plugin directory.
Is Saral PDF Preview for WooCommer… safe to use in 2026?
Saral PDF Preview for WooCommer… shows warning signs in 2026 — compare the alternatives below before installing. It runs on 20+ sites and was last updated 6 months ago, and scores 39/100 on our health check.
How many websites use Saral PDF Preview for WooCommer…?
Saral PDF Preview for WooCommer… is active on 20+ WordPress websites and has been downloaded 460 times since it launched in May 2026. It was downloaded 84 times in the last 30 days.
Does Saral PDF Preview for WooCommer… work with WordPress 7.1?
Saral PDF Preview for WooCommer… is officially tested up to WordPress 6.9.12, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does Saral PDF Preview for WooCommer… need?
Saral PDF Preview for WooCommer… requires PHP 8.1 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Saral PDF Preview for WooCommer… last updated?
The latest version, 1.2.0, was released on May 28, 2026 (6 months ago).
Who makes Saral PDF Preview for WooCommer…?
Saral PDF Preview for WooCommer… is developed and maintained by Akaal Creatives.
What are the best alternatives to Saral PDF Preview for WooCommer…?
The most popular alternatives to Saral PDF Preview for WooCommer… are Shortcodes Ultimate (400K+ installs), Firelight Lightbox (200K+ installs) and Responsive Lightbox & Galle… (100K+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card



