Aspose::Pdf::Facades::PdfFileSignature class
Contents
[
Hide
]PdfFileSignature class
Represents a class to sign a pdf file with a certificate.
class PdfFileSignature : public Aspose::Pdf::Facades::SaveableFacade
Methods
| Method | Description |
|---|---|
| BindPdf(System::String) override | Binds a Pdf file for editing. |
| BindPdf(System::SharedPtr<System::IO::Stream>) override | Binds a Pdf stream for editing. |
| Certify(int32_t, const System::String&, const System::String&, const System::String&, bool, System::Drawing::Rectangle, const System::SharedPtr<Forms::DocMDPSignature>&) | Certify the document with the MDP signature. Such data as signature reason, contact and location must be provided by corresponding properties of the Signature object sig. |
| Certify(const System::String&, const System::SharedPtr<Forms::DocMDPSignature>&) | Certify the document with the MDP signature which is placed in already presented signature field. Before signing signature field must be empty, i.e. field must not contain signature dictionary. Thus pdf document already has signature field, you should not supply the place to stamp the signature, corresponding page and rectangle are taken from signature field which is found by signature name (see sigName parameter). |
| Close() override | Closes the facade. |
| ContainsSignature() | Checks if the pdf has a digital signature or not. |
| ContainsUsageRights() | Checks if the pdf has a usage rights or not. |
| CoversWholeDocument(const System::String&) | Checks if the signature covers the whole document. |
| CoversWholeDocument(const System::SharedPtr<SignatureName>&) | Checks if the signature covers the whole document. |
| ExtractCertificate(const System::String&) | Extracts signature’s single X.509 certificate as a stream. |
| ExtractCertificate(const System::SharedPtr<SignatureName>&) | Extracts signature’s single X.509 certificate as a stream. |
| ExtractImage(const System::String&) | Extracts signature’s image. |
| ExtractImage(const System::SharedPtr<SignatureName>&) | Extracts signature’s image. |
| get_IsCertified() | Gets the flag determining whether a document is certified or not. |
| get_IsLtvEnabled() | Gets the LTV enabled flag. |
| get_SignatureAppearance() const | Sets or gets a graphic appearance for the signature. Property value represents image file name. |
| get_SignatureAppearanceStream() const | Sets or gets a graphic appearance for the signature. Property value represents image stream. |
| GetAccessPermissions() | Returns the access permissions value of certified document by the MDP signature type. |
| GetBlankSignatureNames() | Gets the names of all empty signature fields. |
| GetBlankSignNames() | Gets the names of all empty signature fields. |
| GetContactInfo(const System::String&) | Gets the contact information of a signature. |
| GetContactInfo(const System::SharedPtr<SignatureName>&) | Gets the contact information of a signature. |
| GetDateTime(const System::String&) | Gets the signature’s datetime. |
| GetDateTime(const System::SharedPtr<SignatureName>&) | Gets the signature’s datetime. |
| GetLocation(const System::String&) | Gets the location of a signature. |
| GetLocation(const System::SharedPtr<SignatureName>&) | Gets the location of a signature. |
| GetReason(const System::String&) | Gets the reason of a signature. |
| GetReason(const System::SharedPtr<SignatureName>&) | Gets the reason of a signature. |
| GetRevision(const System::String&) | Gets the revision of a signature. |
| GetRevision(const System::SharedPtr<SignatureName>&) | Gets the revision of a signature. |
| GetSignatureNames(bool) | Gets the names of all not empty signatures. |
| GetSignaturesInfo() | Retrieves information about all signatures algorithm present in the PDF document. |
| GetSignerName(const System::String&) | Gets the name of person or organization who signing the pdf document. |
| GetSignerName(const System::SharedPtr<SignatureName>&) | Gets the name of person or organization who signing the pdf document. |
| GetSignNames(bool) | Gets the names of all not empty signatures. |
| GetTotalRevision() | Gets the toltal revision. |
| IsContainSignature() | Checks if the pdf has a digital signature or not. |
| IsCoversWholeDocument(const System::String&) | Checks if the signature covers the whole document. |
| PdfFileSignature() | The constructor of PdfFileSignature class. |
| PdfFileSignature(const System::String&) | The constructor of PdfFileSignature class. |
| PdfFileSignature(const System::String&, const System::String&) | The constructor of PdfFileSignature class. |
| PdfFileSignature(const System::SharedPtr<Aspose::Pdf::Document>&) | Initializes new PdfFileSignature object on base of the document . |
| PdfFileSignature(const System::SharedPtr<Aspose::Pdf::Document>&, const System::String&) | Initializes new PdfFileSignature object on base of the document . |
| RemoveSignature(const System::String&) | Remove the signature according to the name of the signature. |
| RemoveSignature(const System::SharedPtr<SignatureName>&) | Remove the signature according to the name of the signature. |
| RemoveSignature(const System::String&, bool) | Removes the signature according to the name of the signature. |
| RemoveSignature(const System::SharedPtr<SignatureName>&, bool) | Removes the signature according to the name of the signature. |
| RemoveSignatures() | Removes all signatures. |
| RemoveUsageRights() | Removes the usage rights entry. |
| Save(System::String) override | Saves the result PDF to file. |
| Save(System::SharedPtr<System::IO::Stream>) override | Saves the result PDF to stream. |
| Save() | Save signed pdf file. Output filename must be provided before with the help of coresponding PdfFileSignature constructor. |
| set_SignatureAppearance(const System::String&) | Sets or gets a graphic appearance for the signature. Property value represents image file name. |
| set_SignatureAppearanceStream(const System::SharedPtr<System::IO::Stream>&) | Sets or gets a graphic appearance for the signature. Property value represents image stream. |
| SetCertificate(const System::String&, const System::String&) | Set certificate file and password for signing routine. |
| Sign(int32_t, const System::String&, const System::String&, const System::String&, bool, System::Drawing::Rectangle) | Make a signature on the pdf document. |
| Sign(int32_t, const System::String&, const System::String&, const System::String&, bool, System::Drawing::Rectangle, const System::SharedPtr<Forms::Signature>&) | Sign the document with the given type signature. |
| Sign(int32_t, bool, System::Drawing::Rectangle, const System::SharedPtr<Forms::Signature>&) | Sign the document with the given type signature. |
| Sign(const System::String&, const System::String&, const System::String&, const System::String&, const System::SharedPtr<Forms::Signature>&) | Sign the document with the given type signature which is placed in already presented signature field. Before signing signature field must be empty, i.e. field must not contain signature dictionary. Thus pdf document already has signature field, you should not supply the place to stamp the signature, corresponding page and rectangle are taken from signature field which is found by signature name (see SigName parameter). |
| Sign(int32_t, const System::String&, const System::String&, const System::String&, const System::String&, bool, System::Drawing::Rectangle, const System::SharedPtr<Forms::Signature>&) | Sign the document with the given type signature which is placed in already presented signature field. Before signing pdf document should already has signature field, corresponding page and rectangle are taken from signature field which is found by signature name (see SigName parameter). |
| Sign(const System::String&, const System::SharedPtr<Forms::Signature>&) | Sign the document with the given type signature which is placed in already presented signature field. Before signing signature field must be empty, i.e. field must not contain signature dictionary. Thus pdf document already has signature field, you should not supply the place to stamp the signature, corresponding page and rectangle are taken from signature field which is found by signature name (see SigName parameter). Such data as signature reason, contact and location must be provided by corresponding properties of the Signature object sig. |
| TryExtractCertificate(const System::SharedPtr<SignatureName>&, System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&) | Extracts signature’s single X.509 certificate. |
| TryExtractCertificate(const System::SharedPtr<SignatureName>&, System::SharedPtr<System::IO::Stream>&) | Extracts signature’s single X.509 certificate as a stream. |
| TryVerifySignature(const System::SharedPtr<SignatureName>&, System::SharedPtr<Security::VerificationResult>&) | Try to check the validity of a signature. |
| TryVerifySignature(const System::SharedPtr<SignatureName>&, const System::SharedPtr<Security::ValidationOptions>&, System::SharedPtr<Security::ValidationResult>&, System::SharedPtr<Security::VerificationResult>&) | Try to check the validity of a signature. |
| TryVerifySignature(const System::SharedPtr<SignatureName>&, const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&, const System::SharedPtr<Security::ValidationOptions>&, System::SharedPtr<Security::ValidationResult>&, System::SharedPtr<Security::VerificationResult>&) | Try to check the validity of a signature. Verification is performed using the external public key certificate. |
| TryVerifySignature(const System::SharedPtr<SignatureName>&, const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&, System::SharedPtr<Security::VerificationResult>&) | Try to check the validity of a signature. Verification is performed using the external public key certificate. |
| VerifySignature(const System::String&) | Checks the validity of a signature. |
| VerifySignature(const System::SharedPtr<SignatureName>&) | Checks the validity of a signature. |
| VerifySignature(const System::String&, const System::SharedPtr<Security::ValidationOptions>&, System::SharedPtr<Security::ValidationResult>&) | Checks the validity of a signature. |
| VerifySignature(const System::SharedPtr<SignatureName>&, const System::SharedPtr<Security::ValidationOptions>&, System::SharedPtr<Security::ValidationResult>&) | Checks the validity of a signature. |
| VerifySignature(const System::SharedPtr<SignatureName>&, const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&, const System::SharedPtr<Security::ValidationOptions>&, System::SharedPtr<Security::ValidationResult>&) | Checks the validity of a signature. Verification is performed using the external public key certificate. |
| VerifySignature(const System::SharedPtr<SignatureName>&, const System::SharedPtr<System::Security::Cryptography::X509Certificates::X509Certificate2>&) | Checks the validity of a signature. Verification is performed using the external public key certificate. |
| VerifySigned(const System::String&) | Checks the validity of a signature. The method is deprecated and will be deleted in 25.1 version. Use VerifySignature method instead. |
See Also
- Class SaveableFacade
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++