| 开发者 | itsmanzur |
|---|---|
| 更新时间 | 2026年11月19日 23:37 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[flipset file="https://example.com/document.pdf"], the "Flipset Viewer" block, a page-builder widget, or a PDF link pasted on its own line.view="page|scroll|spread|flip").[flipset_library] – a grid or list of your Media Library PDFs with search, sort and pagination.http and https PDF addresses are accepted, PDF-embedded font code is not run, and there is a private way to report vulnerabilities.DigitalDocument; plain PDF link when JavaScript is off.[flipset file="https://example.com/document.pdf"][flipset file="https://example.com/document.pdf" view="flip"][flipset_library]http and https PDF addresses are accepted, and PDFs cannot run code from their embedded fonts.[flipset file="https://example.com/document.pdf"] and a "Flipset Viewer" Gutenberg block with a Media Library picker and first-page preview..pdf link on its own line to embed it. PDF attachment pages can show the viewer too (a setting).#page=4 deep links and last-page resume on the visitor's device.view="flip").[flipset_library] shortcode and "Flipset Library" block: a grid or list of your Media Library PDFs with first-page thumbnails, search, an optional sort menu and pagination; a document opens in place.[flipset id="1"] or with the block.http, https or a site-relative path; javascript:, data:, file: and other schemes are refused everywhere, including in filters and saved embeds.isEvalSupported: false, so a PDF cannot run code generated from its fonts.flipset:ready and flipset:pagechange, documented in docs/HOOKS.md.wp flipset status, wp flipset reindex, wp flipset clear_cache.[flipset] – PDF viewer. Only file (or id) is required.
file – URL of the PDF. id – ID of an embed saved in Flipset → Shortcode Builder.view – page (default), scroll, spread or flip (3D flipbook).page – start page (default 1). title – caption for the viewer, also used as its accessible name.width, height – a number with a CSS unit, for example 100% or 700px (defaults come from Flipset → Settings).theme – light, dark or sepia.download, print, search, share, fullscreen, presentation, shortcuts, theme_btn – true or false; leave out to use the site setting.hide – comma-separated controls to hide, for example hide="share,fullscreen".loading – lazy or eager. hash – true or false for #page= deep links. resume – true or false to remember the last page read.[flipset file="https://example.com/catalogue.pdf" view="flip" theme="dark" height="700px" download="false"]
[flipset_library] – PDF document library. No attributes are required.
columns – number of grid columns (default 3). per_page – documents per page (default 12).orderby – date (default), title or modified. order – DESC (default) or ASC.search – true (default) or false for the search field.sort_control – true shows a Newest / Oldest / Title A–Z / Title Z–A menu (default false).layout – grid (default) or list. layout_toggle – true shows a grid / list switch (default false).[flipset_library columns="4" per_page="8" sort_control="true" layout_toggle="true"]
Full reference with every value: https://flipset.thereadscope.com/flipset-docs/shortcode/
Extending Flipset
Flipset exposes public WordPress filters and actions (see Developer Hooks below) so add-ons and themes can extend the viewer without modifying core code. No paid features are sold or locked in this plugin.
External services
Flipset does not contact any server on its own. It has no analytics, no licence check, no update ping and no remote scripts, fonts or images. The visitor's browser opens an outside address only when the visitor clicks one of these links:
twitter.com/intent/tweet – Terms, Privacyfacebook.com/sharer/sharer.php – Terms, Privacylinkedin.com/sharing/share-offsite – Terms, Privacyapi.whatsapp.com/send – Terms, Privacymailto: link and opens the visitor's own email program; no server is involved.assets/vendor/pdfjs/ as pdf.min.js and pdf.worker.min.js, the official minified build from the pdfjs-dist 3.11.174 release. Upstream project: https://github.com/mozilla/pdf.js – the human-readable source for this version is at https://github.com/mozilla/pdf.js/tree/v3.11.174. Licence text: https://www.apache.org/licenses/LICENSE-2.0assets/fonts/inter/ (a Latin-subset, weight-axis-only variable woff2 made from the official font with subset-font, plus OFL.txt) and used only on the Flipset screens in wp-admin. Upstream project: https://github.com/rsms/inter – licence text: https://openfontlicense.orgflipset folder to /wp-content/plugins/, or install the plugin from the Plugins screen.Add [flipset file="https://example.com/document.pdf"] to a post or page, insert the "Flipset Viewer" block and pick a PDF from the Media Library, or paste a direct .pdf link on its own line. Step-by-step guide: https://flipset.thereadscope.com/flipset-docs/quick-start/
Yes. The viewer, the 3D flipbook, the document library, PDF text search and the page-builder widgets are all in this plugin. No paid features are sold or locked here.
https://flipset.thereadscope.com/flipset-docs/ – with guides for the shortcode, the Gutenberg block, the document library, view modes, deep links, accessibility, page builders, WP-CLI, hooks and troubleshooting.
No. Rendering happens in the visitor's browser with the PDF.js library bundled in this plugin. See "External services" above for the few links that open outside sites only when clicked.
Use [flipset file="https://example.com/document.pdf" view="flip"], choose "3D FlipBook" in the View setting of the Flipset Viewer block, or switch the view from the More tools menu in the toolbar. On narrow screens (under 640 px) it shows a single page.
Yes, in the free plugin. Add view="flip" to the shortcode, or choose "3D FlipBook" in the block's View setting. You get a page curl, a page-turn sound made in the browser and touch swipe. Narrow screens (under 640 px) show a single page.
Yes. Each has a Flipset Viewer widget and a Flipset Library widget that use the same renderer as the shortcode and block. See https://flipset.thereadscope.com/flipset-docs/page-builders/
They render the same viewer. Use the block in the editor if you want a file picker and first-page preview. Use [flipset file="..."] in the classic editor, widgets or PHP templates. Elementor, Divi and Beaver Builder have Flipset Viewer and Flipset Library widgets that use the same renderer.
Yes. Build it in Flipset → Shortcode Builder, save it, and use [flipset id="1"] or the block's saved-embed ID. Edit the saved embed later and every page that uses it updates.
Yes. Translate the PDF in the Media Library (WPML Media Translation or Polylang's media option). Flipset swaps the file URL to the current language's attachment. You can also put a different PDF on each language's page. wpml-config.xml ships with the plugin so the block's file and title attributes are translatable.
Flipset excludes its PDF.js scripts from minify, combine and delay in WP Rocket, W3 Total Cache, Autoptimize, LiteSpeed Cache and SiteGround Optimizer, and marks those tags data-no-optimize. If another optimizer still concatenates them, add flipset-viewer.js, pdf.min.js and pdf.worker.min.js to that plugin's exclude list.
The file URL must allow the page origin to fetch it. Cross-origin PDFs need CORS headers (Access-Control-Allow-Origin) on the file host. Files in your own Media Library work without extra setup.
Flipset draws the visible page (or a two-page spread). Continuous scroll renders nearby pages only. Very large files still need to be downloaded once, so keep uploads reasonably sized when you can.
Add [flipset_library] to a page, or insert the Flipset Library block. Visitors see a grid of Media Library PDFs and can open any document in the Flipset viewer without leaving the page. Optional attributes: columns, per_page, orderby (date, title or modified), order (ASC or DESC), search (true or false), sort_control (true shows a Newest / Oldest / Title A–Z / Title Z–A menu; default false), layout (grid or list; default grid) and layout_toggle (true shows a grid / list switch; default false).
The first time you open Flipset → Docs & Features, the plugin draws each PDF's first page in your browser (bundled PDF.js) and saves a PNG in the Media Library, parented to that PDF. After that the library reuses the stored image. Thumbnails are not regenerated on every page load.
The PDF has no accessibility tags (its MarkInfo dictionary is not marked). Screen readers may miss headings and reading order. Export a tagged PDF from Word, InDesign or Acrobat. Flipset does not rewrite the file. You can turn the check off under Flipset → Settings → Search and sharing.
Flipset is translation-ready (text domain flipset). Translations are delivered through translate.wordpress.org and installed automatically by WordPress for your site language. Contributions are welcome at https://translate.wordpress.org/projects/wp-plugins/flipset/ .
Yes. Opening Flipset → Docs & Features extracts text from each PDF (the same visit that generates thumbnails) and stores it so posts and pages that embed those files match in the site search. The library search uses that text too. Password-protected PDFs are skipped, and scanned image-only PDFs have no text to find. Turn it off under Flipset → Settings → Search and sharing.
If the page embeds a Flipset PDF and a first-page thumbnail exists, Flipset adds Open Graph and Twitter image tags using that cover. If Yoast SEO, Rank Math or a similar SEO plugin already sets an image, Flipset does not override it. You can disable this under Flipset → Settings.
Yes. Open Flipset → Docs & Features, choose Change cover under a document and pick any image from the Media Library. That image is then used in the library grid, as the Open Graph and Twitter image, and in the structured data. Reset cover goes back to the generated first page. Your image is never deleted by Flipset.
Flipset → Settings has checkboxes for the site default. A single embed can override with [flipset file="..." download="false" print="false"], or use the matching toggles on the block. The hide attribute hides other controls, for example hide="share,fullscreen".
Yes. Use [flipset file="..." page="4"], set Start page on the block, or link to the page with #page=4.
EPUB files are not supported in this version. Flipset focuses on fast, accessible PDF rendering, 3D flipbooks and document libraries.
No, not unless you ask for it. The credit link is off by default. If you would like to support the plugin, tick Flipset → Settings → Credit link and a small "Powered by Flipset" link appears under each viewer.
No. There is no tracking pixel, no remote API and no phone-home. See the Privacy section for what is stored.
Flipset accepts only http and https addresses and site-relative paths such as /wp-content/uploads/file.pdf. Addresses that start with javascript:, data:, file: or another scheme are ignored for safety. Use the full link to the PDF, or pick the file from the Media Library.
Use the support forum at https://wordpress.org/support/plugin/flipset/ or open an issue on GitHub: https://github.com/itsmanzur/flipset/issues
Please do not post it in the public forum. Use GitHub's private reporting: https://github.com/itsmanzur/flipset/security/policy
isEvalSupported: false) in the viewer, the thumbnail generator and the block editor preview.http, https or a site-relative path. javascript:, data:, file: and other schemes are refused in shortcodes, blocks, saved embeds and filters.order, sort_control, layout and layout_toggle settings, the custom cover and sort and list features, and which PDF addresses are accepted.SECURITY.md on GitHub) with a private way to report vulnerabilities.Flipset_Viewer::sanitize_file_url(); tests for the address rules and for isEvalSupported; a PHPStan job (report only) in CI; docs/PDFJS.md tracks the bundled PDF.js version and advisories.sort_control="true"): Newest, Oldest, Title A–Z and Title Z–A. It re-sorts in place, keeps your search, goes back to page 1 and tells screen readers what changed.layout="list") and an optional grid / list switch for visitors (layout_toggle="true"). The visitor's choice is remembered in their own browser; nothing is stored on your site.search="maybe") fell back to "off" in 1.1.1; it now falls back to that attribute's default again.columns setting and drops to 2 columns on tablets and 1 on phones; clearer keyboard focus, hover that respects "reduce motion", RTL support, theme-friendly colours with AA contrast, a loading bar and a "No documents found" state.Flipset_Thumbnails::get_cover_id() and get_generated_id(); get_thumbnail_id() now returns the custom cover when one is set.