colombo / converters
There is no license information available for the latest version (v4.0.3) of this package.
Support convert document to other format
v4.0.3
2022-06-23 04:42 UTC
Requires
- guzzlehttp/guzzle: ^7.0|^8.0
- hocvt/tika-simple: ^1.0
- illuminate/filesystem: ^7.0|^8.0|^9.0
- illuminate/support: ^7.0|^8.0|^9.0
- nelexa/zip: ^4.0
- symfony/finder: ^4.2|^5.0|^6.0
- symfony/mime: ^4.2|^5.0|^6.0
- symfony/process: ^4.2|^5.0|^6.0
Requires (Dev)
- phpunit/phpunit: ^8.0|^9.0
- symfony/var-dumper: ^4.4|^5.0
README
- Poppler tools kit
- Jod converter
Usage
$converter = new \Colombo\Converters\Helpers\Converter(); $converter->setInput($input); // force custom converter $converter->setOutputFormat( 'pdf'); $converter->setEndPage(1); $converter->setEndPage(2); $result = $converter->run(); if($result->isSuccess()){ $result->saveTo('xxx.pdf'); }else{ print_r($result->getErrors()); }
With laravel
-
Add
ConverterServiceProvider
to app.php and type command like thisphp artisan colombo_convert -i ~/Downloads/30325685_1545065160.doc -f pdf --output ./x.pdf
Stable
- poppler utils
- gs
- pdf2htmlex
Todo
-[ ] Improve phpunit test