Skip to main content

IncrementalUpdateDocument

Version: 12.0

cete.dynamicpdf.merger.incrementalupdatedocument

IncrementalUpdateDocument​

The IncrementalUpdateDocument class updates the PDF document incrementally by appending the changes after the end of the file.

public class IncrementalUpdateDocument
Public Class IncrementalUpdateDocument

Inheritance: Object → IncrementalUpdateDocument

Licensing Info​

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

Remarks​

Current support is limited to signing as existing signature field and updating existing form field values. Changes will be allowed based to the document's Permission .

Constructors​

IncrementalUpdateDocument(PdfDocument)​

Creates a new instance of an incremental update document by taking the original document as a PdfDocument object.

public IncrementalUpdateDocument(PdfDocument originalDocument)
Public Sub New (originalDocument As PdfDocument)

Parameters​

The source PDF that needs to be updated.

Licensing Info​

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

Properties​

Certified​

Gets a boolean indicating if the document is certified.

public bool Certified { get; }
Public Property Certified As Boolean

Property Value​

Boolean

Licensing Info​

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

Remarks​

For details of the permissions granted while certifying refer to Permission property.

FormFields​

Gets a IncrementalUpdateFormFieldList containing the form fields that support incremental update.

public IncrementalUpdateFormFieldList FormFields { get; }
Public Property FormFields As IncrementalUpdateFormFieldList

Property Value​

IncrementalUpdateFormFieldList

Licensing Info​

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

Exceptions​

MergerException Throws exception if the source PDF document does not allow making changes to the form fields.

Permission​

Gets the permissions granted for the document while certifying. If the document is not certified, the default value will be AllowFormFillingAndAnnotation of CertifyingPermission enum.

public CertifyingPermission Permission { get; }
Public Property Permission As CertifyingPermission

Property Value​

CertifyingPermission

Licensing Info​

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

Remarks​

Refer Certified property to verify if the document is certified.

Methods​

AddPadesLtv()​

Marks the document to add the Document Security Store. All the signed signatures including document timestamp's informations will be embedded.

public void AddPadesLtv()
Sub AddPadesLtv()

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 update all the signed fields to be PAdES-LTV complaint.

Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements.Forms
Imports ceTe.DynamicPDF.Merger
Module MyModuleSub ApplyLTV(sourcePdfPath As String, outputPath As String)
'Create an IncrementalUpdateDocument object using the source PDF that Is being updated incrementally.
'The source document should have the proper permissions to do the updates.
Dim incrementalDocument As IncrementalUpdateDocument = New IncrementalUpdateDocument(New PdfDocument(sourcePdfPath))

'Update all the signed fields to be PAdES-LTV complaint.
incrementalDocument.AddPadesLtv()

'Save the document
incrementalDocument.Draw(outputPath)
End Sub
End Module
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements.Forms;
using ceTe.DynamicPDF.Merger;
class Example
{public static void ApplyLTV(string sourcePdfPath, string outputPath)
{
// Create an IncrementalUpdateDocument object using the source PDF that is being updated incrementally.
// The source document should have the proper permissions to do the updates.
IncrementalUpdateDocument document = new IncrementalUpdateDocument(new PdfDocument(sourcePdfPath));

// Update all the signed fields to be PAdES-LTV complaint.
document.AddPadesLtv();

// Save the document
document.Draw(outputPath);
}
}

Remarks​

This makes the signatures that are already PAdES-Enhanced profile complaint to become PAdES-LTV profile complaint. Only the available information will be embedded.

AddPadesLtv(LtvEmbeddingOption)​

Marks the document to add the Document Security Store. Signatures and informations specified will only be embedded.

public void AddPadesLtv(LtvEmbeddingOption ltvEmbeddingOption)
Sub AddPadesLtv(ltvEmbeddingOption As LtvEmbeddingOption)

Parameters​

Option specifying what signatures and information to embedded.

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 update signed fields to be PAdES-LTV complaint using LtvEmbeddingOption

Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements.Forms
Imports ceTe.DynamicPDF.Merger
Module MyModuleSub ApplyLtvEmbedded(sourcePdfPath As String, outputPath As String)
'Create an IncrementalUpdateDocument object using the source PDF that Is being updated incrementally.
'The source document should have the proper permissions to do the updates.
Dim incrementalDocument As IncrementalUpdateDocument = New IncrementalUpdateDocument(New PdfDocument(sourcePdfPath))

