virtualorz/pdf-signature

此包最新版本(0.0.2)没有可用的许可信息。

0.0.2 2019-09-06 08:31 UTC

This package is auto-updated.

Last update: 2024-09-06 20:24:41 UTC


README

用于Laravel,在PDF文件中添加签名图片

安装

composer require virtualorz/pdfSignature

配置

编辑config/app.php

'providers' => [
    ...
    Virtualorz\PdfSignature\PdfSignatureServiceProvider::class
]

'aliases' => [
    ...
    'PdfSignature' => Virtualorz\PdfSignature\Facades\PdfSignature::class,
]

方法

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加入签名档超简单