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

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 this

    php 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