I have a template located at "public/form/file.pdf
" and what to get the page height and the page width but I'm encountering error "Call to undefined method setasign\Fpdi\Fpdi::GetPageWidth()"
I installed via composer of the following packages:
"setasign/fpdf": "1.8",
"setasign/fpdi": "^2.3"
Controller
$pdf = new Fpdi();
$page_count = $pdf->setSourceFile(public_path()."/form/file.pdf");
$w = $pdf->GetPageWidth(); // Width of Current Page
$h = $pdf->GetPageHeight(); // Height of Current Page
dd($w);
Question: How do I get the width and height of current page?