minhhn / converters
There is no license information available for the latest version (1.0.2) of this package.
Suport convert document to other format
1.0.2
2024-05-06 09:15 UTC
Requires
- guzzlehttp/guzzle: ^6.0|^7.0|^7.5.0
- hocvt/php-apache-tika: ^0.9.2
- illuminate/filesystem: ^5.0|^6.0|^7.0|^8.0|^v9.0.0
- illuminate/support: ^5.0|^6.0|^7.0|^8.0|^9.0.0|^10.0.0
- minh7721/mimey: ^v8.0.1
- nelexa/zip: ^4.0.2
- symfony/finder: ^2.8|^3.0|^3.4|^4.2|^5.0|^6.0
- symfony/mime: ^4.2|^5.0|^6.4.x-dev
- symfony/process: ^4.2|^5.0|^v6.4.7
Requires (Dev)
- phpunit/phpunit: ^7.5 || ^10.0.1
- symfony/var-dumper: ^4.3
This package is auto-updated.
Last update: 2024-12-16 10:23:02 UTC
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
-[ ] Add ghostscript for optimize pdf file -[ ] Add qpdf -[ ] Add mupdf for capture pdf