I have the next PHP function to extract a certain page from a PDF file.
require_once(DIR_SYSTEM . 'library/fpdf/[login to view URL]'); // Use FPDF library
require_once(DIR_SYSTEM . 'library/fpdi/[login to view URL]'); // Use FPDI library
function savePage($source_file, $page){
$page_file = str_replace('.pdf', '_' . $page . '.pdf', $source_file);
if(!file_exists($page_file)){
$pdf = new setasign\Fpdi\Fpdi();
$pdf->AddPage();
$count = $pdf->setSourceFile($source_file);
if($page > $count){
return false;
} else {
$pdf->useTemplate($pdf->importPage($page), 0, 0, null, null, true);
$pdf->Output('F', $page_file);
}
}
return $page_file;
}
It works fine with this file: [login to view URL]
But got error when try to this one: [login to view URL]
Hello
We are skilled web developer and we are working in web development from last five year so please feel free to contact me for more discussion about pdf creator
Thank you
Hi
Hope you are doing well
We are a lead generation company, We generate all Digital Marketing leads from across the globe .
We generate SEO,PPC,SMO,Web Development,App Development leads
Sound Interesting!Let me know if you are interested. for further discussion
Thanks
Parveen
Business Development
Hi
Hope you are doing well.I have 7yrs of experience on web developement with various assignment completed successfully and looking forward for many more.I have good exposure in php mysql html css javascript jquery ajax website scrapping.