Skip to content

Commit

Permalink
Improves documentation and removes dependencies to abandoned packages
Browse files Browse the repository at this point in the history
  • Loading branch information
filippotoso committed Mar 12, 2022
1 parent f7aa88d commit 7fc00fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ PDFWatermarker enables you to add a text or an image as a watermark to existing

Using it, you can:

* Use a text and TTF to create a watermark
* Use jpg and png ( with alpha channels ) files with a 96 DPI resolution as a watermark
* 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
Expand All @@ -26,7 +26,7 @@ use FilippoToso\PdfWatermarker\Support\ImageWatermark;
use FilippoToso\PdfWatermarker\PdfWatermarker;

// Specify path to the existing pdf
$pdf = new Pdf('my.pdf');
$pdf = new Pdf('input.pdf');

// Specify path to image. The image must have a 96 DPI resolution.
$watermark = new Watermark('watermark.png');
Expand Down
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
}],
"require": {
"php": ">=7.1.0",
"setasign/fpdi-fpdf": "^2.2"
"illuminate/support": ">=7.0",
"setasign/fpdi": "^2.3",
"setasign/fpdf": "^1.8"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 7fc00fd

Please sign in to comment.