'Update the specified signed fields to be PAdES-LTV complaint.
Dim verificationInformation As VerificationInformation = VerificationInformation.All
Dim sigField() As String = {"string Array of Signature Fields"}
Dim options As LtvEmbeddingOption = New LtvEmbeddingOption(sigField, verificationInformation)
incrementalDocument.AddPadesLtv(options)

'Save the document
incrementalDocument.Draw(outputPath)
End Sub
End Module
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements.Forms;
using ceTe.DynamicPDF.Merger;
class Example
{public static void ApplyLtvEmbedded(string sourcePdfPath, string outputPath)
{
// Create an IncrementalUpdateDocument object using the source PDF that is being updated incrementally.
// The source document should have the proper permissions to do the updates.
IncrementalUpdateDocument incrementalDocument = new IncrementalUpdateDocument(new PdfDocument(sourcePdfPath));

// Update the specified signed fields to be PAdES-LTV complaint.
VerificationInformation verificationInformation = VerificationInformation.All;
string[] sigField = { "string Array of Signature Fields" };
LtvEmbeddingOption option = new LtvEmbeddingOption(sigField, verificationInformation);
incrementalDocument.AddPadesLtv(option);

// Save the document
incrementalDocument.Draw(outputPath);
}
}

Remarks​

This makes the signatures that are already PAdES-Enhanced complaint to become PAdES-LTV complaint. Only the available information will be embedded, even if the options specifies to embedded those.

Draw()​

Outputs the generated document to a byte array.

public Byte[] Draw()
Function Draw() As Byte()

Returns​

The byte arrays of the PDF contents.

Licensing Info​

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

Draw(Stream)​

Outputs the generated document to the given Stream object.

public void Draw(Stream stream)
Sub Draw(stream As Stream)

Parameters​

Stream object that receive the Document output.

Licensing Info​

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

Draw(String)​

Outputs the generated document to a file.

public void Draw(string filePath)
Sub Draw(filePath As String)

Parameters​

The output PDF file path.

Licensing Info​

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

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

Licensing Info​

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

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

Licensing Info​

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

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

Licensing Info​

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

Sign(String, Certificate)​

Marks the document for signing using the specified signature form field name and the Certificate .

public void Sign(string fieldName, Certificate certificate)
Sub Sign(fieldName As String, certificate As Certificate)

Parameters​

Name of the existing signature field.

Reference of type Certificate .

Licensing Info​

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

Examples​

The following example is for incrementally updating and signing the document

Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.Merger
Imports ceTe.DynamicPDF.PageElements.Forms.Signature
Imports ceTe.DynamicPDF.Text

Module MyModule

Sub IncrementalSign(ByVal sourcePdfPath As String, ByVal outPath As String)

' Create an IncrementalUpdateDocument object using the source PDF that is being updated incrementally.
' The source document should have the proper permissions to do the updates.
Dim document As IncrementalUpdateDocument = New IncrementalUpdateDocument(New PdfDocument(sourcePdfPath)) ' Update a form field document.FormFields("name").Value="updated value"
'Create a Certificate from a file.
Dim certificate = New Certificate("c:\MyPersonalCertificate.pfx", "CertificatePassword")

'Sign the document referring the sign field. This Marks the document for signing.
document.Sign("SigFieldName", certificate)

' Save the document
document.Draw(outPath)

End Sub
End Module
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.Merger;

