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.
How to Add a Timestamp to PDF
To add a secure timestamp to a PDF document, follow these steps:
- Create an instance of
AddTimestampOptions
to configure the timestamping process. - Add the input PDF file using the
AddInput
method. - Set the output file path using
AddOutput
. - Execute the timestamping using the
Process
method.
1// Configure the timestamping options
2var options = new AddTimestampOptions("path_to_pfx", "password_for_pfx", "timestamp_server_url");
3
4// Add input PDF file
5options.AddInput(new FileDataSource("path_to_pdf"));
6
7// Specify the output PDF file
8options.AddOutput(new FileDataSource("path_to_result_pdf"));
9
10// Perform the timestamping process
11Timestamp.Process(options);
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.
- Create an instance of
AddTimestampOptions
, including theserverBasicAuthCredentials
. - Add the input file and output file paths.
- Call the
Process
method.
1// Configure the timestamping options with authentication
2var options = new AddTimestampOptions("path_to_pfx", "password_for_pfx", "timestamp_server_url", "username:password");
3
4// Add input PDF file
5options.AddInput(new FileDataSource("path_to_pdf"));
6
7// Specify the output PDF file
8options.AddOutput(new FileDataSource("path_to_result_pdf"));
9
10// Perform the timestamping process
11Timestamp.Process(options);
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.
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.