Skip to content

Commit

Permalink
Merge pull request #3696 from LibreSign/backport/3693/stable29
Browse files Browse the repository at this point in the history
[stable29] chore: validation setup improvement
  • Loading branch information
vitormattos authored Sep 14, 2024
2 parents 4e2def4 + 0e75ab6 commit 6c850e5
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 @@ -577,6 +577,9 @@ private function getPdfToSign(FileEntity $fileData, File $originalFile): File {

$javaPath = $this->appConfig->getAppValue('java_path');
$pdftkPath = $this->appConfig->getAppValue('pdftk_path');
if (!file_exists($javaPath) || !file_exists($pdftkPath)) {
throw new LibresignException($this->l10n->t('The admin hasn\'t set up LibreSign yet, please wait.'));
}
$pdf = new Pdf();
$command = new Command();
$command->setCommand($javaPath . ' -jar ' . $pdftkPath);
Expand Down

0 comments on commit 6c850e5

Please sign in to comment.