gi-poppler-0.18.20: Poppler bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Poppler.Functions

Contents

Description

 
Synopsis

Methods

dateParse

dateParse Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> Text

date: string to parse

-> CLong

timet: an uninitialized time_t

-> m Bool

Returns: TRUE, if timet was set

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

getBackend Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m Backend

Returns: The backend used by poppler

Returns the backend compiled into the poppler library.

getVersion

getVersion Source #

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

data: the bytestring data

-> 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 Nothing

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