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.PSFile

Contents

Description

 

Synopsis

Exported types

toPSFile :: (MonadIO m, IsPSFile o) => o -> m PSFile Source #

Methods

free

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

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

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.