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.
