Download the PHP package lianhua/superpdf without Composer
On this page you can find all versions of the php package lianhua/superpdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download lianhua/superpdf
More information about lianhua/superpdf
Files in lianhua/superpdf
Package superpdf
Short Description A simple library to manipulate PDF files
License GPL-3.0
Informations about the package superpdf
PHP-SuperPDF
A simple library to manipulate PDF files
Overview
A simple library to manipulate PDF files in PHP
Compatibility
This library has been tested for PHP 7.3 and higher. Functions relying on TCPDF don't work on PHP 8 at the moment!
Installation
Just use composer in your project:
If you don't use composer, clone or download this repository, all you need is inside the src directory, you'll need the FPDI library.
Usage
Open a PDF file
You can open a PDF document with a new SuperPDF:
Count the pages
You can ask for the pages count:
Extract pages
Range
If you want to extract a range of pages into a pdf file:
List
If you want to extract a list of pages into a pdf file:
Insert a PDF document
If you want to insert a PDF file's contents into the document:
If you don't want to overwrite the document, you can give an output path:
Add a background
If you want to add a background on your document:
Like before, if you don't want to overwrite the document, you can give an output path:
Write text
If you want to write som text on the document:
Like before, if you don't want to overwrite the document, you can give an output path:
Draw an image
If you want to draw an image (PNG, JPG, GIF or SVG) on the document:
Like before, if you don't want to overwrite the document, you can give an output path:
All versions of superpdf with dependencies
setasign/fpdf Version ^1.8
tecnickcom/tcpdf Version ^6.3
setasign/tfpdf Version ^1.32