Sometimes a user will upload a poorly made PDF and when I try to open it normally it will not work. When I do it programmatically using your class, this line crashes the code:
$pdf -> Load ( $testPath ) ;
Is there perhaps some kind of error handling I can use here so I can send out a message rather than have the page simply not load?
Sometimes a user will upload a poorly made PDF and when I try to open it normally it will not work. When I do it programmatically using your class, this line crashes the code:
$pdf -> Load ( $testPath ) ;
Is there perhaps some kind of error handling I can use here so I can send out a message rather than have the page simply not load?
PS Many thanks for such an excellent class!