Skip to content

Commit

Permalink
Merge pull request #3973 from LibreSign/chore/feedbkack-improvement
Browse files Browse the repository at this point in the history
chore: feedback improvement
  • Loading branch information
vitormattos authored Nov 15, 2024
2 parents 72e10ac + 5b254e1 commit af57a40
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 af57a40

Please sign in to comment.