PreviousNext
Help > Programming with LAUNCHER Office > LNCCMD commands > Commands list > PDFSIGN command
PDFSIGN command

 Allows to sign an existing PDF with a  PFX/P12/PKCS#12 cerificate.

 

Syntax

 

CHGVAR

VAR(&CMD) VALUE('PDFSIGN')

CHGVAR

VAR(&PARM1) VALUE('
File="PDF file to sign"
;Certificate="Complete path of the certificate"

;SaveAs="Complete path of the signed PDF" 
;PWD="Password of the certificate"

;SignedBy="Name that appears on signature"

;Reason="Reason that appears on signature"

;Location="Physical location of the person who signs the PDF"

[;ImageFile= "Full path of the file containing the JPG image that is associated with the signature"]
[;PageNumber= Page number on which to insert the signature]
[;HorzPos= Horizontal position of the digital signature]

 [;VertPos= Vertical position of the digital signature]
 [;Zoom= increase (positive value) or decrease (negative  value) image with x percent]
')

CHGVAR

VAR(&PARM2) VALUE(' ')

CALL

PGM(LNCCMD) PARM(&HANDLE &CMD &OPT &PARM1 +

&PARM2 &RESULT)

 

 

Parameters

 

Paramètres

 

Parm1
ou
Parm2

File : PDF file to sign.

 

Certificate: Complete path of the certificate with the following format : PFX/P12/PKCS#12.

 

PWD: Password of the certificate.

 

SaveAs: Complete path of the signed PDF.

 

SignedBy: Name that appears on signature.

 

Reason: Reason that appears on signature.

 

Location : Physical location of the person who signs the PDF.

 

ImageFile : Full path of the file containing the image that is associated with the signature (optional). JPG format mandatory.

 

PageNumber : Page number on which to insert the signature (optional). By default, the signature is inserted on page 1.

 

HorzPos : Horizontal position of the digital signature (optional). By default HorzPos = 0.

 

VertPos : Vertical position of the digital signature (optional). By default VertPos = 0.

 

Zoom : increase (positive value) or decrease (negative  value) image with x percent (optional). By default Zoom = -50.

 

 

 

 

Example

 

 LNCCMD     CMD(PDFSIGN) +                                  

              PARM1('FILE="C:\A\PDF_test\resultat.pdf";Sa+  

              veAs="C:\A\PDF_test\resultat_IM2.pdf";Signe+  

              dBy="AURA";Reason="Approve";Location="NICE"+  

              ;certificate="C:\temp\aura.p12";PWD="aura";+  

              ImageFile="C:\temp\logo.jpg"')