aoxiaoxi/office2pdf

use openoffice convert office to pdf,and adding watermark

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

pkg:composer/aoxiaoxi/office2pdf

1.0 2018-06-21 09:25 UTC

This package is not auto-updated.

Last update: 2025-12-21 12:41:01 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)