PHPackages                             aoxiaoxi/office2pdf - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. aoxiaoxi/office2pdf

ActiveProject[PDF &amp; Document Generation](/categories/documents)

aoxiaoxi/office2pdf
===================

use openoffice convert office to pdf,and adding watermark

1.0(7y ago)234MITPHPPHP &gt;=5.6.4

Since Jun 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/aoxiaoxi/office2pdf)[ Packagist](https://packagist.org/packages/aoxiaoxi/office2pdf)[ RSS](/packages/aoxiaoxi-office2pdf/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

office2pdf
----------

[](#office2pdf)

prepare
-------

[](#prepare)

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

use
---

[](#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)

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2879d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f842c6a50791aeef880146d83a8dfac2bcc9d0b14d548a4b9b3e69b75f54cfc9?d=identicon)[aoxiaoxi](/maintainers/aoxiaoxi)

---

Top Contributors

[![aoxiaoxi](https://avatars.githubusercontent.com/u/19606604?v=4)](https://github.com/aoxiaoxi "aoxiaoxi (4 commits)")

---

Tags

pdfwatermarkofficeOpenOffice

### Embed Badge

![Health badge](/badges/aoxiaoxi-office2pdf/health.svg)

```
[![Health](https://phpackages.com/badges/aoxiaoxi-office2pdf/health.svg)](https://phpackages.com/packages/aoxiaoxi-office2pdf)
```

###  Alternatives

[barryvdh/laravel-dompdf

A DOMPDF Wrapper for Laravel

7.3k87.6M275](/packages/barryvdh-laravel-dompdf)[tecnickcom/tcpdf

TCPDF is a PHP class for generating PDF documents and barcodes.

4.5k101.8M472](/packages/tecnickcom-tcpdf)[mpdf/mpdf

PHP library generating PDF files from UTF-8 encoded HTML

4.7k77.1M490](/packages/mpdf-mpdf)[knplabs/knp-snappy

PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Wrapper for wkhtmltopdf/wkhtmltoimage.

4.5k68.3M55](/packages/knplabs-knp-snappy)[spatie/browsershot

Convert a webpage to an image or pdf using headless Chrome

5.2k32.1M100](/packages/spatie-browsershot)[smalot/pdfparser

Pdf parser library. Can read and extract information from pdf file.

2.7k34.5M216](/packages/smalot-pdfparser)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
