Method TimestampAndSave
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
TimestampAndSave(PdfSignatureTimestampOptions, string)
Timestamps the document using the specified timestamp authority. Then saves the document to the file with the specified name.
public void TimestampAndSave(PdfSignatureTimestampOptions timestampOptions, string fileName)
Parameters
timestampOptions
PdfSignatureTimestampOptionsThe options for the document timestamp. The authority URL must not be
null
.fileName
stringThe name of the file to save the timestamped document to.
Remarks
A document timestamp establishes the exact contents of the complete PDF file at the time indicated in the timestamp token. Document timestamps allow to produce PAdES B-LTA signatures.
Document timestamps differ from signature timestamps. A signature timestamp proves the integrity of a specific digital signature. Use the Timestamp property to add signature timestamps.
Document timestamping will cause document to be saved using at least version 1.7 of the PDF standard with ESIC Extension Level 5.
This method uses the default save options. Use TimestampAndSave(PdfSignatureTimestampOptions, string, PdfSaveOptions) overload to specify custom save options.
Read the Save options section to know more about the cases when you may need to override the default options.
Exceptions
- ArgumentException
The timestamp authority URL is null.
TimestampAndSave(PdfSignatureTimestampOptions, string, PdfSaveOptions)
Timestamps the document using the specified timestamp authority. Then saves the document to the file with the specified name.
public void TimestampAndSave(PdfSignatureTimestampOptions timestampOptions, string fileName, PdfSaveOptions saveOptions)
Parameters
timestampOptions
PdfSignatureTimestampOptionsThe options for the document timestamp. The authority URL must not be
null
.fileName
stringThe name of the file to save the timestamped document to.
saveOptions
PdfSaveOptionsThe save options to use.
Remarks
A document timestamp establishes the exact contents of the complete PDF file at the time indicated in the timestamp token. Document timestamps allow to produce PAdES B-LTA signatures.
Document timestamps differ from signature timestamps. A signature timestamp proves the integrity of a specific digital signature. Use the Timestamp property to add signature timestamps.
Document timestamping will cause document to be saved using at least version 1.7 of the PDF standard with ESIC Extension Level 5.
Read the Save options section to know more about the cases when you may need to override the default options.
Exceptions
- ArgumentException
The timestamp authority URL is null.
TimestampAndSave(PdfSignatureTimestampOptions, Stream)
Timestamps the document using the specified timestamp authority. Then saves the document to the specified stream.
public void TimestampAndSave(PdfSignatureTimestampOptions timestampOptions, Stream stream)
Parameters
timestampOptions
PdfSignatureTimestampOptionsThe options for the document timestamp. The authority URL must not be
null
.stream
StreamThe stream to save the timestamped document to.
Remarks
A document timestamp establishes the exact contents of the complete PDF file at the time indicated in the timestamp token. Document timestamps allow to produce PAdES B-LTA signatures.
Document timestamps differ from signature timestamps. A signature timestamp proves the integrity of a specific digital signature. Use the Timestamp property to add signature timestamps.
Document timestamping will cause document to be saved using at least version 1.7 of the PDF standard with ESIC Extension Level 5.
This method uses the default save options. Use TimestampAndSave(PdfSignatureTimestampOptions, Stream, PdfSaveOptions) overload to specify custom save options.
Read the Save options section to know more about the cases when you may need to override the default options.
Exceptions
- ArgumentException
The timestamp authority URL is null.
TimestampAndSave(PdfSignatureTimestampOptions, Stream, PdfSaveOptions)
Timestamps the document using the specified timestamp authority. Then saves the document to the specified stream.
public void TimestampAndSave(PdfSignatureTimestampOptions timestampOptions, Stream stream, PdfSaveOptions saveOptions)
Parameters
timestampOptions
PdfSignatureTimestampOptionsThe options for the document timestamp. The authority URL must not be
null
.stream
StreamThe stream to save the timestamped document to.
saveOptions
PdfSaveOptionsThe save options to use.
Remarks
A document timestamp establishes the exact contents of the complete PDF file at the time indicated in the timestamp token. Document timestamps allow to produce PAdES B-LTA signatures.
Document timestamps differ from signature timestamps. A signature timestamp proves the integrity of a specific digital signature. Use the Timestamp property to add signature timestamps.
Document timestamping will cause document to be saved using at least version 1.7 of the PDF standard with ESIC Extension Level 5.
Read the Save options section to know more about the cases when you may need to override the default options.
Exceptions
- ArgumentException
The timestamp authority URL is null.