Current Release provide you methods to convert PDF to Images as well as Images to PDF, future releases will included more functions to interact with PDF files
MIT License
58
stars
37
forks
source link
Show nothing in response no error and script is not working #17
Here is my code : `<?php include "PDFLib.php"; $pdf_file_path = "C:/wamp64/www/PDFLib-master/tests/resources/sample.pdf"; $folder_path_for_images = "C:/wamp64/www/PDFLib-master/tests"; $pdflib = new ImalH\PDFLib\PDFLib(); $pdflib->setPdfPath($pdf_file_path); $pdflib->setOutputPath($folder_path_for_images); $pdflib->setImageFormat(\ImalH\PDFLib\PDFLib::$IMAGE_FORMAT_PNG); $pdflib->setDPI(300); $pdflib->setPageRange(1,$pdflib->getNumberOfPages()); $pdflib->setFilePrefix('page-'); // Optional $pdflib->convert();
?>`