| 开发者 | nicmare |
|---|---|
| 更新时间 | 2026年3月4日 22:49 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/pdf-preview-inside-file-block directory, or install the plugin through the WordPress plugins screen directly.You need imagick extension and Ghostscript in order to get auto generated thumbnails preview images of uploaded PDF-files. If so, the plugins settings will work for you.
It just extends the existing file-block. It uses the build in image block for the preview image only.
Imagine uploading restaurant menu pdfs, pricelists, marketing flyers and so on… you do not need to create screenshots by hand and you do not need to upload them. All that is done by Wordpress and the plugin.
No, it just modifies the output of the existing file block and uses all known & existing functions of Wordpress. It does not load any css, js or img files. Therefore it is super lightweight and has almost no footprint.
Talk to your web hosting provider if they can install imagick. After that you need to regenerate thumbnails. There are other plugins doing that! And even if not you can still use the plugin default settings for pdf inline embed state and height. You can use the blocks style variation as well.
By default this can not happen. It's only happening if you enable the Lightbox Support in Plugin Settings. This thumbnail is generated by the plugin in order to seamlessly build the preview including the lightbox effect. If you delete the PDF-file, the plugin will also delete the thumbnail.
The Wordpress-User "nicmare" vibe coded it. Means he had the idea of the plugin and uses AI to craft the code.