Skip to content

Usage: 3) Validating signature

Lucas Nepomuceno edited this page Jul 29, 2021 · 2 revisions

1 - Validating signature

<?php

use Illuminate\Http\Request;
use App\Models\Certificate;
use LSNepomuceno\LaravelA1PdfSign\ValidatePdfSignature;

class ExampleController() {
    public function dummyFunction(Request $request){
        // Returning signed resource string
        try {
            dd(ValidatePdfSignature::from('path/to/pdf/file.pdf');
        } catch (\Throwable $th) {
            // TODO necessary
        }
    }
}

2 - The expected result will be as shown below.

signed fluent

3 - The expected result in Adobe Acrobat/Reader will be as shown below.

Signed File

For Brazilian users

Is possible to validate the signature through the government's ITI service.

Just access the address https://verificador.iti.gov.br/

The expected result will be as shown below.

icp-brasil-validation