Skip to content

Commit

Permalink
Merge pull request #3974 from LibreSign/backport/3973/stable29
Browse files Browse the repository at this point in the history
[stable29] chore: feedback improvement
  • Loading branch information
vitormattos authored Nov 15, 2024
2 parents 80fd92a + 65383d0 commit eaf2071
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 eaf2071

Please sign in to comment.