Poppler Qt5 24.12.0
|
Typedefs | |
using | PopplerDebugFunc = void(*)(const QString &, const QVariant &) |
Enumerations | |
enum class | CryptoSignBackend { NSS , GPG } |
enum class | CryptoSignBackendFeature { BackendAsksPassphrase } |
Functions | |
std::optional< CryptoSignBackend > | activeCryptoSignBackend () |
QVector< CryptoSignBackend > | availableCryptoSignBackends () |
QDateTime | convertDate (char *dateString) |
QDateTime | convertDate (const char *dateString) |
QVector< CertificateInfo > | getAvailableSigningCertificates () |
QString | getNSSDir () |
bool | hasCryptoSignBackendFeature (CryptoSignBackend, CryptoSignBackendFeature) |
bool POPPLER_QT5_DEPRECATED | hasNSSSupport () |
bool | isCmsAvailable () |
bool | isOverprintPreviewAvailable () |
bool | setActiveCryptoSignBackend (CryptoSignBackend backend) |
void | setDebugErrorFunction (PopplerDebugFunc debugFunction, const QVariant &closure) |
void | setNSSDir (const QString &pathURL) |
void | setNSSPasswordCallback (const std::function< char *(const char *)> &f) |
The Poppler Qt5 binding.
using Poppler::PopplerDebugFunc = typedef void (*)(const QString & , const QVariant & ) |
Debug/error function.
This function type is used for debugging & error output; the first parameter is the actual message, the second is the unaltered closure argument which was passed to the setDebugErrorFunction call.
|
strong |
Possible compiled in backends for signature handling.
|
strong |
std::optional< CryptoSignBackend > Poppler::activeCryptoSignBackend | ( | ) |
Returns current active backend or nullopt if none is active.
QVector< CryptoSignBackend > Poppler::availableCryptoSignBackends | ( | ) |
The available compiled-in backends.
QDateTime Poppler::convertDate | ( | const char * | dateString | ) |
Conversion from PDF date string format to QDateTime.
QVector< CertificateInfo > Poppler::getAvailableSigningCertificates | ( | ) |
Return vector of suitable signing certificates.
QString Poppler::getNSSDir | ( | ) |
Gets the current NSS CertDB directory.
bool Poppler::hasCryptoSignBackendFeature | ( | CryptoSignBackend | , |
CryptoSignBackendFeature | |||
) |
Queries if a backend supports or not supports a given feature.
bool POPPLER_QT5_DEPRECATED Poppler::hasNSSSupport | ( | ) |
Returns is poppler was compiled with NSS support.
bool Poppler::isCmsAvailable | ( | ) |
Whether the color management functions are available.
bool Poppler::isOverprintPreviewAvailable | ( | ) |
Whether the overprint preview functionality is available.
bool Poppler::setActiveCryptoSignBackend | ( | CryptoSignBackend | backend | ) |
Sets active backend.
void Poppler::setDebugErrorFunction | ( | PopplerDebugFunc | debugFunction, |
const QVariant & | closure | ||
) |
Set a new debug/error output function.
If not set, by default error and debug messages will be sent to the Qt qDebug()
function.
debugFunction | the new debug function |
closure | user data which will be passes as-is to the debug function |
void Poppler::setNSSDir | ( | const QString & | pathURL | ) |
Set a custom NSS CertDB directory.
Needs to be called before doing any other signature operation
void Poppler::setNSSPasswordCallback | ( | const std::function< char *(const char *)> & | f | ) |
Sets the callback for NSS password requests.