=== STS Flipbook ===
Contributors: piotrprach
Tags: pdf, flipbook, catalogue, pdf viewer
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Publish a PDF that readers can search, zoom and browse on mobile. Use the same shortcode wherever your latest edition should appear.

== Description ==

Choose a default PDF for your site and embed it on any page. Visitors can turn pages with a mouse, touch or keyboard, jump to a page, search the PDF text layer, browse thumbnails, zoom and enter full screen. Choose single pages or desktop spreads. Page-turn sound and PDF download controls are optional. The reader includes English and Polish controls. The administration follows the WordPress language setting when a translation is installed.

Choose a PDF from the WordPress Media Library or use its direct HTTP(S) URL. All reader libraries are included. The free edition runs locally without an account, activation, ads, tracking or a time limit.

[STS Flipbook plugin website](https://simpletradesolutions.com/sts-flipbook/)

== Installation ==

1. Install and activate STS Flipbook in Plugins.
2. Open STS Flipbook > My flipbook. Enter a title, choose a PDF and click Save and publish.
3. Insert a Shortcode block containing `[sts_flipbook]` into a page. Publish the page.
4. To replace the document, change the PDF in My flipbook and save again.

When upgrading from STS Flipbook 1.1.x, the existing default PDF carries over. If moving from Delta Flipbook, deactivate it first. If there is no previous default, the reader uses the oldest published catalogue, or pre-fills the editor from a draft if necessary. A draft remains unpublished until you publish it. Shortcodes with a numeric ID continue to display their respective published catalogues, including the older `[delta_flipbook id="123"]` format. You can edit the default PDF in My flipbook.

== Screenshots ==

1. A two-page spread from the Forma Studio lighting catalogue in the desktop reader.
2. Search results for “Sage” beside the open catalogue. Select a result to jump to its page.
3. The same catalogue on a phone, with a single page and touch navigation.
4. The WordPress editor with a PDF selected from the Media Library, reader settings and the shortcode to copy.

== Frequently Asked Questions ==

= Can I show the same book on several pages? =
Yes. Use the same shortcode wherever you want the reader. One saved title, PDF and set of options control these embeds.

= What should I check if a PDF will not open? =
Open the direct file URL in a new browser tab. Same-origin hosting is simplest. External hosts must allow cross-origin requests. For large PDFs, use a host that supports HTTP byte ranges. If the file exceeds your upload limit, upload it using your hosting tools and enter its URL in the editor. If a cache plugin rewrites JavaScript, exclude the reader and its bundled PDF.js worker.

= Does search work on scanned pages? =
Search reads the PDF text layer. Apply OCR to an image-only PDF before publishing it.

= Is the PDF private when I hide its download button? =
A public PDF URL remains accessible. The setting controls the reader button.

== Privacy ==

PDF rendering and search run in the reader's browser. Its sound choice is saved in localStorage under delta-flipbook-sound. The browser requests the PDF from the source selected by the administrator. An external PDF provider receives the normal web request for that file.

== Publisher and support ==

Simple Trade Solutions, Piotr Prach
ul. Malinowa 1, 59-500 Złotoryja, Poland
Business tax ID (NIP) 6151737730
Email: info@simpletradesolutions.com
Telephone: +48 667 083 628
[Publisher website](https://simpletradesolutions.com/)

The Help and contact screen contains setup instructions, troubleshooting and publisher details. When reporting a problem, include the plugin version, browser and affected page. Use a public PDF you can share.

== Source code and bundled libraries ==

The plugin's own reader and editor source is included in readable form. STS Flipbook uses the following locally bundled distributions.

* Mozilla PDF.js 6.4.299, legacy browser distribution, Apache-2.0. Source and build instructions: https://github.com/mozilla/pdf.js/tree/v6.4.299 . The distributed legacy/build/pdf.min.mjs and pdf.worker.min.mjs are installed as .js files. The project distributes character maps, fonts, colour profiles and WebAssembly decoders with their own notices.
* StPageFlip 2.0.7, MIT. Source and build instructions: https://github.com/Nodlik/StPageFlip . The npm page-flip@2.0.7 package supplies dist/js/page-flip.browser.js.
* Included licences are in LICENSE.txt and assets/vendor/. No build or CDN access is required on the WordPress server.

== Changelog ==

= 1.2.0 =
The default PDF now uses a WordPress site option. Legacy shortcodes display all existing published catalogues by ID. Administration translations can be installed through WordPress language packs.

= 1.1.2 =
Updated catalogue saving, legacy catalogue lookup, translations and editor notices.

= 1.1.1 =
Updated the plugin website link in the plugin details, editor and help screen.

= 1.1.0 =
Ad-free single-catalogue editor, reusable shortcode, bilingual administration, publisher contact details and compatibility with saved Delta Flipbook catalogues.
