aoxiaoxi/office2pdf

use openoffice convert office to pdf,and adding watermark

1.0 2018-06-21 09:25 UTC

This package is not auto-updated.

Last update: 2024-09-29 05:49:19 UTC


README

prepare

1.install openoffice service and java environment
2.composer require aoxiaoxi/office2pdf

use

use Lib\Office2pdf;

public function testComposer(){
        $office = new Office2pdf();
        $office->index();
}

//office to pdf
@param $filePath,
@param $pdffilePath
$office->office2pdf($filePath,$pdffilePath)


//pdf addwatermark
@param $waterName,
@param $oldfilepath
@param $newfilepath
$office->addwatermark($waterName,$oldfilepath,$newfilepath)