nguyenhiep/converters

There is no license information available for the latest version (v2.0.1) of this package.

Suport convert document to other format

v2.0.1 2021-02-18 13:19 UTC

This package is auto-updated.

Last update: 2024-04-18 10:27:23 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