h2akim/pdfwatermarker

PDF Watermarking Package

dev-master 2017-11-22 04:22 UTC

This package is not auto-updated.

Last update: 2024-11-10 05:19:28 UTC


README

Installation

composer require h2akim/pdfwatermarker:dev-master

Usage

<?php

use PdfWatermarker\PdfWatermarker;

$watermarker = new PdfWatermarker(
                'input.pdf', // input
                'output.pdf', // output
                'watermark.png', // watermark file
                'center', // watermark position (topleft, topright, bottomleft, bottomright, center)
                true // set to true - replace original input file
               );
$watermarker->create();