PHPackages                             kristianlentino/watermark-fpdf - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. kristianlentino/watermark-fpdf

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kristianlentino/watermark-fpdf
==============================

1.0.0(4y ago)078MITPHP

Since Oct 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/KristianLentino99/Watermark-FPDF)[ Packagist](https://packagist.org/packages/kristianlentino/watermark-fpdf)[ RSS](/packages/kristianlentino-watermark-fpdf/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Watermark-FPDF
==============

[](#watermark-fpdf)

```
    composer require kristianlentino/watermark-fpdf
```

Permette di creare facilmente un watermark in un file PDF. Esempio:

```
       use Kristianlentino\WatermarkFpdf\WatermarkFpdi;
       $fpdi = new WatermarkFpdi();
   	$pdfPath = __DIR__. DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'../media/lf_ebooks/1634655065/file.pdf';
   	$pdfPathSave = __DIR__. DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'../media/lf_ebooks/1634655065/file_prova.pdf';
   	$pageCount = $fpdi->setSourceFile($pdfPath);
   	for ($pageNo = 1; $pageNo importPage($pageNo);
   		$size = $fpdi->getTemplateSize($templateId);
   		//set the new page to the size of the template
   		$fpdi->AddPage('',[$size['width'],$size['height']]);

   		//the last parameter will adjust the size of the page
   		$fpdi->useTemplate($templateId, 0, 0, null, null, true);

   		// set alpha to semi-transparency
   		$fpdi->SetAlpha(0.5);
   		$fpdi->SetFont('Arial','B',80);
   		$fpdi->SetTextColor(188,190,190);
   		$fpdi->RotatedText(50,180,'Lavorofacile',45);
   		// set alpha to semi-transparency
   		$fpdi->SetAlpha(1);
   	}

       /*
           I --> mostra il file nel browser,
           D --> Download file
           F --> Salva il file in locale
           S --> Ritorna il file come stringa
       */
   	return $fpdi->Output($pdfPathSave,'I');
```

Queste funzioni sono state prese dai seguenti link:

-
-
-

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

1666d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7dd0f40817da39df38d25904493e7913e0ca204837ef27dbe655e2e0b3dedb35?d=identicon)[KristianLentino99](/maintainers/KristianLentino99)

### Embed Badge

![Health badge](/badges/kristianlentino-watermark-fpdf/health.svg)

```
[![Health](https://phpackages.com/badges/kristianlentino-watermark-fpdf/health.svg)](https://phpackages.com/packages/kristianlentino-watermark-fpdf)
```

###  Alternatives

[tig/postnl-magento2

TIG Magento 2 PostNL extension

58544.2k4](/packages/tig-postnl-magento2)[horstoeko/zugferd

A library for creating and reading european electronic invoices

4044.3M18](/packages/horstoeko-zugferd)[atgp/factur-x

PHP library to manage your Factur-X / ZUGFeRD 2.0 PDF invoices files

138825.5k3](/packages/atgp-factur-x)[mapbender/mapbender

Mapbender library

10117.4k5](/packages/mapbender-mapbender)[mijora/omniva-api

Omniva API wrapper

1573.7k](/packages/mijora-omniva-api)

PHPackages © 2026

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