PHPackages                             aspose/pdf-sdk-php - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. aspose/pdf-sdk-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

aspose/pdf-sdk-php
==================

Aspose.PDF Cloud is a REST API for creating and editing PDF files. It can also be used to convert PDF files to different formats like DOC, HTML, XPS, TIFF and many more. Aspose.PDF Cloud gives you control: create PDFs from scratch or from HTML, XML, template, database, XPS or an image. Render PDFs to image formats such as JPEG, PNG, GIF, BMP, TIFF and many others. Aspose.PDF Cloud helps you manipulate elements of a PDF file like text, annotations, watermarks, signatures, bookmarks, stamps and so on. Its REST API also allows you to manage PDF pages by using features like merging, splitting, and inserting. Add images to a PDF file or convert PDF pages to images.

26.2.0(2mo ago)826.7k↓50%4[3 PRs](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-php/pulls)MITPHPPHP &gt;=5.5

Since Mar 15Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-php)[ Packagist](https://packagist.org/packages/aspose/pdf-sdk-php)[ Docs](https://products.aspose.cloud/pdf/cloud)[ RSS](/packages/aspose-pdf-sdk-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (110)Used By (0)

[![](https://camo.githubusercontent.com/d0c4c19c3f6da4ee314a94c798c0e45afc03387eb4e84b40d4b819920e572f27/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6170692d76332e302d6c6967687467726579)](https://camo.githubusercontent.com/d0c4c19c3f6da4ee314a94c798c0e45afc03387eb4e84b40d4b819920e572f27/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6170692d76332e302d6c6967687467726579) [![Packagist Version](https://camo.githubusercontent.com/198c6e8592d2753ec6ad679e2cb7899ac809aad0d1abff3ef996b8dc493c2a65/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6173706f73652f7064662d73646b2d706870)](https://camo.githubusercontent.com/198c6e8592d2753ec6ad679e2cb7899ac809aad0d1abff3ef996b8dc493c2a65/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6173706f73652f7064662d73646b2d706870) [![Packagist PHP Version Support](https://camo.githubusercontent.com/8918cc8584291c2fee51fbc2da9d312098c3f63c80c6aa833e475322abad225a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6173706f73652f7064662d73646b2d706870)](https://camo.githubusercontent.com/8918cc8584291c2fee51fbc2da9d312098c3f63c80c6aa833e475322abad225a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6173706f73652f7064662d73646b2d706870) [![GitHub license](https://camo.githubusercontent.com/78ae29ab3126f36fbb81e454c3c8ed998caf790c88281f388eb46bde1a68fd87/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6173706f73652d7064662d636c6f75642f6173706f73652d7064662d636c6f75642d706870)](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-php/blob/master/LICENSE)

PHP REST API to Process PDF in Cloud
====================================

[](#php-rest-api-to-process-pdf-in-cloud)

[Aspose.PDF Cloud](https://products.aspose.cloud/pdf) is a true REST API that enables you to perform a wide range of document processing operations including creation, manipulation, conversion and rendering of PDF documents in the cloud.

Our Cloud SDKs are wrappers around REST API in various programming languages, allowing you to process documents in language of your choice quickly and easily, gaining all benefits of strong types and IDE highlights. This repository contains new generation SDKs for Aspose.PDF Cloud and examples.

These SDKs are now fully supported. If you have any questions, see any bugs or have enhancement request, feel free to reach out to us at [Free Support Forums](https://forum.aspose.cloud/c/pdf).

Extract Text &amp; Images of a PDF document online .

PDF Processing Features
-----------------------

[](#pdf-processing-features)

- Add PDF document's header &amp; footer in text or image format.
- Add tables &amp; stamps (text or image) to PDF documents.
- Append multiple PDF documents to an existing file.
- Work with PDF attachments, annotations, &amp; form fields.
- Apply encryption or decryption to PDF documents &amp; set a password.
- Delete all stamps &amp; tables from a page or entire PDF document.
- Delete a specific stamp or table from the PDF document by its ID.
- Replace single or multiple instances of text on a PDF page or from the entire document.
- Extensive support for converting PDF documents to various other file formats.
- Extract various elements of PDF files &amp; make PDF documents optimized.

Read &amp; Write PDF Formats
----------------------------

[](#read--write-pdf-formats)

PDF, EPUB, HTML, TeX, SVG, XML, XPS, FDF, XFDF

Save PDF As
-----------

[](#save-pdf-as)

XLS, XLSX, PPTX, DOC, DOCX, MobiXML, JPEG, EMF, PNG, BMP, GIF, TIFF, Text

Read PDF Formats
----------------

[](#read-pdf-formats)

MHT, PCL, PS, XSLFO, MD

Enhancements in Version 26.2
----------------------------

[](#enhancements-in-version-262)

- Added import/export xml method
- A new version of Aspose.PDF Cloud was prepared using the latest version of Aspose.PDF for .NET.

Requirements
------------

[](#requirements)

PHP 7.4 and later.

Get PDF Page Annotations in PHP
-------------------------------

[](#get-pdf-page-annotations-in-php)

```
	// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).

	$config = new Configuration();
	$config->setClientId('MY_CLIENT_ID');
	$config->setClientSecret('MY_CLIENT_SECRET');

	$pdfApi = new PdfApi(null, $config);
	$name = 'PdfWithAnnotations.pdf';
	$pageNumber = 2;

	$response = $pdfApi->getPageAnnotations($name, $pageNumber, null, "tempFolder");
```

SelfHost Aspose.PDF Cloud
-------------------------

[](#selfhost-asposepdf-cloud)

Create **Configuration** object without **ClientId** and **ClientSecret**, with **SelfHost** set to `true` and with **Host** set to *url of SelfHost Aspose.PDF Cloud*:

```
	$config->setSelfHost(true);
	$config->setHost('MY_SELF_HOST_URL');
```

Use cases
---------

[](#use-cases)

The Aspose.PDF Cloud SDK includes a set of ready-to-run use cases in the "[UsesCases](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-php/tree/master/UsesCases)" directory. These examples illustrate common operations such as managing annotations, attachments, text, and more.

1. Add your API credentials **client\_id** and **client\_secret** into [settings/credentials.json](https://github.com/aspose-pdf-cloud/aspose-pdf-cloud-php/tree/master/settings/credentials.json):

```
{
  "client_secret": "YOUR_CLIENT_SECRET",
  "client_id": "YOUR_CLIENT_ID"
}

```

2. Launch use case:

```
php UsesCases/Bookmarks/get/getBookmarksAndShow.php

```

Unit Tests
----------

[](#unit-tests)

Aspose PDF SDK includes a suite of unit tests within the "tests" subdirectory. These Unit Tests also serves as examples of how to use the Aspose PDF SDK.

To run the unit tests:

```
composer install
./vendor/bin/phpunit

```

Licensing
---------

[](#licensing)

All Aspose.PDF Cloud SDKs are licensed under [MIT License](LICENSE).

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance89

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~34 days

Recently: every ~22 days

Total

85

Last Release

67d ago

Major Versions

21.12.0 → 22.1.02022-01-31

22.12.0 → 23.1.02023-01-27

23.12.0 → 24.1.02024-01-25

24.12.0 → 25.1.02025-01-23

25.12.0 → 26.1.02026-02-06

PHP version history (2 changes)2.0.0PHP &gt;=5.4

18.3.0PHP &gt;=5.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/32087729?v=4)[AsposeCloud](/maintainers/AsposeCloud)[@asposecloud](https://github.com/asposecloud)

![](https://www.gravatar.com/avatar/d23b39db642bea7416f922659453ab3f0c3f0a74f2c235baf42c09565e5671c2?d=identicon)[masood-anwer](/maintainers/masood-anwer)

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

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

---

Top Contributors

[![kaferi](https://avatars.githubusercontent.com/u/10865409?v=4)](https://github.com/kaferi "kaferi (122 commits)")[![kirillnovinskiy983](https://avatars.githubusercontent.com/u/256513519?v=4)](https://github.com/kirillnovinskiy983 "kirillnovinskiy983 (42 commits)")[![osubachevaspose](https://avatars.githubusercontent.com/u/231472556?v=4)](https://github.com/osubachevaspose "osubachevaspose (35 commits)")[![Dmitriy-Xawstov](https://avatars.githubusercontent.com/u/187321461?v=4)](https://github.com/Dmitriy-Xawstov "Dmitriy-Xawstov (35 commits)")[![boiledgas](https://avatars.githubusercontent.com/u/19663965?v=4)](https://github.com/boiledgas "boiledgas (19 commits)")[![andrey-kotlyarov](https://avatars.githubusercontent.com/u/10867577?v=4)](https://github.com/andrey-kotlyarov "andrey-kotlyarov (18 commits)")[![evgeny-porodnov](https://avatars.githubusercontent.com/u/20206545?v=4)](https://github.com/evgeny-porodnov "evgeny-porodnov (16 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![mmsajjad-aspose](https://avatars.githubusercontent.com/u/22287863?v=4)](https://github.com/mmsajjad-aspose "mmsajjad-aspose (2 commits)")[![rizwanniazigroupdocs](https://avatars.githubusercontent.com/u/16472118?v=4)](https://github.com/rizwanniazigroupdocs "rizwanniazigroupdocs (2 commits)")[![solsw](https://avatars.githubusercontent.com/u/77221953?v=4)](https://github.com/solsw "solsw (2 commits)")[![babar-raza](https://avatars.githubusercontent.com/u/1225645?v=4)](https://github.com/babar-raza "babar-raza (1 commits)")

---

Tags

apipdfrestxmlconvertcloudhtmldocxlsxlsxconvertersvgmarkdowndocxgiftextmdpngjpegannotationasposenetpptxpdf-to-imagetiffdocx to pdfpdf to docxhtml-to-pdfepubBMPpsfdfPDF to HTMLPDF to SVGtexmhtdotnetstamppostscriptemfcreate-pdfcsharpXPSAspose.Total-CloudAspose.PDFAspose.PDF-CloudPCLXSLFOMobiXMLXFDFPDFA3PDF-to-DOCPDF-to-PDFAPDF-to-TIFFPDF-to-EPUBPDF-to-PPTXPDF-to-TEXPDF-to-MobiXMLPDF-to-XFAPDF-to-XMLPDF-to-XPSPDF-to-XLSEPUB-to-PDFWeb-to-PDFTEX-to-PDFMHT-to-PDFPS-to-PDFPostScript-to-PDFXSIF-to-PDFXPS-to-PDFSVG-to-PDFDOC-to-PDFPCL-to-PDFXML-to-PDFMarkdown-to-PDFMD-to-PDFLine-AnnotationCircle-AnnotationSquare-AnnotationUnderline-AnnotationSquiggly-AnnotationPDF-BookmarkPDF-LinkPDF-AttachmentPDF-DocumentPDF-PagePDF-Form-FieldsPDF-TextPDF-ImageReplace-TextFetch-TextReplace-ImageExtract-ImageConvert-PDFPDF-OCROCR-Layers

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  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)[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)[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)[docraptor/docraptor

A native client library for the DocRaptor HTML to PDF/XLS service.

221.7M5](/packages/docraptor-docraptor)[mnvx/lowrapper

PHP wrapper over LibreOffice converter

129190.5k](/packages/mnvx-lowrapper)

PHPackages © 2026

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