Document.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 Timestamp the PDF with External Sign Provider.Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements.Forms
Imports ceTe.DynamicPDF.Merger
Module MyModule
Sub CreatePDFTimeStampSigningProvider(outPath As String, externalSigningProviderWithTimeStamp As SigningProvider)
Dim document As Document = New Document()
Dim page As Page = New Page()
document.Pages.Add(page)
'Add a signature field to the page
Dim signature As Signature = New Signature("SignField", 10, 110, 100, 100)
page.Elements.Add(signature)
'Specifying External Signing Provider for Timestamping.
document.Timestamp("SignField", externalSigningProviderWithTimeStamp)
'Save the document
document.Draw(outPath)
End Sub
End Module
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements.Forms;
using ceTe.DynamicPDF.Merger;
class Example
{
public static void CreatePDFTimeStampSigningProvider(string outPath, SigningProvider externalSigningProviderWithTimeStamp)
{
Document document = new Document();
Page page = new Page();
document.Pages.Add(page);
// Add a signature field to the page
Signature signature = new Signature("SigFieldName", 10, 110, 100, 100);
page.Elements.Add(signature);
// Specifying External Signing Provider for Timestamping.
document.Timestamp("SigningField", externalSigningProviderWithTimeStamp);
// Save the document
document.Draw(outPath);
}
}
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 Timestamp the PDF with timestamp server.Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.PageElements.Forms
Imports ceTe.DynamicPDF.Merger
Module MyModule
Sub CreatePDFTimeStampServer(outpath As String)
Dim document As Document = New Document()
Dim page As Page = New Page()
document.Pages.Add(page)
'Add a signature field to the page
Dim signature As Signature = New Signature("SignField", 10, 110, 100, 100)
page.Elements.Add(signature)
'Specifying TimeStamp Server URL for Timestamping.
Dim timestampServer As TimestampServer = New TimestampServer("TimeStamp Server URL")
document.Timestamp("SignField", timestampServer)
'Save the document
document.Draw(outpath)
End Sub
End Module
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.PageElements.Forms;
using ceTe.DynamicPDF.Merger;
class Example
{
public static void CreatePDFTimeStampServer(string outPath)
{
Document document = new Document();
Page page = new Page();
document.Pages.Add(page);
// Add a signature field to the page
Signature signature = new Signature("SigningField", 10, 110, 100, 100);
page.Elements.Add(signature);
// Specifying TimeStamp Server URL for Timestamping.
TimestampServer timestampServer = new TimestampServer("TimeStamp Server URL");
document.Timestamp("SigningField", timestampServer);
// Save the document
document.Draw(outPath);
}
}
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.