Download the PHP package gutti3k/pdf-watermarker without Composer
On this page you can find all versions of the php package gutti3k/pdf-watermarker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gutti3k/pdf-watermarker
More information about gutti3k/pdf-watermarker
Files in gutti3k/pdf-watermarker
Package pdf-watermarker
Short Description Fork of the Simple PDF Watermarker with Laravel support
License MIT
Informations about the package pdf-watermarker
PDF Watermarker
PDFWatermarker enables you to add a text or an image as a watermark to existing PDF files. It uses FPDF that allows you to write PDF files and FPDI that allows you to import existing PDF documents into FPDF.
Using it, you can:
- Use a text and TTF font to create a watermark
- Use a jpg and png ( with alpha channels ) images with a 96 DPI resolution as a watermark
- Easily position the watermark on the pages of the PDF file
Installation
Installing using composer
Usage
In vanilla PHP you can watermark a PDF with an image in this way:
Options
You can also specify additional options:
Output Methods
You can get the watermarked PDF in the following ways:
Laravel Support
In Laravel you can use the two facades: ImageWatermarker and TextWatermarker:
You can also generate a valid response to stream or download the file:
Credits
This package is based on the following repositories:
- https://github.com/drinksandco/pdf-watermarker
- https://github.com/jeroenvdgulik/pdf-watermarker
- https://github.com/binarystash/pdf-watermarker
I decided to refactor and enhance it because those packages haven't been updated in years.
All versions of pdf-watermarker with dependencies
illuminate/support Version >=7.0
setasign/fpdi Version ^2.3
setasign/fpdf Version ^1.8