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

This package is auto-updated.

Last update: 2024-05-06 19:39:53 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

中文版本文件

PdfSignature : PDF加入簽名檔超簡單