PHPackages                             selectpdf/selectpdf - 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. selectpdf/selectpdf

Abandoned → [selectpdf/selectpdf-api-client](/?search=selectpdf%2Fselectpdf-api-client)Library[PDF &amp; Document Generation](/categories/documents)

selectpdf/selectpdf
===================

PHP Client library for the SelectPdf HTML to PDF REST API.

11PHP

Since Oct 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/selectpdf/selectpdf-html-to-pdf-api-client-php)[ Packagist](https://packagist.org/packages/selectpdf/selectpdf)[ RSS](/packages/selectpdf-selectpdf/feed)WikiDiscussions master Synced 2d ago

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

HTML To PDF API
===============

[](#html-to-pdf-api)

SelectPdf [HTML To PDF Online](https://selectpdf.com/) REST API is a professional solution that lets you create PDF from web pages and raw HTML code in your applications. The API is easy to use and the integration takes only a few lines of code.

Features
--------

[](#features)

- Create PDF from any web page or html string.
- Full html5/css3/javascript support.
- Set PDF options such as page size and orientation, margins, security, web page settings.
- Set PDF viewer options and PDF document information.
- Create custom headers and footers for the pdf document.
- Hide web page elements during the conversion.
- Automatically generate bookmarks during the html to pdf conversion.
- Support for partial page conversion.
- Easy integration, no third party libraries needed.
- Works in all programming languages.
- No installation required.

Sign up for for free to get instant API access to SelectPdf [HTML to PDF API](https://selectpdf.com/html-to-pdf-api/).

PHP Client Library
------------------

[](#php-client-library)

This code converts a web page and sends the generated PDF as an HTTP response:

```
