I'm using pdf-to-image package. So, when I uploaded the pdf file I want to convert this file to an image as well. But, I seem not working as I expected.
Here is the source code that I have tried:
$pdf = new Pdf('{base_url}/admin/file/public/6347142c225ff526cbd981ff2a51b788.pdf'); $pdf->setOutputFormat('png') ->saveImage('public/');
Thank for helping me!
I'm using pdf-to-image package. So, when I uploaded the pdf file I want to convert this file to an image as well. But, I seem not working as I expected.
Here is the source code that I have tried:
$pdf = new Pdf('{base_url}/admin/file/public/6347142c225ff526cbd981ff2a51b788.pdf'); $pdf->setOutputFormat('png') ->saveImage('public/');
Thank for helping me!