By : danilotrix86 Published On Wednesday, February 22, 2012, 15:33 In PHP Scripts
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
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