Class

PDFSignature

PDF


Description

A control that provide a way for the user to sign the created PDF Document using a digital certificate.

Properties

Name

Type

Read-Only

Shared

FontSize

Integer

Height

Integer

Name

String

Page

Integer

Width

Integer

X

Integer

Y

Integer

Methods

Name

Parameters

Returns

Shared

Constructor

pageNumber As Integer, x As Integer, y As Integer, width As Integer, height As Integer, name As String, value As String = ""

Property descriptions


PDFSignature.FontSize

FontSize As Integer

The size of the text of the control.


PDFSignature.Height

Height As Integer

The height of the signature control.


PDFSignature.Name

Name As String

The name of the signature control.


PDFSignature.Page

Page As Integer

The number of the page upon which the signature control appears.


PDFSignature.Width

Width As Integer

The width of the signature control.


PDFSignature.X

X As Integer

The horizontal location of the top left corner of the signature control.


PDFSignature.Y

Y As Integer

The vertical location of the top left corner of the signature control.

Method descriptions


PDFSignature.Constructor

Constructor(pageNumber As Integer, x As Integer, y As Integer, width As Integer, height As Integer, name As String, value As String = "")

Note

Constructors are special methods called when you create an object with the New keyword and pass in the parameters above.

Creates an instance of the control with the values passed.

Notes

Lastly, and as it happens with many other features of the PDF format specification, the ability to digitally sign the PDF documents created with the PDFDocument class is up to the PDF viewer you use. For example, the free app Adobe Acrobat Reader does support this feature, while that is not the case with the Preview app provided by macOS.

Sample code

This example adds a PDFSignature to an existing PDFDocument object stored in the variable pdfDoc:

Var signature As New PDFSignature(1, 100, 100, 300, 200, "signature")
pdfDoc.AddControl(signature)

Compatibility

Project Types

Console, Desktop, Mobile, Web

Operating Systems

iOS, Linux, macOS, Windows

See also

PDFControl parent class; PDFDocument class.