PDF Timestamp Adder

The Documentize PDF Timestamp Adder for .NET is a powerful tool designed to add secure timestamps to your PDF documents. It enhances the integrity and authenticity of your documents by providing a trusted time reference, ensuring compliance with digital signature standards.

Key Features:

  • Add Secure Timestamps: Effortlessly add secure timestamps to your PDF documents.
  • Customizable Timestamp Servers: Use custom timestamp server URLs and authentication credentials.
  • Automation: Integrate timestamping into your .NET applications for automated workflows.
  • Compliance: Ensure your documents meet industry standards for digital signatures and timestamps.

How to Add a Timestamp to PDF Documents

To add a secure timestamp to a PDF document, follow these steps:

  1. Create an instance of the Timestamp class.
  2. Create an instance of AddTimestampOptions to configure the timestamping process.
  3. Add the input PDF file using the AddInput method.
  4. Set the output file path using AddOutput.
  5. Execute the timestamping using the Process method.
 1// Instantiate the Timestamp plugin
 2var plugin = new Timestamp();
 3
 4// Configure the timestamping options
 5var opt = new AddTimestampOptions("path_to_pfx", "password_for_pfx", "timestamp_server_url");
 6
 7// Add input PDF file
 8opt.AddInput(new FileDataSource("path_to_pdf"));
 9
10// Specify the output PDF file
11opt.AddOutput(new FileDataSource("path_to_result_pdf"));
12
13// Perform the timestamping process
14plugin.Process(opt);

How to Use Custom Authentication with Timestamp Server

You can provide basic authentication credentials when connecting to the timestamp server. This allows you to authenticate with servers that require a username and password.

  1. Create an instance of the Timestamp class.
  2. Create an instance of AddTimestampOptions, including the serverBasicAuthCredentials.
  3. Add the input file and output file paths.
  4. Call the Process method.
 1// Instantiate the Timestamp plugin
 2var plugin = new Timestamp();
 3
 4// Configure the timestamping options with authentication
 5var opt = new AddTimestampOptions("path_to_pfx", "password_for_pfx", "timestamp_server_url", "username:password");
 6
 7// Add input PDF file
 8opt.AddInput(new FileDataSource("path_to_pdf"));
 9
10// Specify the output PDF file
11opt.AddOutput(new FileDataSource("path_to_result_pdf"));
12
13// Perform the timestamping process
14plugin.Process(opt);

Handling PFX Files and Passwords

The AddTimestampOptions class allows you to use a PFX file for digital signing along with the password.

  • PFX Stream or File Path: You can provide a stream or file path to the PFX file.
  • Password Protection: Ensure you securely manage the password for the PFX file.
 English