Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
GI.Poppler.Functions
Description
Synopsis
- dateParse :: (HasCallStack, MonadIO m) => Text -> CLong -> m Bool
- getAvailableSigningCertificates :: (HasCallStack, MonadIO m) => m [CertificateInfo]
- getBackend :: (HasCallStack, MonadIO m) => m Backend
- getCertificateInfoById :: (HasCallStack, MonadIO m) => Text -> m CertificateInfo
- getNssDir :: (HasCallStack, MonadIO m) => m Text
- getVersion :: (HasCallStack, MonadIO m) => m Text
- namedDestFromBytestring :: (HasCallStack, MonadIO m) => ByteString -> m Text
- namedDestToBytestring :: (HasCallStack, MonadIO m) => Text -> m (Maybe ByteString)
- setNssDir :: (HasCallStack, MonadIO m) => Text -> m ()
- setNssPasswordCallback :: (HasCallStack, MonadIO m) => NssPasswordFunc -> m ()
Methods
dateParse
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> CLong |
|
-> m Bool | Returns: |
Parses a PDF format date string and converts it to a time_t
. Returns FALSE
if the parsing fails or the input string is not a valid PDF format date string
Since: 0.12
getAvailableSigningCertificates
getAvailableSigningCertificates Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> m [CertificateInfo] | Returns: all available signing certificate information |
Get all available signing certificate information
getBackend
Arguments
:: (HasCallStack, MonadIO m) | |
=> m Backend | Returns: The backend used by poppler |
Returns the backend compiled into the poppler library.
getCertificateInfoById
getCertificateInfoById Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text | |
-> m CertificateInfo | Returns: a |
Get certificate by nick name
getNssDir
Arguments
:: (HasCallStack, MonadIO m) | |
=> m Text | Returns: nss directroy. |
Get NSS directory
Since: 23.07.0
getVersion
Arguments
:: (HasCallStack, MonadIO m) | |
=> m Text | Returns: the version of poppler. |
Returns the version of poppler in use. This result is not to be freed.
namedDestFromBytestring
namedDestFromBytestring Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> ByteString |
|
-> m Text | Returns: the named dest |
Converts a bytestring into a zero-terminated string suitable to
pass to documentFindDest
.
Note that the returned string has no defined encoding and is not suitable for display to the user.
The returned data must be freed using free
.
Since: 0.73
namedDestToBytestring
namedDestToBytestring Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m (Maybe ByteString) | Returns: a new bytestring,
or |
Converts a named dest string (e.g. from Dest
.named_dest
) into a
bytestring, inverting the transformation of
namedDestFromBytestring
.
Note that the returned data is not zero terminated and may also contains embedded NUL bytes.
If name
is not a valid named dest string, returns Nothing
.
The returned data must be freed using free
.
Since: 0.73
setNssDir
setNssPasswordCallback
setNssPasswordCallback Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> NssPasswordFunc |
|
-> m () |
A callback which asks for certificate password
Since: 23.07.0