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

Publish one self-hosted PDF flipbook with text search, zoom, mobile swipes and page turns. Replace your PDF while keeping the same embed.

== Description ==

Use one catalogue on as many pages as you need. 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 and administration are available in English and Polish.

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.

== 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 migrating from Delta Flipbook, deactivate the older plugin, then activate STS Flipbook. Free selects the oldest published catalogue on first use, or a saved draft if none has been published. Its existing shortcode with a numeric ID continues to work. Other saved records are preserved. Switching plugin editions does not delete media or catalogues.

== 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.

= How can I manage separate catalogues? =
STS Flipbook Pro is a separate add-on from the publisher. With an active licence you can manage independent publications and copy an ID-specific shortcode for each one. The free reader works on its own.

= 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.1.0 =
Ad-free single-catalogue editor, reusable shortcode, bilingual administration, publisher contact details and compatibility with saved Delta Flipbook catalogues.
