aoxiaoxi / office2pdf
use openoffice convert office to pdf,and adding watermark
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.6.4
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)