File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public function sign(JSignParam $params)
2727 exec ($ commandSign , $ output );
2828
2929 $ out = json_encode ($ output );
30- $ messageSuccess = "INFO Finished: Signature succesfully created. " ;
30+ $ messageSuccess = "Finished: Signature succesfully created. " ;
3131 $ isSigned = strpos ($ out , $ messageSuccess ) !== false ;
3232
3333 $ this ->throwIf (!$ isSigned , "Error to sign PDF. $ out " );
@@ -93,7 +93,7 @@ private function commandSign(JSignParam $params)
9393 }
9494 $ this ->throwIf (!file_exists ($ jSignPdf ), 'Jar of JSignPDF not found on path: ' . $ jSignPdf );
9595
96- return "$ java -jar $ jSignPdf $ pdf -ksf $ certificate -ksp ' {$ params ->getPassword ()}' {$ params ->getJSignParameters ()} -d {$ params ->getPathPdfSigned ()}" ;
96+ return "$ java -jar $ jSignPdf $ pdf -ksf $ certificate -ksp ' {$ params ->getPassword ()}' {$ params ->getJSignParameters ()} -d {$ params ->getPathPdfSigned ()} 2>&1 " ;
9797 }
9898
9999 private function javaCommand (JSignParam $ params )
You can’t perform that action at this time.
0 commit comments