Poppler Qt5 24.12.0
|
#include <poppler-form.h>
Public Types | |
enum | SignatureType { AdbePkcs7sha1 , AdbePkcs7detached , EtsiCAdESdetached , UnknownSignatureType , UnsignedSignature } |
enum | SigningResult { FieldAlreadySigned , GenericSigningError , SigningSuccess } |
enum | ValidateOptions { ValidateVerifyCertificate = 1 , ValidateForceRevalidation = 2 , ValidateWithoutOCSPRevocationCheck = 4 , ValidateUseAIACertFetch = 8 } |
Public Types inherited from Poppler::FormField | |
enum | AdditionalActionType { FieldModified , FormatField , ValidateField , CalculateField } |
enum | FormType { FormButton , FormText , FormChoice , FormSignature } |
Public Member Functions | |
SigningResult | sign (const QString &outputFileName, const PDFConverter::NewSignatureData &data) const |
SignatureType | signatureType () const |
FormType | type () const override |
POPPLER_QT5_DEPRECATED SignatureValidationInfo | validate (int opt, const QDateTime &validationTime) const |
POPPLER_QT5_DEPRECATED SignatureValidationInfo | validate (ValidateOptions opt) const |
std::pair< SignatureValidationInfo, std::shared_ptr< AsyncObject > > | validateAsync (ValidateOptions opt, const QDateTime &validationTime={}) const |
SignatureValidationInfo::CertificateStatus | validateResult () const |
Public Member Functions inherited from Poppler::FormField | |
Link * | activationAction () const |
Link * | additionalAction (AdditionalActionType type) const |
Link * | additionalAction (Annotation::AdditionalActionType type) const |
QString | fullyQualifiedName () const |
int | id () const |
bool | isPrintable () const |
bool | isReadOnly () const |
bool | isVisible () const |
QString | name () const |
QRectF | rect () const |
void | setName (const QString &name) const |
void | setPrintable (bool value) |
void | setReadOnly (bool value) |
void | setVisible (bool value) |
QString | uiName () const |
A form field that represents a signature.
The validation options of this signature.
SigningResult Poppler::FormFieldSignature::sign | ( | const QString & | outputFileName, |
const PDFConverter::NewSignatureData & | data | ||
) | const |
Signs a field of UnsignedSignature type.
Ignores data.page(), data.fieldPartialName() and data.boundingRectangle()
SignatureType Poppler::FormFieldSignature::signatureType | ( | ) | const |
The signature type.
|
overridevirtual |
The type of the field.
Implements Poppler::FormField.
POPPLER_QT5_DEPRECATED SignatureValidationInfo Poppler::FormFieldSignature::validate | ( | int | opt, |
const QDateTime & | validationTime | ||
) | const |
Validate the signature with validationTime
as validation time.
Reset signature validatation info of scoped instance.
POPPLER_QT5_DEPRECATED SignatureValidationInfo Poppler::FormFieldSignature::validate | ( | ValidateOptions | opt | ) | const |
Validate the signature with now as validation time.
Reset signature validatation info of scoped instance.
std::pair< SignatureValidationInfo, std::shared_ptr< AsyncObject > > Poppler::FormFieldSignature::validateAsync | ( | ValidateOptions | opt, |
const QDateTime & | validationTime = {} |
||
) | const |
Validate the signature with validationTime
as validation time.
Reset signature validatation info of scoped instance.
SignatureValidationInfo::CertificateStatus Poppler::FormFieldSignature::validateResult | ( | ) | const |