Description Pdf to Image web gallery creator and tools is a web application that allows you to upload pdf files that will be automatically converted into images in order to create a web gallery page. The code you have to inlcude in your page is really simple and short (just 3 lines of code). You can fully integrate the script in sliders, gallery template, portfolio page and so on… imagemagick and ghostscript are necessary.
You can also use only the tools to work with pdf, converting them into images.
Configuration The application is fully customizable and you can chose those customizations:
1 – public $img_type=”png”; // jpg or png 2 – public $jpg_compression=”70”; // the quality of the picture 100 is top quality 3 – public $img_width=”500”; // the width of the image 4 – public $images_per_page=”16”; // how many images in the page (pagination for other pdf) 5 – public $upload_dir=”upload/”; // where all the pdf are
Tools The application will create 1 image for each page of the pdf files. You can use all the tools in order to work with the pdf.
So you can:
Get all the images of a pdf file
getAllImagesOf(“sample_pdf.pdf”);
Array ( [0] => upload/sample_pdf/sample_pdf0.png [1] => upload/sample_pdf/sample_pdf1.png )
Get the first page of a pdf file
getFirstPageOf(“sample_pdf.pdf”);
upload/sample_pdf/sample_pdf0.png
Get the x (0,1,2…n) page of a pdf file
getPage(“sample_pdf.pdf”, “1”);
upload/sample_pdf/sample_pdf1.png
Admin and live preview Admin panel username= admin password= admin