PHPackages                             aspose/pdf - 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. aspose/pdf

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

aspose/pdf
==========

A powerful library for manipulating and converting PDF files.

24.6(1y ago)2813proprietaryPHPPHP &gt;=7.0

Since Jan 17Pushed 1y ago13 watchersCompare

[ Source](https://github.com/aspose-pdf/Aspose.PDF-for-PHP-via-Java)[ Packagist](https://packagist.org/packages/aspose/pdf)[ Docs](https://products.aspose.com/pdf/php-java)[ RSS](/packages/aspose-pdf/feed)WikiDiscussions main Synced 1mo ago

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

PHP Library for PDF File Formats
================================

[](#php-library-for-pdf-file-formats)

Aspose.PDF for PHP via Java is a feature-rich API to allow developers to create PDF documents, whether simple or complex, on the fly programmatically. Aspose.PDF for Java allows developers to insert tables, graphs, images, hyperlinks, custom fonts - and more - into PDF documents. Moreover, it is also possible to compress PDF documents. Aspose.PDF for Java provides excellent security features to develop secure PDF documents. And the most distinct feature of Aspose.PDF for Java is that it supports the creation of PDF documents through both an API and from XML templates

PHP PDF Library Features
------------------------

[](#php-pdf-library-features)

### PDF Document Featres

[](#pdf-document-featres)

- Set basic information (e.g. author, creator) of the PDF document.
- Configure PDF Page properties (e.g. width, height, cropbox, bleedbox etc.).
- Set page numbering, bookmark level, page sizes etc.
- Apply document open action, open mode as well as appearance.
- Document can have different page transition effects such as dissolve or box.
- Create PDF documents via `XML`, `API` or `XML` and `API` combined.
- Ability to work with text, paragraphs, headings, hyperlinks, graphs, attachments etc.

### Security Features

[](#security-features)

- PDF documents can be encrypted up to 128 bits.
- Master and user passwords can be set for PDF encryption.
- Apply rescriptions on content modification, copying, printing and other operations.

### Conversion Features

[](#conversion-features)

- Convert an existing XML file (`.XML`) or `XmlDocument` to a new PDF document or a PDF file stream.
- Convert conventional Image formats into PDF file.
- Convert `PCL` files into PDF file.

For a more comprehensive list of features, please visit [Key Features of Aspose.PDF](https://docs.aspose.com/pdf/java/key-features/).

Getting Started with Aspose.PDF for PHP via Java
------------------------------------------------

[](#getting-started-with-asposepdf-for-php-via-java)

Aspose.PDF for PHP via Java consists of 2 individual parts, the script wrapper (aspose.pdf.php) and Aspose.PDF for Java. These components communicate via PHP/Java Bridge whereas both require separate environments &amp; processes for execution.

### Prerequisites

[](#prerequisites)

1. JDK
2. PHP/Java Bridge
3. Web Server like Tomcat
4. PHP

### Installation

[](#installation)

1. Install Tomcat on any location such as `\java\apache-tomcat-9.0.24`.
2. Copy JavaBridge.war to `webapps` folder of Tomcat such as `\java\apache-tomcat-9.0.24\webapps`.
3. Copy aspose-pdf-xx.x.jar to `lib` folder such as `\java\apache-tomcat-9.0.24\lib`.
4. Run `\bin\startup.bat`, JavaBridge.war will be deployed to `\java\apache-tomcat-9.0.24\webapps\JavaBridge`.
5. Test  to ensure that PHP works fine.
6. Copy aspose.pdf.php and example.php to `\java\apache-tomcat-9.0.24\webapps\JavaBridge`.
7. Open  or create your own PHP file as follows.

You will find the Jar and PHP library in `vendor/aspose/pdf` folder.

### Create Excel XLSX File from Scratch using PHP

[](#create-excel-xlsx-file-from-scratch-using-php)

```

```

[Product Page](https://products.aspose.com/pdf/php-java) | [Documentation](https://docs.aspose.com/pdf/php-java/) | [API Reference](https://apireference.aspose.com/pdf/php) | [Code Examples](https://github.com/aspose-pdf/Aspose.PDF-for-Java) | [Blog](https://blog.aspose.com/category/pdf/) | [Free Support](https://forum.aspose.com/c/pdf) | [Temporary License](https://purchase.aspose.com/temporary-license)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Every ~142 days

Total

2

Last Release

710d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4221549?v=4)[Aspose](/maintainers/aspose)[@Aspose](https://github.com/Aspose)

---

Top Contributors

[![marat-khazin-aspose](https://avatars.githubusercontent.com/u/74649477?v=4)](https://github.com/marat-khazin-aspose "marat-khazin-aspose (5 commits)")

---

Tags

pdflinkxmlunicodesecuritysignatureimageexporthtmldocxlsxlsxwatermarksvgmarkdowndocxgiftextmdpngjpegformlinuxprintwindowsbookmarkattachmentfontgraphannotationpptxMACcmyktiffpdf to docxhtml-to-pdfepubBMPpsfdfPDF to HTMLPDF to SVGtexmhtstamppostscriptemfXPSPCLXSLFOMobiXMLXFDFPDF-to-DOCPDF-to-TIFFPDF-to-EPUBPDF-to-PPTXPDF-to-TEXPDF-to-XPSPDF-to-XLSEPUB-to-PDFTEX-to-PDFPS-to-PDFPostScript-to-PDFXPS-to-PDFSVG-to-PDFPCL-to-PDFXML-to-PDFMarkdown-to-PDFMD-to-PDFdata-sourcetruetypeMavenPDFAtext extractionAspose TotalAspose PDFAspose Java APIpdf java librarypdf java classCGMdocument compressiontable creationCJKJ2SEextract textPDF to XLSXMHTML to PDFBMP to PDFCGM to PDFDICOM to PDFEMF to PDFJPG to PDFPNG to PDFTIFF to PDFTXT to PDFXSLFO to PDFLaTeX to PDFPDF to LaTeXPDF to TXTPDF to PDF A\_1bPDF to PDF A\_3bPDF to PDF A\_3aPDF to PDF A\_2aPDF to PDF A\_3UPDFA to PDF

### Embed Badge

![Health badge](/badges/aspose-pdf/health.svg)

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

###  Alternatives

[gotenberg/gotenberg-php

A PHP client for interacting with Gotenberg, a developer-friendly API for converting numerous document formats into PDF files, and more!

3685.2M19](/packages/gotenberg-gotenberg-php)[nilgems/laravel-textract

A Laravel package to extract text from files like DOC, XL, Image, Pdf and more. I've developed this package by inspiring "npm textract".

195.2k](/packages/nilgems-laravel-textract)[kartik-v/yii2-export

A library to export server/db data in various formats (e.g. excel, html, pdf, csv etc.)

1623.1M35](/packages/kartik-v-yii2-export)[aspose-cloud/aspose-words-cloud

Open, generate, edit, split, merge, compare and convert Word documents. Integrate Cloud API into your solutions to manipulate documents. Convert PDF to Word (DOC, DOCX, ODT, RTF and HTML) and in the opposite direction.

32157.4k](/packages/aspose-cloud-aspose-words-cloud)[anourvalar/office

Generate documents from existing Excel &amp; Word templates | Export tables to Excel (Grids)

24085.2k](/packages/anourvalar-office)

PHPackages © 2026

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