Commands


Signing a new document:

Command signature:
pdf:sign
       {pdfPath : The path to the PDF file}
       {pfxPath : The path to the certificate file}
       {password : The certificate password}
       {fileName? : The signed file name}
Example:
php artisan pdf:sign '/example/full/path/to/file.pdf' '/example/full/path/to/certificate.pfx' 'password123' 'MySignedFileName'

Validating a signed document:

Command signature:
pdf:validate-signature
                    {pdfPath : The path to the PDF file}
Example:
php artisan pdf:validate-signature '/example/full/path/to/my/signed-file.pdf'