Skip to content

Commit

Permalink
chore: validation setup improvement
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Mattos <[email protected]>
  • Loading branch information
vitormattos authored and backportbot-libresign[bot] committed Sep 14, 2024
1 parent 4e2def4 commit 0e75ab6
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 0e75ab6

Please sign in to comment.