public class Example
{
public static void IncrementalSign(string sourcePdfPath, string outPath)
{
//Create an IncrementalUpdateDocument object using the source PDF that is being updated incrementally. //The source document should have the proper permissions to do the updates.
IncrementalUpdateDocument doc = new IncrementalUpdateDocument(new PdfDocument(sourcePdfPath)); //Update a form field document.FormFields["name"].Value="updated value"
//Create a Certificate from a file.
var certificate = new Certificate(@"c:\MyPersonalCertificate.pfx", "CertificatePassword"");
//Sign the document referring the sign field. This Marks the document for signing.
doc.Sign("SigFieldName", certificate);
// Save the document
doc.Draw(outPath);
}
}

Remarks​

Actual signing happens at the time of creating the PDF content in the Draw method. Signature will be PKCS #7 and covers the complete document contents.

Sign(String, Certificate, IncrementalSignatureAppearance)​

Marks the document for signing using the specified signature form field name, the Certificate and with a customized apperance IncrementalSignatureAppearance .

public void Sign(string fieldName, Certificate certificate, IncrementalSignatureAppearance incrementalSignatureAppearance)
Sub Sign(fieldName As String, certificate As Certificate, incrementalSignatureAppearance As IncrementalSignatureAppearance)

Parameters​

Name of the existing signature field.

Reference of type Certificate .

The IncrementalSignatureAppearance of the signature field that specifies different appearance properties of the signature.

Licensing Info​

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

Examples​

The following example is for incrementally updating and signing the document

Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.Merger
Imports ceTe.DynamicPDF.PageElements.Forms.Signature
Imports ceTe.DynamicPDF.Text

Module MyModule
Sub IncrementalSign(ByVal sourcePdfPath As String, ByVal outPath As String)
' Create an IncrementalUpdateDocument object using the source PDF that is being updated incrementally. ' The source document should have the proper permissions to do the updates.
Dim document As IncrementalUpdateDocument = New IncrementalUpdateDocument(New PdfDocument(sourcePdfPath)) ' Update a form field document.FormFields("name").Value="updated value"
'Creates a Certificate from a file.
Dim certificate = New Certificate("c:\MyPersonalCertificate.pfx", "CertificatePassword")

'Create a IncrementalSignatureAppearance.
Dim appearance As IncrementalSignatureAppearance = New IncrementalSignatureAppearance()
'Applies text color for the left Panel.
appearance.LeftPanel.TextColor = RgbColor.Blue
'Applies font for the Siognature field.
appearance.Font = ceTe.DynamicPDF.Font.TimesRoman

'Sign the document referring the sign field. This Marks the document for signing.
document.Sign("SigFieldName", certificate, appearance)

' Save the document
document.Draw(outPath)
End Sub
End Module
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.Merger;

class Example
{
public static void IncrementalSign(string sourcePdfPath, string outPath)
{
//Create an IncrementalUpdateDocument object using the source PDF that is being updated incrementally.
//The source document should have the proper permissions to do the updates.
IncrementalUpdateDocument doc = new IncrementalUpdateDocument(new PdfDocument(sourcePdfPath));

//Update a form field
document.FormFields["name"].Value = "updated value"

//Creates a Certificate from a file.
var certificate = new Certificate(@"c:\MyPersonalCertificate.pfx", "CertificatePassword");

//Create a IncrementalSignatureAppearance.
IncrementalSignatureAppearance appearance = new IncrementalSignatureAppearance();
//Applies text color for the left Panel.
appearance.LeftPanel.TextColor = RgbColor.Blue;
//Applies font for the Siognature field.
appearance.Font = Font.TimesRoman;

//Sign the document referring the sign field. This Marks the document for signing.
doc.Sign("SigFieldName", certificate, appearance);

// Save the document
doc.Draw(outPath);
}
}

Remarks​

Actual signing happens at the time of creating the PDF content in the Draw method. Signature will be PKCS #7 and covers the complete document contents.

Sign(String, Certificate, TimestampServer)​

Marks the document for signing using the specified signature form field name, the Certificate and a TimestampServer to timestamp the signature.

public void Sign(string fieldName, Certificate certificate, TimestampServer timestampServer)
Sub Sign(fieldName As String, certificate As Certificate, timestampServer As TimestampServer)

Parameters​

Name of the existing signature field.

Reference of type Certificate .

Reference of type TimestampServer that contain the time stamp server details.

Licensing Info​

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

Examples​

The following example is for incrementally updating and signing the document

Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.Merger
Imports ceTe.DynamicPDF.PageElements.Forms.Signature
Imports ceTe.DynamicPDF.Text

Module MyModule
Sub IncrementalSign(ByVal sourcePdfPath As String, ByVal outPath As String)
' Create an IncrementalUpdateDocument object using the source PDF that is being updated incrementally.
' The source document should have the proper permissions to do the updates.
Dim document As IncrementalUpdateDocument = New IncrementalUpdateDocument(New PdfDocument(sourcePdfPath)) ' Update a form field document.FormFields("name").Value="updated value"
'Create a Certificate from a file.
Dim certificate = New Certificate("c:\MyPersonalCertificate.pfx", "CertificatePassword")

'Create TimestampServer
Dim timestampServer As TimestampServer = New TimestampServer("Url of the Timestamp Server")

'Sign the document referring the sign field. This Marks the document for signing.
document.Sign("SigFieldName", certificate, timestampServer)

' Save the document
document.Draw(outPath)
End Sub
End Module
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.Merger;

class Example
{
public static void IncrementalSign(string sourcePdfPath, string outPath)
{
//Create an IncrementalUpdateDocument object using the source PDF that is being updated incrementally.
//The source document should have the proper permissions to do the updates.
IncrementalUpdateDocument doc = new IncrementalUpdateDocument(new PdfDocument(sourcePdfPath));

//Create a Certificate from a file.
var certificate = new Certificate(@"c:\MyPersonalCertificate.pfx", "CertificatePassword");

//Update a form field
document.FormFields["name"].Value = "updated value"

//Create TimestampServer
TimestampServer timestampServer = new TimestampServer("Url of the Timestamp Server");

//Sign the document referring the sign field. This Marks the document for signing.
doc.Sign("SigFieldName", certificate, timestampServer);

// Save the document
doc.Draw(outPath);
}
}

Remarks​

Actual signing happens at the time of creating the PDF content in the Draw method. Signature will be compatible with PAdES-Basic.

Sign(String, Certificate, TimestampServer, IncrementalSignatureAppearance)​

Marks the document for signing using the specified signature form field name, the Certificate , TimestampServer to timestamp the signature with a customized apperance IncrementalSignatureAppearance .

public void Sign(string fieldName, Certificate certificate, TimestampServer timestampServer, IncrementalSignatureAppearance incrementalSignatureAppearance)
Sub Sign(fieldName As String, certificate As Certificate, timestampServer As TimestampServer, incrementalSignatureAppearance As IncrementalSignatureAppearance)

Parameters​

Name of the existing signature field.

Reference of type Certificate .

Reference of type TimestampServer that containes the time stamp server details.

The IncrementalSignatureAppearance of the signature field that specifies different appearance properties of the signature. A null value passed instantiates the appearances with default values.

Licensing Info​

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

Exceptions​

MergerException Throws exception if the source PDF document does not allow making changes to the form fields.

MergerException Throws exception if the source PDF document does not contain the signature field by the specified name.

Examples​

The following example is for incrementally updating and signing the document

Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.Merger
Imports ceTe.DynamicPDF.PageElements.Forms.Signature
Imports ceTe.DynamicPDF.Text.

Module MyModule
Sub IncrementalSign(ByVal sourcePdfPath As String, ByVal outPath As String)
' Create an IncrementalUpdateDocument object using the source PDF that is being updated incrementally.
' The source document should have the proper permissions to do the updates.
Dim document As IncrementalUpdateDocument = New IncrementalUpdateDocument(New PdfDocument(sourcePdfPath)) ' Update a form field document.FormFields("name").Value="updated value"
'Create a Certificate from a file.
Dim certificate = New Certificate("c:\MyPersonalCertificate.pfx", "CertificatePassword")

'Create a IncrementalSignatureAppearance.
Dim appearance As IncrementalSignatureAppearance = New IncrementalSignatureAppearance()
'Applies text color for the left Panel.
appearance.LeftPanel.TextColor = RgbColor.Blue
'Applies font for the Siognature field.
appearance.Font = ceTe.DynamicPDF.Font.TimesRoman

'Create TimestampServer
Dim timestampServer As TimestampServer = New TimestampServer("Url of the Timestamp Server")

'Sign the document referring the sign field. This Marks the document for signing.
document.Sign("SigFieldName", certificate, timestampServer, appearance)

' Save the document
document.Draw(outPath)
End Sub
End Module
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.Merger;

class Example
{
public static void IncrementalSign(string sourcePdfPath, string outPath)
{
//Create an IncrementalUpdateDocument object using the source PDF that is being updated incrementally.
//The source document should have the proper permissions to do the updates.
IncrementalUpdateDocument doc = new IncrementalUpdateDocument(new PdfDocument(sourcePdfPath));

//Update a form field
document.FormFields["name"].Value = "updated value"

//Create a Certificate from a file.
var certificate = new Certificate(@"c:\MyPersonalCertificate.pfx", "CertificatePassword"); //Create a IncrementalSignatureAppearance.
IncrementalSignatureAppearance appearance = new IncrementalSignatureAppearance();
//Applies text color for the left Panel.
appearance.LeftPanel.TextColor = RgbColor.Blue;
//Applies font for the Siognature field.
appearance.Font = Font.TimesRoman;
//Create TimestampServer
TimestampServer timestampServer = new TimestampServer("Url of the Timestamp Server");

//Sign the document referring the sign field. This Marks the document for signing.
doc.Sign("SigFieldName", certificate, timestampServer, appearance);

// Save the document
doc.Draw(outPath);
}
}

Remarks​

Actual signing happens at the time of creating the PDF content in the Draw method. Signature will be compatible with PAdES-Basic.

Sign(String, SigningProvider)​

Marks the document for signing using the specified signature field and an external signing provider like cloud signing.

public void Sign(string fieldName, SigningProvider signingProvider)
Sub Sign(fieldName As String, signingProvider As SigningProvider)

Parameters​

Name of the existing signature field.

Reference of type SigningProvider .

Licensing Info​

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

Examples​

The following example is for incrementally updating the signature field with a third party signing provider.

using ceTe.DynamicPDF;
using ceTe.DynamicPDF.Merger;

class Example
{
public static void IncrementalSign(string source, string outPath)
{
//Create an IncrementalUpdateDocument object using the source PDF that is being updated incrementally.
//The source document should have the proper permissions to do the updates.
IncrementalUpdateDocument document = new IncrementalUpdateDocument(new PdfDocument(source));

//Update a form field
document.FormFields["name"].Value = "updated value"

//Create a Certificate from a file.
var clientCertificate = new X509Certificate2(@"C:\MyPersonalCertificate.pfx", "CertificatePassword");

var certificate = new ceTe.DynamicPDF.GlobalSignCloudSigningProvider("api_key", "api_secret", clientCertificate);
//Input as a JSON string
certificate.IdentityBody = "{\"subject_dn\":{\"common_name\":\"SubjectName \"}}";

//Sign the document referring the sign field. This Marks the document for signing.
document.Sign("SigFieldName", certificate);

// Save the document
document.Draw(outPath);
}
}

Remarks​

Actual signing happens at the time of creating the PDF content in the Draw method.
A document can be either signed or certified or timestamped. For signing or certifying and document timestamp it has to be done through multiple incremental updates.

Sign(String, SigningProvider, IncrementalSignatureAppearance)​

Mark the document for signing using the signature form field name, the SigningProvider and IncrementalSignatureAppearance .

public void Sign(string fieldName, SigningProvider signingProvider, IncrementalSignatureAppearance incrementalSignatureAppearance)
Sub Sign(fieldName As String, signingProvider As SigningProvider, incrementalSignatureAppearance As IncrementalSignatureAppearance)

Parameters​

Name of the existing signature field.

Reference of type SigningProvider .

The IncrementalSignatureAppearance of the signature field that specifies different appearance properties of the signature. A null value passed instantiates the appearances with default values.

Licensing Info​

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

Exceptions​

MergerException Throws exception if the source PDF document does not allow making changes to the form fields.

MergerException Throws exception if the source PDF document does not contain the signature field by the specified name.

Examples​

The following example is for incrementally updating the signature field with a third party signing provider.

using ceTe.DynamicPDF;
using ceTe.DynamicPDF.Merger;

class Example
{
public static void IncrementalSign(string source, string outPath)
{
//Create an IncrementalUpdateDocument object using the source PDF that is being updated incrementally.
//The source document should have the proper permissions to do the updates.
IncrementalUpdateDocument document = new IncrementalUpdateDocument(new PdfDocument(source));

//Update a form field
document.FormFields["name"].Value = "updated value"

//Create a Certificate from a file.
var clientCertificate = new X509Certificate2(@"C:\MyPersonalCertificate.pfx", "CertificatePassword");

var certificate = new ceTe.DynamicPDF.GlobalSignCloudSigningProvider("api_key", "api_secret", clientCertificate);
//Input as a JSON string
certificate.IdentityBody = "{\"subject_dn\":{\"common_name\":\"SubjectName \"}}"; //Create a IncrementalSignatureAppearance. IncrementalSignatureAppearance appearance = new IncrementalSignatureAppearance();
//Applies text color for the left Panel.
appearance.LeftPanel.TextColor = RgbColor.Blue;
//Applies font for the Siognature field.
appearance.Font = Font.TimesRoman;
//Sign the document referring the sign field. This Marks the document for signing.
document.Sign("SigFieldName", certificate, appearance);

// Save the document
document.Draw(outPath);
}
}

Remarks​

Actual signing happens at the time of creating the PDF content in the Draw method.
A document can be either signed or certified or timestamped. For signing or certifying and document timestamp it has to be done through multiple incremental updates.

Timestamp(String, SigningProvider)​

Marks the document to add a timestamp to the existing signature filed.

public void Timestamp(string signatureFieldName, SigningProvider signingProvider)
Sub Timestamp(signatureFieldName As String, signingProvider As SigningProvider)

Parameters​

Name of a signature field that is already exsit in the document.

Signing provider to be used for timestamping the document.

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 Incrementally Timestamp the PDF with External Sign Provider.

Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements.Forms
Imports ceTe.DynamicPDF.Merger
Module MyModuleSub UpdatePdfTimeStampExternalSignProvider(sourcePdfPath As String, outputPath As String, externalSigningProviderWithTimeStamp As SigningProvider)
'Create an IncrementalUpdateDocument object using the source PDF that Is being updated incrementally.
'The source document should have the proper permissions to do the updates.
Dim incrementalDocument As IncrementalUpdateDocument = New IncrementalUpdateDocument(New PdfDocument(sourcePdfPath))

'Specifying External Signing Provider for Timestamping.
incrementalDocument.Timestamp("SignField", externalSigningProviderWithTimeStamp)

'Save the document
incrementalDocument.Draw(outputPath)
End Sub
End Module
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements.Forms;
using ceTe.DynamicPDF.Merger;
class Example
{public static void UpdatePdfTimeStampExternalSignProvider(string sourcePdfPath, string outputPath, SigningProvider externalSigningProviderWithTimeStamp)
{
// Create an IncrementalUpdateDocument object using the source PDF that is being updated incrementally.
// The source document should have the proper permissions to do the updates.
IncrementalUpdateDocument incrementalDocument = new IncrementalUpdateDocument(new PdfDocument(sourcePdfPath));

// Specifying External Signing Provider for Timestamping.
incrementalDocument.Timestamp("SigningField", externalSigningProviderWithTimeStamp);

// Save the document
incrementalDocument.Draw(outputPath);
}
}

Remarks​

Actual timestamping happens at the time of creating the PDF content in the Draw method.
A document can be either signed or certified or timestamped. For signing or certifying and document timestamp it has to be done through multiple incremental updates.

Timestamp(String, TimestampServer)​

Marks the document to add a timestamp to the existing signature filed.

public void Timestamp(string signatureFieldName, TimestampServer timestampServer)
Sub Timestamp(signatureFieldName As String, timestampServer As TimestampServer)

Parameters​

Name of a signature field that is already exsit in the document.

Timestamp server to be used for timestamping the document.

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 Incrementally Timestamp the PDF with TImeStamp Server

Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements.Forms
Imports ceTe.DynamicPDF.Merger
Module MyModuleSub UpdatePdfTimeStampServer(sourcePdfPath As String, outputPath As String)
'Create an IncrementalUpdateDocument object using the source PDF that Is being updated incrementally.
'The source document should have the proper permissions to do the updates.
Dim incrementalDocument As IncrementalUpdateDocument = New IncrementalUpdateDocument(New PdfDocument(sourcePdfPath))

'Specifying TimeStamp Server URL for Timestamping.
Dim timestampServer As TimestampServer = New TimestampServer("TimeStamp Server URL")
incrementalDocument.Timestamp("SignField", timestampServer)

'Save the document
incrementalDocument.Draw(outputPath)
End Sub
End Module
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements.Forms;
using ceTe.DynamicPDF.Merger;
class Example
{public static void UpdatePdfTimeStampServer(string sourcePdfPath, string outputPath)
{
// Create an IncrementalUpdateDocument object using the source PDF that is being updated incrementally.
// The source document should have the proper permissions to do the updates.
IncrementalUpdateDocument incrementalDocument = new IncrementalUpdateDocument(new PdfDocument(sourcePdfPath));

// Specifying TimeStamp Server URL for Timestamping.
TimestampServer timestampServer = new TimestampServer("TimeStamp Server URL");
incrementalDocument.Timestamp("SigningField", timestampServer);

// Save the document
incrementalDocument.Draw(outputPath);

}
}

Remarks​

Actual timestamping happens at the time of creating the PDF content in the Draw method.
A document can be either signed or certified or timestamped. For signing or certifying and document timestamp it has to be done through multiple incremental updates.

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

Licensing Info​

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

See Also​

ceTe.DynamicPDF.Merger