Created
October 10, 2020 12:25
-
-
Save tsulatsitamim/884c25163dc50686b55b879608a32044 to your computer and use it in GitHub Desktop.
Get Height and Width of PDF File
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$pdf = new Fpdi(); | |
$source = $pdf->setSourceFile('filename.pdf'); | |
$template = $pdf->importPage($source); | |
$size = $pdf->getTemplateSize($template); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment