Page 1 of 1

PDF Error Catching

Posted: Wed Nov 02, 2005 4:13 pm
by JasonTC
The following code:

Code: Select all

$pdf_filename = "test.pdf";
$pdf = pdf_new();
pdf_open_file($pdf, $pdf_filename);
Isn't creating a file called "test.pdf". This obviously means something went wrong, but is there any way to see some kind of error? I tried looking up error catching in my PHP book but didn't find anything.

Thanks,
Jason

Posted: Wed Nov 02, 2005 4:16 pm
by Nathaniel
put "error_reporting(E_ALL);" (without the quotes) somewhere before the code you posted...

Posted: Wed Nov 02, 2005 5:10 pm
by JasonTC
Neither created the file nor output any errors. Any ideas as to what could be happening?

Thanks,
Jason

Posted: Wed Nov 02, 2005 6:20 pm
by feyd
I would hazard to guess, like your original thread, you have no data stored, so there's no file to create.