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

This package is auto-updated.

Last update: 2024-12-23 10:20:59 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 this

    php artisan colombo_convert -i ~/Downloads/30325685_1545065160.doc -f pdf --output ./x.pdf

Stable

  • poppler utils
  • gs
  • pdf2htmlex

Todo

-[ ] Improve phpunit test