Method SignAndSave
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
SignAndSave(PdfSigningOptions, string)
Digitally signs the document using the specified signing options. Then saves the document to the file with the specified name.
public void SignAndSave(PdfSigningOptions signingOptions, string signedFileName)
Parameters
signingOptions
PdfSigningOptionsThe options for the document signing.
signedFileName
stringThe name of the file to save the signed document to.
Remarks
This method uses the default save options. Use SignAndSave(PdfSigningOptions, string, PdfSaveOptions) overload to specify custom save options.
The Sign PDF documents in C# and VB.NET article shows how to sign PDF documents using digital signatures.
Read the Save options section to know more about the cases when you may need to override the default options.
SignAndSave(PdfSigningOptions, string, PdfSaveOptions)
Digitally signs the document using the specified signing and save options. Then saves the document to the file with the specified name.
public void SignAndSave(PdfSigningOptions signingOptions, string signedFileName, PdfSaveOptions saveOptions)
Parameters
signingOptions
PdfSigningOptionsThe options for the document signing.
signedFileName
stringThe name of the file to save the signed document to.
saveOptions
PdfSaveOptionsThe save options to use.
Remarks
The Sign PDF documents in C# and VB.NET article shows how to sign PDF documents using digital signatures.
Read the Save options section for the information about the options users usually change.
SignAndSave(PdfSigningOptions, Stream)
Digitally signs the document using the specified signing options. Then saves the document to the specified stream.
public void SignAndSave(PdfSigningOptions signingOptions, Stream signedContentStream)
Parameters
signingOptions
PdfSigningOptionsThe options for the document signing.
signedContentStream
StreamThe stream to save the signed document to.
Remarks
This method uses the default save options. Use SignAndSave(PdfSigningOptions, Stream, PdfSaveOptions) overload to specify custom save options.
The Sign PDF documents in C# and VB.NET article shows how to sign PDF documents using digital signatures.
Read the Save options section to know more about the cases when you may need to override the default options.
SignAndSave(PdfSigningOptions, Stream, PdfSaveOptions)
Digitally signs the document using the specified signing and save options. Then saves the document to the specified stream.
public void SignAndSave(PdfSigningOptions signingOptions, Stream signedContentStream, PdfSaveOptions saveOptions)
Parameters
signingOptions
PdfSigningOptionsThe options for the document signing.
signedContentStream
StreamThe stream to save the signed document to.
saveOptions
PdfSaveOptionsThe save options to use.
Remarks
The Sign PDF documents in C# and VB.NET article shows how to sign PDF documents using digital signatures.
Read the Save options section for the information about the options users usually change.