29/06
2018
use openoffice convert office to pdf,and adding watermark
1.install openoffice service and java environment
2.composer require aoxiaoxi/office2pdf, (*1)
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)