Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype PSFile = PSFile (ManagedPtr PSFile)
- class (GObject o, IsDescendantOf PSFile o) => IsPSFile o
- toPSFile :: (MonadIO m, IsPSFile o) => o -> m PSFile
- pSFileFree :: (HasCallStack, MonadIO m, IsPSFile a) => a -> m ()
- pSFileNew :: (HasCallStack, MonadIO m, IsDocument a) => a -> Text -> Int32 -> Int32 -> m PSFile
- pSFileNewFd :: (HasCallStack, MonadIO m, IsDocument a) => a -> Int32 -> Int32 -> Int32 -> m PSFile
- pSFileSetDuplex :: (HasCallStack, MonadIO m, IsPSFile a) => a -> Bool -> m ()
- pSFileSetPaperSize :: (HasCallStack, MonadIO m, IsPSFile a) => a -> Double -> Double -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq PSFile Source # | |
GObject PSFile Source # | |
Defined in GI.Poppler.Objects.PSFile | |
ManagedPtrNewtype PSFile Source # | |
Defined in GI.Poppler.Objects.PSFile toManagedPtr :: PSFile -> ManagedPtr PSFile | |
TypedObject PSFile Source # | |
Defined in GI.Poppler.Objects.PSFile | |
HasParentTypes PSFile Source # | |
Defined in GI.Poppler.Objects.PSFile | |
IsGValue (Maybe PSFile) Source # | Convert |
Defined in GI.Poppler.Objects.PSFile gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe PSFile -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe PSFile) | |
type ParentTypes PSFile Source # | |
Defined in GI.Poppler.Objects.PSFile type ParentTypes PSFile = '[Object] |
class (GObject o, IsDescendantOf PSFile o) => IsPSFile o Source #
Instances
(GObject o, IsDescendantOf PSFile o) => IsPSFile o Source # | |
Defined in GI.Poppler.Objects.PSFile |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, free, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
free
:: (HasCallStack, MonadIO m, IsPSFile a) | |
=> a |
|
-> m () |
Frees psFile
new
:: (HasCallStack, MonadIO m, IsDocument a) | |
=> a |
|
-> Text |
|
-> Int32 |
|
-> Int32 |
|
-> m PSFile | Returns: a PopplerPSFile |
Create a new postscript file to render to
newFd
:: (HasCallStack, MonadIO m, IsDocument a) | |
=> a |
|
-> Int32 |
|
-> Int32 |
|
-> Int32 |
|
-> m PSFile | Returns: a |
Create a new postscript file to render to.
Note that this function takes ownership of fd
; you must not operate on it
again, nor close it.
Since: 21.12.0
setDuplex
:: (HasCallStack, MonadIO m, IsPSFile a) | |
=> a |
|
-> Bool |
|
-> m () |
Enable or disable Duplex printing.
setPaperSize
:: (HasCallStack, MonadIO m, IsPSFile a) | |
=> a |
|
-> Double |
|
-> Double |
|
-> 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.