PHPackages                             filippo-toso/pdf-watermarker - 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. filippo-toso/pdf-watermarker

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

filippo-toso/pdf-watermarker
============================

Simple PDF Watermarker with Laravel support

v1.1.1(2y ago)1563.9k↓15.8%71MITPHPPHP &gt;=7.1.0

Since Mar 12Pushed 2y ago3 watchersCompare

[ Source](https://github.com/filippotoso/pdf-watermarker)[ Packagist](https://packagist.org/packages/filippo-toso/pdf-watermarker)[ RSS](/packages/filippo-toso-pdf-watermarker/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (15)Used By (1)

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
------------

[](#installation)

Installing using composer

```
composer require filippo-toso/pdf-watermarker
```

Usage
-----

[](#usage)

In vanilla PHP you can watermark a PDF with an image in this way:

```
