virtualorz / pdf-signature
There is no license information available for the latest version (0.0.2) of this package.
0.0.2
2019-09-06 08:31 UTC
Requires
- setasign/fpdf: ^1.8
- setasign/fpdi: ^2.0
This package is auto-updated.
Last update: 2025-04-06 21:32:22 UTC
README
Use for Laravel to add signature img into pdf file
Install
composer require virtualorz/pdfSignature
Config
edit config/app.php
'providers' => [
...
Virtualorz\PdfSignature\PdfSignatureServiceProvider::class
]
'aliases' => [
...
'PdfSignature' => Virtualorz\PdfSignature\Facades\PdfSignature::class,
]
Method
sign($pdf_path, $signature_path, $signature_location, $download_file_name)
$pdf_path(string) : real path to the pdf file who want to sign,
$signature_path(string) : real path to the signature image file,
$signature_location(Array) : sign location info array like belo :
[
[
'page' => 1,
'x' => 15,
'y' => 210
],
]
you can whitch page and x,y location you want to sign,
$download_file_name(string) : the sign result pdf download name