gi-poppler-0.18.14: Poppler bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Poppler.Objects.Annot

Contents

Description

 

Synopsis

Exported types

toAnnot :: (MonadIO m, IsAnnot o) => o -> m Annot Source #

Methods

getAnnotType

annotGetAnnotType Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m AnnotType

Returns: AnnotType of popplerAnnot.

Gets the type of popplerAnnot

getColor

annotGetColor Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m Color

Returns: a new allocated Color with the color values of popplerAnnot, or Nothing. It must be freed with free when done.

Retrieves the color of popplerAnnot.

getContents

annotGetContents Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m Text

Returns: a new allocated string with the contents of popplerAnnot. It must be freed with free when done.

Retrieves the contents of popplerAnnot.

getFlags

annotGetFlags Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m [AnnotFlag]

Returns: the flag field of popplerAnnot.

Retrieves the flag field specifying various characteristics of the popplerAnnot.

getModified

annotGetModified Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m Text

Returns: a new allocated string with the last modification data of popplerAnnot. It must be freed with free when done.

Retrieves the last modification data of popplerAnnot. The returned string will be either a PDF format date or a text string. See also poppler_date_parse()

getName

annotGetName Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m Text

Returns: a new allocated string with the name of popplerAnnot. It must be freed with free when done.

Retrieves the name of popplerAnnot.

getPageIndex

annotGetPageIndex Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m Int32

Returns: page index or -1

Returns the page index to which popplerAnnot is associated, or -1 if unknown

Since: 0.14

getRectangle

annotGetRectangle Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> m Rectangle 

Retrieves the rectangle representing the page coordinates where the annotation popplerAnnot is placed.

Since: 0.26

setColor

annotSetColor Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> Maybe Color

popplerColor: a Color, or Nothing

-> m () 

Sets the color of popplerAnnot.

Since: 0.16

setContents

annotSetContents Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> Text

contents: a text string containing the new contents

-> m () 

Sets the contents of popplerAnnot to the given value, replacing the current contents.

Since: 0.12

setFlags

annotSetFlags Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> [AnnotFlag]

flags: a AnnotFlag

-> m () 

Sets the flag field specifying various characteristics of the popplerAnnot.

Since: 0.22

setRectangle

annotSetRectangle Source #

Arguments

:: (HasCallStack, MonadIO m, IsAnnot a) 
=> a

popplerAnnot: a Annot

-> Rectangle

popplerRect: a Rectangle with the new annotation's coordinates

-> m () 

Move the annotation to the rectangle representing the page coordinates where the annotation popplerAnnot should be placed.

Since: 0.26