gi-poppler-0.18.21: Poppler bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Poppler.Objects.PSFile

Description

No description available in the introspection data.

Synopsis

Exported types

newtype PSFile Source #

Memory-managed wrapper type.

Constructors

PSFile (ManagedPtr PSFile) 

Instances

Instances details
Eq PSFile Source # 
Instance details

Defined in GI.Poppler.Objects.PSFile

Methods

(==) :: PSFile -> PSFile -> Bool #

(/=) :: PSFile -> PSFile -> Bool #

GObject PSFile Source # 
Instance details

Defined in GI.Poppler.Objects.PSFile

Methods

gobjectType :: IO GType #

IsGValue PSFile Source #

Convert PSFile to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Poppler.Objects.PSFile

HasParentTypes PSFile Source # 
Instance details

Defined in GI.Poppler.Objects.PSFile

type ParentTypes PSFile Source # 
Instance details

Defined in GI.Poppler.Objects.PSFile

class (GObject o, IsDescendantOf PSFile o) => IsPSFile o Source #

Type class for types which can be safely cast to PSFile, for instance with toPSFile.

Instances

Instances details
(GObject o, IsDescendantOf PSFile o) => IsPSFile o Source # 
Instance details

Defined in GI.Poppler.Objects.PSFile

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

Cast to PSFile, for types for which this is known to be safe. For general casts, use castTo.

noPSFile :: Maybe PSFile Source #

A convenience alias for Nothing :: Maybe PSFile.

Methods

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