![]() $svgConverterUtil-> utilOptions() //returns an array of all available options for svgConverter $svgConverterUtil-> setOption( 'key', 'value') ![]() $svgConverter-> convert() // returns a directory instance //You can also obtain the underlying NcJoes\PopplerPhp\PopplerUtil instance // and use it to further customize any of the converters $svgConverter = $pdfSuite-> getPdfToSvgConverter() $psConverter-> convert() // returns a directory instance //PDF to SVG converter $svgConverter = $pdfSuite-> getPdfToSvgConverter() $pngConverter-> convert() // returns a directory instance //PDF to PostScript converter $psConverter = $pdfSuite-> getPdfToPsConverter() $jpegConverter-> convert() // returns a directory instance //PDF to PNG converter $pngConverter = $pdfSuite-> getPdfToPngConverter() other output mode options include //$converter::MODE_MULTI_PAGED_SINGLE_DOC //and //$converter::MODE_COMPLEX_DOCUMENT //PDF to JPEG converter $jpegConverter = $pdfSuite-> getPdfToJpegConverter() returns a directory instance, a OOP model of a directory/folder containing the output files $directory = $htmlConverter-> convert( $htmlConverter:: MODE_SINGLE_PAGE_PER_DOC) $htmlConverter-> setOutputSubDir( 'testSinglePageConverterOption') $htmlConverter-> setPageRange( 1, 16)-> useDefaultSettings() PDF to HTML converter $htmlConverter = $pdfSuite-> getPdfToHtmlConverter() ![]() $number_of_pages = $pdf_info-> getNumOfPages() getPdfInfo() //returns an associative array $authors = $pdf_info-> getAuthors() Setup Poppler utils binaries location NcJoes \PdfSuite \Config::setBinDirectory( $dir) See PopplerPhp installation notes for help with Poppler Utils installation. Otherwise, your application won't be able to find the classes of this Symfony component.įinally, point the config settings to the location of Poppler utils binaries on your php server. Then, require the vendor/autoload.php file to enable the autoloading mechanism provided by Composer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |