Skip to content

Commit

Permalink
chore: feedback improvement
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos committed Nov 15, 2024
1 parent 72e10ac commit 5b254e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Service/SignFileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,9 @@ private function getPdfToSign(FileEntity $fileData, File $originalFile): File {
$pdf->addFile($dest);
$buffer = $pdf->stamp($background)
->toString();
if (!is_string($buffer)) {
throw new LibresignException('Failed to merge the PDF with the footer. The PDF was not successfully created with the footer.');
}
} else {
$buffer = $originalFile->getContent();
}
Expand Down

0 comments on commit 5b254e1

Please sign in to comment.