How to convert a PDF to an image
You can install the library manually or use the Maven repository:
To convert the PDF, here it is the code:
PDDocument doc = PDDocument.load("myFile.pdf");
PDPage firstPage = (PDPage) doc.getDocumentCatalog().getAllPages().get(0);
BufferedImage bufferedImage = firstPage.convertToImage();
You can even load the PDF document by a Stream or a Url. You have the first page preview of your PDF file in the BufferdImage variable. Then you can save it into the preferred extension.
On IIS with WinCache 1.1 Extension for PHP, there is an known bug on plugins auto update.Since the Wordpress 4.3 the plugins auto update didn't work if using Win Cache for PHP.The developers have released a dev-version that fixes this problem, you can download it from...