Document.Certify

Overloads

Certify(String, Certificate, Boolean, CertifyingPermission)Certifies with signing and Time stamping the document digitally.
Certify(String, Certificate, CertifyingPermission)Certifies with signing the document digitally.
Certify(String, Certificate, TimestampServer, CertifyingPermission)Certifies with signing and Time stamping the document digitally.
Certify(String, SigningProvider, CertifyingPermission)Certifies with signing and Time stamping the document digitally.

Certify(String, Certificate, Boolean, CertifyingPermission)

Certifies with signing and Time stamping the document digitally.

public void Certify(string fieldName, Certificate certificate, bool timeStamp, CertifyingPermission permission)
public Sub Certify(fieldName As String, certificate As Certificate, timeStamp As Boolean, permission As CertifyingPermission)

Parameters

fieldName
String

Field name of the signature.

certificate
Certificate

Reference of type Certificate .

timeStamp
Boolean

Timestamp the document using details from the certificate.

permission
CertifyingPermission

CertifyingPermission for the signature.

Licensing Info

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples

This example shows how to certify a PDF document with an invisible signature and Timestamp the signature.
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
    
Module MyModule
    
    Sub Main()
        'Create a PDF Document
        Dim document As Document = New Document
    
        'Create a Page
        Dim page As Page = New Page
    
        ' Add the page to the document
        document.Pages.Add(page)
    
        'Create a Certificate using the system default store
        Dim certificate As Certificate = New Certificate("CertificateSubject")
    
        ' Certify the document - Invisible and mention to Timestamp the signature
        document.Certify("NewFieldName", certificate, True, CertifyingPermission.AllowFormFilling)
        ' Save the document
        document.Draw("C:\MyCertifiedDocument.pdf")
    End Sub
End Module
using System;
using ceTe.DynamicPDF;
      
class MyClass
{
    static void Main(string[] args)
    {
        // Create a PDF Document
        Document document = new Document();
      
        // Create a PDF Page
        Page page = new Page();
      
        // Add the page to the document
        document.Pages.Add(page);
      
        // Create a Certificate using the system default store
        Certificate certificate = new Certificate("CertificateSubject");
             
        // Certify the document - Invisible and mention to Timestamp the signature
        document.Certify("NewFieldName", certificate, true, CertifyingPermission.AllowFormFilling);
      
        // Save the document
        document.Draw(@"C:\MyCertifiedDocument.pdf");        
    }
}

Remarks

This method is not available for .NET standard.

Certify(String, Certificate, CertifyingPermission)

Certifies with signing the document digitally.

public void Certify(string fieldName, Certificate certificate, CertifyingPermission permissions)
public Sub Certify(fieldName As String, certificate As Certificate, permissions As CertifyingPermission)

Parameters

fieldName
String

Field name of the signature.

certificate
Certificate

Reference of type Certificate .

permissions
CertifyingPermission

CertifyingPermission for the signature.

Licensing Info

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples

This example shows how to certify a PDF document with an invisible signature.
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
        
Module MyModule
        
    Sub Main()
        'Create a PDF Document
        Dim document As Document = New Document
        
        'Create a Page
        Dim page As Page = New Page
        
        ' Add the page to the document
        document.Pages.Add(page)
        
        'Create a Certificate using the system default store
        Dim certificate As Certificate = New Certificate("Certificate Subject")
        
        ' Certify the document - Invisible
        document.Certify("NewFieldName", certificate, CertifyingPermission.AllowFormFilling)
        
        ' Save the document
        document.Draw("C:\MyCertifiedDocument.pdf")
    End Sub
End Module
using System;
using ceTe.DynamicPDF;
          
class MyClass
{
    static void Main(string[] args)
    {
        // Create a PDF Document
        Document document = new Document();
          
        // Create a PDF Page
        Page page = new Page();
          
        // Add the page to the document
        document.Pages.Add(page);
          
        // Create a Certificate using the system default store
        Certificate certificate = new Certificate("Certificate Subject");
                 
        // Certify the document - Invisible
        document.Certify("NewFieldName", certificate, CertifyingPermission.AllowFormFilling);
          
        // Save the document
        document.Draw(@"C:\MyCertifiedDocument.pdf");        
    }
}

Remarks

This method is not available for .NET standard.

Certify(String, Certificate, TimestampServer, CertifyingPermission)

Certifies with signing and Time stamping the document digitally.

public void Certify(string fieldName, Certificate certificate, TimestampServer timestampServer, CertifyingPermission permission)
public Sub Certify(fieldName As String, certificate As Certificate, timestampServer As TimestampServer, permission As CertifyingPermission)

Parameters

fieldName
String

Field name of the signature.

certificate
Certificate

Reference of type Certificate .

timestampServer
TimestampServer

Reference of type TimestampServer .

permission
CertifyingPermission

CertifyingPermission for the signature.

Licensing Info

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples

This example shows how to certify a PDF document with an invisible signature and Timestamp the signature.
Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements
    
Module MyModule
    
    Sub Main()
        'Create a PDF Document
        Dim document As Document = New Document
    
        'Create a Page
        Dim page As Page = New Page
    
        ' Add the page to the document
        document.Pages.Add(page)
    
        'Create a Certificate using the system default store
        Dim certificate As Certificate = New Certificate("CertificateSubject")
    
        'Create a TimestampServer by passing the Url of the server.
        Dim timestampServer As TimestampServer = New TimestampServer("http://TimestampServerURL")
    
'        Certify and timestamp the document - Invisible
        document.Certify("NewFieldName", certificate, timestampServer, CertifyingPermission.AllowFormFilling)
    
        ' Save the document
        document.Draw("C:\MyCertifiedDocument.pdf")
    End Sub
End Module
using System;
using ceTe.DynamicPDF;
      
class MyClass
{
    static void Main(string[] args)
    {
        // Create a PDF Document
        Document document = new Document();
      
        // Create a PDF Page
        Page page = new Page();
      
        // Add the page to the document
        document.Pages.Add(page);
      
        // Create a Certificate using the system default store
        Certificate certificate = new Certificate("CertificateSubject");
             
        // Create a TimestampServer by passing the Url of the server.
        TimestampServer timestampServer = new TimestampServer("http://TimestampServerURL");
     
        // Certify and timestamp the document - Invisible
        document.Certify("NewFieldName", certificate, timestampServer, CertifyingPermission.AllowFormFilling);
      
        // Save the document
        document.Draw(@"C:\MyCertifiedDocument.pdf");        
    }
}

Remarks

This method is not available for .NET standard.

Certify(String, SigningProvider, CertifyingPermission)

Certifies with signing and Time stamping the document digitally.

public void Certify(string fieldName, SigningProvider externalSigningProvider, CertifyingPermission permission)
public Sub Certify(fieldName As String, externalSigningProvider As SigningProvider, permission As CertifyingPermission)

Parameters

fieldName
String

Field name of the signature.

externalSigningProvider
SigningProvider

Reference of type SigningProvider .

permission
CertifyingPermission

CertifyingPermission for the signature.

Licensing Info

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Remarks

This method is not available for .NET standard.

See Also

Document
ceTe.DynamicPDF

In this topic