gi-poppler-0.18.11: 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.PSFile

Contents

Description

 

Synopsis

Exported types

newtype PSFile Source #

Constructors

PSFile (ManagedPtr PSFile) 

Instances

GObject PSFile Source # 

Methods

gobjectType :: PSFile -> IO GType #

IsObject PSFile Source # 
IsPSFile PSFile Source # 
((~) * info (ResolvePSFileMethod t PSFile), MethodInfo * info PSFile p) => IsLabel t (PSFile -> p) Source # 

Methods

fromLabel :: Proxy# Symbol t -> PSFile -> p #

((~) * info (ResolvePSFileMethod t PSFile), MethodInfo * info PSFile p) => IsLabelProxy t (PSFile -> p) Source # 

Methods

fromLabelProxy :: Proxy Symbol t -> PSFile -> p #

HasAttributeList * PSFile Source # 
type AttributeList PSFile Source # 
type SignalList PSFile Source # 

Methods

free

data PSFileFreeMethodInfo Source #

Instances

((~) * signature (m ()), MonadIO m, IsPSFile a) => MethodInfo * PSFileFreeMethodInfo a signature Source # 

Methods

overloadedMethod :: MethodProxy PSFileFreeMethodInfo a -> signature -> s #

pSFileFree Source #

Arguments

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

psFile: a PopplerPSFile

-> m () 

Frees psFile

new

pSFileNew Source #

Arguments

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

document: a Document

-> Text

filename: the path of the output filename

-> Int32

firstPage: the first page to print

-> Int32

nPages: the number of pages to print

-> m PSFile

Returns: a PopplerPSFile

Create a new postscript file to render to

setDuplex

data PSFileSetDuplexMethodInfo Source #

Instances

((~) * signature (Bool -> m ()), MonadIO m, IsPSFile a) => MethodInfo * PSFileSetDuplexMethodInfo a signature Source # 

pSFileSetDuplex Source #

Arguments

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

psFile: a PopplerPSFile which was not yet printed to

-> Bool

duplex: whether to force duplex printing (on printers which support this)

-> m () 

Enable or disable Duplex printing.

setPaperSize

data PSFileSetPaperSizeMethodInfo Source #

Instances

((~) * signature (Double -> Double -> m ()), MonadIO m, IsPSFile a) => MethodInfo * PSFileSetPaperSizeMethodInfo a signature Source # 

pSFileSetPaperSize Source #

Arguments

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

psFile: a PopplerPSFile which was not yet printed to.

-> Double

width: the paper width in 1/72 inch

-> Double

height: the paper height in 1/72 inch

-> m () 

Set the output paper size. These values will end up in the DocumentMedia, the BoundingBox DSC comments and other places in the generated PostScript.