🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Saral PDF Preview for WooCommerce icon
Maintained Tested up to 6.9.12

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.

Active installs20+10+ tier
Downloads · 30d84▼ -1.2% vs prev. 30d
Rating—0 reviews
Health score39/100At risk
All-time downloads460Since May 2026
Support resolved—No recent threads
RequiresWP 6.5PHP 8.1+
Downloads · 7d21▲ +40% week over week
Our verdict

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 & support

Daily downloads

246Sep 7Oct 21Dec 5
Yesterday7
Daily average (1y)2
Peak day23May 28, 2026
Last 12 months460

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Saral PDF Preview for WooCo… stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
lightbox >100 1,675 Best lightbox plugins →
pdf >100 4,461 Best pdf plugins →
preview >100 10,000 Best preview plugins →
product >100 10,000 Best product plugins →
woocommerce >100 10,000 Best woocommerce plugins →

Version adoption

Share of active sites per release.

  • 1.2100.0%

About Saral PDF Preview for WooCommerce

From the official readme · v1.2.0

Description

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

  1. Upload the saral-pdf-preview-for-woocommerce folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to WooCommerce → PDF Preview to configure the button text, position, and serving mode.
  4. 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.

Full changelog on WordPress.org →

Screenshots

Admin settings page — configure button text, hook position, and file serving mode.
Admin settings page — configure button text, hook position, and file serving mode.
The "Preview Book" button on a WooCommerce product page.
The "Preview Book" button on a WooCommerce product page.
The PDF lightbox open on a product page — zoom controls, keyboard accessible, no download option.
The PDF lightbox open on a product page — zoom controls, keyboard accessible, no download…

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.

Active installs badge Rating badge Health score badge

Best Saral PDF Preview for WooComm… alternatives

All lightbox plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Shortcodes Ultimate – Content Elements Shortcodes Ultimate – Content Elements Add 50+ shortcodes with live preview for tabs, accordions, buttons, FAQs, sliders and… by Vova 400K+ ★★★★★★★★★★ 4.9 (5.9K) 2 weeks ago 82
2 Firelight Lightbox Firelight Lightbox Formerly Easy Fancybox. The most popular WordPress lightbox plugin. Simple, fast, and… by Firelight 200K+ ★★★★★★★★★★ 4.8 (367) 4 weeks ago 95
3 Responsive Lightbox & Gallery Responsive Lightbox & Gallery The most popular lightbox plugin and responsive gallery builder for WordPress. by dFactory 100K+ ★★★★★★★★★★ 4.9 (2K) 1 week ago 81
4 Simple Lightbox Simple Lightbox The highly customizable lightbox for WordPress by Archetyped 100K+ ★★★★★★★★★★ 4.3 (240) 3 months ago 74
5 Envira Gallery – Image Photo Gallery, Albums, Video Gallery, Slideshows & More Envira Gallery The fastest drag & drop photo gallery plugin. Create stunning image galleries, albums… by Syed Balkhi 100K+ ★★★★★★★★★★ 4.7 (1.6K) 5 days ago 91
6 Lightbox & Modal Popup WordPress Plugin – FooBox Lightbox & Modal Popup WordPress Plugin – FooBox A responsive image lightbox for WordPress galleries, WordPress attachments & FooGallery by FooPlugins 100K+ ★★★★★★★★★★ 4 (96) 4 weeks ago 76
7 SimpLy Gallery SimpLy Gallery Create photo and video galleries with albums, sliders and a lightbox. Includes free Media… by GalleryCreator 40K+ ★★★★★★★★★★ 4.8 (118) 2 weeks ago 94
8 LightPress Lightbox LightPress Lightbox Simple, lightweight lightbox plugin for WordPress. Formerly the WP JQuery Lightbox. by Firelight 30K+ ★★★★★★★★★★ 4.6 (72) 9 months ago 50
9 FancyBox for WordPress FancyBox for WordPress Seamlessly integrates FancyBox lightbox into your WordPress blog: Upload, activate, and… by colorlibplugins 30K+ ★★★★★★★★★★ 4.6 (92) 5 days ago 78
10 Lightbox with PhotoSwipe Lightbox with PhotoSwipe Integration of PhotoSwipe (http://photoswipe.com) for WordPress. by Arno Welzel 20K+ ★★★★★★★★★★ 4.9 (116) 1 week ago 92

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

↑↓ to move↵ to open