IncrementalUpdateDocument.Timestamp
Overloads
Timestamp(String, SigningProvider) | Marks the document to add a timestamp to the existing signature filed. |
Timestamp(String, TimestampServer) | Marks the document to add a timestamp to the existing signature filed. |
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
- signatureFieldName
- String
Name of a signature field that is already exsit in the document.
- signingProvider
- SigningProvider
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:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
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 MyModule
Sub 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
- signatureFieldName
- String
Name of a signature field that is already exsit in the document.
- timestampServer
- TimestampServer
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:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Examples
This example shows how to Incrementally Timestamp the PDF with TImeStamp ServerImports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements.Forms
Imports ceTe.DynamicPDF.Merger
Module MyModule
Sub 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.