Did you know that WordPress generates a thumbnail image file when uploading a PDF-file? This works when the PHP Extension imagick and Ghostscript is available! It won’t work with GD library! You know they are present and it’s working, when you upload a PDF-file in the media library and you immediately see a thumbnail of the file. Now that thumbnails are available my plugin hooks into the Gutenberg file-block to automagically inserting that thumbnail right before the file block. Besides that it also provides some more options:
show inline embed default value and a height in pixels default valueshow inline embed option of the file block gets disabled by defaultopen in new tab)This plugin requires imagick and Ghostscript! A good WordPress web hosting has it installed by default.