Requirements
WordPress 6.4 or higherPHP 8.1 or higher (strict types required)ImageMagick PHP extension (for automatic preview generation)Note: PHP 8.1 is required — the plugin uses strict typing and will not activate on older PHP versions.
Automatic Installation
1.Go to Plugins → Add New in your WordPress admin2.Search for "MaxtDesign PDF Viewer"3.Click Install Now then Activate4.Go to Settings → PDF Viewer to configureManual Installation
1.Download the plugin ZIP from WordPress.org2.Go to Plugins → Add New → Upload Plugin3.Select the ZIP file and click Install Now4.Activate the pluginVerify Server Capabilities
After activation, go to Settings → PDF Viewer → Server Info to check:
ImageMagick PHP extension — Required for automatic WebP preview generation. Most managed hosts (SiteGround, Kinsta, WP Engine) have this pre-installed.If ImageMagick is not available, the plugin will still work but won't generate preview images. PDFs will show a generic placeholder until the full viewer loads.
First PDF
1.Upload a PDF to your Media Library2.The plugin automatically extracts the first page as a WebP preview3.Create a new post or page4.Add the PDF Viewer block (search for "PDF" in the block inserter)5.Select your uploaded PDF6.Publish — visitors see the preview image instantly, click to load the full viewerShortcode Alternative
For the classic editor or page builders, use:
[pdf_viewer id="123"]
Replace 123 with the attachment ID of your PDF.