<?php
use Illuminate\Http\Request;
class ExampleController() {
public function dummyFunction(Request $request){
try {
signPdfFromFile('path/to/certificate.pfx', 'password', 'path/to/pdf/file.pdf');
} catch (\Throwable $th) {
}
try {
signPdfFromUpload($request->pfxUploadedFile, $request->password, 'path/to/pdf/file.pdf');
} catch (\Throwable $th) {
}
try {
$encriptedCertificate = encryptCertData('path/to/certificate.pfx', 'password');
} catch (\Throwable $th) {
}
try {
decryptCertData($encriptedCertificate->hash, $encriptedCertificate->certificate, $encriptedCertificate->password);
} catch (\Throwable $th) {
}
try {
validatePdfSignature('path/to/pdf/file.pdf');
} catch (\Throwable $th) {
}
}
}