
內容簡介
MaxtDesign PDF Viewer 是一款專注於性能的 PDF 嵌入解決方案,透過智慧的延遲加載技術,確保網頁載入速度快,並提供即時的 PDF 預覽功能。
【主要功能】
• 即時預覽:伺服器生成的 WebP 預覽圖片立即顯示
• 零佈局偏移:CSS 比例預留確切空間
• 延遲加載:僅在需要時載入完整的 PDF.js 檢視器
• Gutenberg 區塊:原生區塊編輯器整合
• 短碼支援:可在經典編輯器和小工具中使用
• 鍵盤導航:完全的鍵盤和螢幕閱讀器可及性
外掛標籤
開發者團隊
原文外掛簡介
MaxtDesign PDF Viewer is a performance-focused PDF embedding solution for WordPress. Unlike other PDF plugins that load heavy JavaScript libraries upfront, this plugin uses a smart lazy-loading approach that keeps your pages fast.
Key Features
Instant Preview – Server-generated WebP preview images display immediately
Zero Layout Shift – CSS aspect-ratio reserves exact space before content loads
Lazy Loading – Full PDF.js viewer loads only when needed
Gutenberg Block – Native block editor integration
Shortcode Support – Works in classic editor and widgets
Keyboard Navigation – Full keyboard and screen reader accessibility
Mobile Optimized – Touch gestures for page navigation and zoom
Performance
Initial page load: < 10KB JavaScript First paint: < 200ms Full viewer: Loads on-demand Preview images: Optimized WebP format How It Works Upload a PDF to your media library The plugin automatically extracts the first page as a WebP preview Insert the PDF using the Gutenberg block or shortcode Visitors see an instant preview image Clicking “View Document” loads the interactive PDF.js viewer Requirements For automatic preview generation, your server needs one of: ImageMagick with PDF support (recommended) Ghostscript The plugin will detect available options and use the best method automatically. Shortcode Usage [pdf_viewer id=”123″] Attributes: id (required) – Attachment ID of the PDF width – CSS width value (default: 100%) load – When to load viewer: click, visible, immediate (default: click) toolbar – Show toolbar: true/false (default: true) Security Found a security issue? Please report it privately to [email protected] rather than posting in a public support thread. We aim to acknowledge reports within 3 business days and will agree a disclosure timeline with you. Please include the plugin version, steps to reproduce, and the impact as you understand it. We will credit you in the changelog unless you would rather stay anonymous, and we ask that you do not test against a site you do not own. This plugin is published on WordPress.org by the account slaacr, which is MaxtDesign. The account name predates the brand and WordPress.org does not support renaming accounts, so the two names differ. Anything published under slaacr is ours. Privacy This plugin: Does not collect any personal data Does not send data to external services Stores preview images locally on your server Uses PDF.js library loaded from your own server
