PdfSecurityManagerAddSignatureField(String, String, String, Int32, RectangleF) Method |
Adds an empty signature field to a PDF document, to be signed later with the Sign methods: a Sign call with
the same signature name signs this field, at its position. Add the fields of the later signers before
certifying a document: a certification allows signing the existing fields, not adding new ones.
Namespace: ExpertPdf.PDFSecurityAssembly: epsecurepdf (in epsecurepdf.dll) Version: 10.0
Syntaxpublic void AddSignatureField(
string sourcePdf,
string destPdf,
string fieldName,
int pageIndex,
RectangleF bounds
)
Public Sub AddSignatureField (
sourcePdf As String,
destPdf As String,
fieldName As String,
pageIndex As Integer,
bounds As RectangleF
)
Parameters
- sourcePdf String
- The PDF document full path. A password-protected source is opened with SourcePdfPassword.
- destPdf String
- The full path of the document with the new field.
- fieldName String
- The name of the signature field. It must not exist in the document.
- pageIndex Int32
- The index of the page of the field (0 for the first page).
- bounds RectangleF
- The position and size of the field on the page, in points from the top left corner.
Exceptions| Exception | Condition |
|---|
| SecurePdfException | The document cannot be opened or written, the page index is not valid, a
field with this name exists, or the document is signed (a new field would invalidate its signatures). |
See Also