Poppler Qt6 24.12.0
|
#include <poppler-form.h>
Public Types | |
enum | SignatureType { UnknownSignatureType , AdbePkcs7sha1 , AdbePkcs7detached , EtsiCAdESdetached , UnsignedSignature } |
enum | SigningResult { FieldAlreadySigned , GenericSigningError , SigningSuccess , InternalError , KeyMissing , WriteFailed , UserCancelled } |
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_QT6_DEPRECATED SignatureValidationInfo | validate (int opt, const QDateTime &validationTime) const |
POPPLER_QT6_DEPRECATED SignatureValidationInfo | validate (ValidateOptions opt) const |
std::pair< SignatureValidationInfo, std::shared_ptr< AsyncObject > > | validateAsync (ValidateOptions opt, const QDateTime &validationTime={}) const |
SignatureValidationInfo::CertificateStatus | validateResult () const |
~FormFieldSignature () override | |
Public Member Functions inherited from Poppler::FormField | |
std::unique_ptr< Link > | activationAction () const |
std::unique_ptr< Link > | additionalAction (AdditionalActionType type) const |
std::unique_ptr< 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()
|
overridevirtual |
The type of the field.
Implements Poppler::FormField.
POPPLER_QT6_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_QT6_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 |