I tried to convert a pdf file and system just dies. All processing die. I tried to put in a try { catch but it didn't work. Just die process.
You can get the pdf file in link below:
tseyor.org/archivos/triada/comparte
...
I used the same example code. Browser just say me "ERR_CONNECTION_RESET" and nothing load.
include ( '../../PdfToText.phpclass' ) ;
function output ( $message )
{
if ( php_sapi_name ( ) == 'cli' )
echo ( $message ) ;
else
echo ( nl2br ( $message ) ) ;
}
try {
$file = 'sample' ;
$pdf = new PdfToText ( "$file.pdf" ) ;
output ( "Original file contents :\n" ) ;
output ( file_get_contents ( "$file.txt" ) ) ;
output ( "-----------------------------------------------------------\n" ) ;
output ( "Extracted file contents :\n" ) ;
output ( $pdf -> Text ) ;
}
catch(Exception $e)
{
output('Exception!');
}
I tried (in another script) to log in a file after create class (and convert) or if exception ocurr, and nothing written in file.