Skip to content

Commit

Permalink
chore: feedback improvement
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Nov 15, 2024
1 parent 80fd92a commit 65383d0
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 @@ -587,6 +587,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 65383d0

Please sign in to comment.