PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Properties specific to the description of pdfSignature variables
  • Visible or invisible signature
  • Functions that use the pdfSignature variables
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
pdfSignature (Type of variable)
In French: pdfSignature
The pdfSignature type is used to define the advanced characteristics of the signature that will be applied to a PDF file when signing an existing PDF (via PDFSign).
The characteristics of this signature can be defined and modified by several WLanguage properties.
The pdfSignature type is used to define the advanced characteristics of the signature that will be applied to a PDF file: The characteristics of this signature can be defined and modified by several WLanguage properties.
Note: See Declaring a variable for more details.
Example
MySignature is pdfSignature
MySignature..Certificate = CertificateLoad("test.pfx", "pwd")[1]
MySignature..Caption = "Signed by test"
PDFSign("MyPDFFile.pdf", MySignature)
Remarks

Properties specific to the description of pdfSignature variables

The following properties can be used to handle the signature of a PDF file:
Property nameType usedEffect
BackgroundBrushInteger constantPattern used to fill the signature border.
  • iCrossed: Crossed brush.
  • iDiagonalCrossed: Brush crossed diagonally.
  • iDownwardDiagonal: Downward diagonal brush.
  • iUpwardDiagonal: Upward diagonal brush.
  • iHorizontal: Horizontal brush.
  • iSolid (default value): Solid brush.
  • iVertical: Vertical brush.
HorizontalAlignmentInteger constantHorizontal alignment of signature text:
  • iCenterH: Text horizontally centered.
  • iLeft (default value): Text aligned to left.
  • iRight: Text aligned to right.
VerticalAlignmentInteger constantVertical alignment of signature text:
  • iBottom: Text aligned at bottom.
  • iCenterV: Text vertically centered.
  • iTop (default value): Text aligned at top
BorderBorder variableDescription of signature border.
CertificateCertificate variableCertificate used to sign the PDF.
BrushColorInteger constantBackground color used for the signature area. This parameter can correspond to:
HeightRealHeight of signature rectangle in the page (in millimeters). This height must be greater than 0.
ImageImage variableImage of signature.
For an invisible signature, this property and ..Caption must not be specified.
WidthRealWidth of signature rectangle in the page (in millimeters). This width must be greater than 0.
CaptionCharacter stringTexte of signature.
For an invisible signature, this property and ..Image must not be specified. ..Caption can also correspond to an empty string.
OpacityIntegerOopacity of background color in the signature area. Value included between 0 and 100:
  • 0: Transparent background,
  • 100: Opaque background.
PageIntegerNumber of the page where the signature is displayed. This property is set to 0 by default (which means that the signature is displayed at the end of document).
XRealX coordinate of the position of the signature area in the page (in millimeters)
YRealY coordinate of the position of the signature area in the page (in millimeters)
Note: These properties can be handled by using one of the following syntaxes:
  • <Variable Name>..<Property Name>
  • <Variable Name>.<Property Name>

Visible or invisible signature

If ..Caption and ..Image are not specified, the signature will be invisible: the document will be signed and a blue bar will be displayed by Adobe Reader but the signature will not be visible in the document.
Otherwise, the signature will appear in the document with the parameters specified by the different properties of the pdfSignature type.

Functions that use the pdfSignature variables

Versions 21 and later
iPrintSignature
New in version 21
iPrintSignature
iPrintSignature
Prints a signature in a rectangular area. This signature will be used to sign the generated PDF files or the duplicates
Versions 22 and later
PDFSign
New in version 22
PDFSign
PDFSign
Applies a signature to an existing PDF.
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment