Exponential 6.0.13 Exponential Enterprise Open Source CMS - PHP Class Reference

ezpdfparser.php
Go to the documentation of this file.
1 <?php
18 class eZPDFParser
19 {
20 function parseFile( $fileName )
21 {
22 $binaryINI = eZINI::instance( 'binaryfile.ini' );
23
24 $textExtractionTool = $binaryINI->variable( 'PDFHandlerSettings', 'TextExtractionTool' );
25
26 // save the buffer contents
27 $buffer = ob_get_contents();
28 if ( $buffer )
29 {
30 ob_end_clean();
31 }
32
33 // fetch the module printout
34 ob_start();
35 passthru( "$textExtractionTool $fileName" );
36 $metaData = ob_get_contents();
37 ob_end_clean();
38
39 // fill the buffer with the old values
40 ob_start();
41 print( $buffer );
42
43 return $metaData;
44 }
45 }
46
47 ?>
eZPDFParser
The class eZPDFParser handles parsing of PDF files and returns the metadata.
Definition: ezpdfparser.php:19
eZPDFParser\parseFile
parseFile( $fileName)
Definition: ezpdfparser.php:20
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.