| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Poppler.Functions
Description
Synopsis
- dateParse :: (HasCallStack, MonadIO m) => Text -> CLong -> m Bool
- getBackend :: (HasCallStack, MonadIO m) => m Backend
- getVersion :: (HasCallStack, MonadIO m) => m Text
- namedDestFromBytestring :: (HasCallStack, MonadIO m) => ByteString -> m Text
- namedDestToBytestring :: (HasCallStack, MonadIO m) => Text -> m (Maybe ByteString)
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
getBackend
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m Backend | Returns: The backend used by poppler |
Returns the backend compiled into the poppler library.
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