By uploading PDF attachment, this plugin convert the cover page to jpeg and attach it as post thumbnail file.
This plugin hooks to the editor and generates the first page image of PDF by using ImageMagick with GhostScript.
Allow to set PDF as Featured Image and to use functions in the same way as image file..
Files build tree like below. my-file pdf my-file-pdf jpg my-file-pdf-1024×768.jpg my-file-pdf-300×225.jpg my-file-pdf-150×150.jpg . ...
Or more simply, you can call images and link to PDF files by wp get attachment image and wp get attachment link functions *If the plugin is deactivated, this function just will return empty. $pdf id = 'your PDF file ID echo wp get attachment image echo wp get attachment link.
The plugin support you to set PDF as Featured Image..
Strictly explaining, when you set PDF as Featured Image, the plugin set the thumbnail.
Browse the code, check out SVN repository, or subscribe to the development log by RSS...
12.Feb.2016. Add filter to hide image file of PDF on List mode of Media Library.
Allow user to set PDF as Featured Image and to use wp get attachment image function to PDF file. 1.1.6.
Read more