Skip to content

Commit

Permalink
Merge pull request #22 from JSignPdf/fix/set-user-language-hardcoded
Browse files Browse the repository at this point in the history
fix: set user language hardcoded
  • Loading branch information
vitormattos authored Dec 12, 2024
2 parents 3596031 + 9f3d2f0 commit 5e0a028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sign/JSignService.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private function commandSign(JSignParam $params)
$this->throwIf(!file_exists($jSignPdf), 'Jar of JSignPDF not found on path: '. $jSignPdf);

$password = escapeshellarg($params->getPassword());
return "$java -jar $jSignPdf $pdf -ksf $certificate -ksp {$password} {$params->getJSignParameters()} -d {$params->getPathPdfSigned()} 2>&1";
return "$java -Duser.language=en -jar $jSignPdf $pdf -ksf $certificate -ksp {$password} {$params->getJSignParameters()} -d {$params->getPathPdfSigned()} 2>&1";
}

private function javaCommand(JSignParam $params)
Expand Down

0 comments on commit 5e0a028

Please sign in to comment.