HPDF-1.5.0: Generation of PDF documents

Copyright(c) 2006-2016 alpheccar.org
LicenseBSD-style
Maintainermisc@NOSPAMalpheccar.org
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Graphics.PDF.Document

Contents

Description

Management of the PDF structure

Synopsis

Document actions

Special document objects

Page management

addPage Source #

Arguments

:: Maybe PDFRect

Page size or default document's one

-> PDF (PDFReference PDFPage)

Reference to the new page

Add a new page to a PDF document

addPageWithTransition Source #

Arguments

:: Maybe PDFRect

Page size or default document's one

-> Maybe PDFFloat

Optional duration

-> Maybe PDFTransition

Optional transition

-> PDF (PDFReference PDFPage)

Reference to the new page

drawWithPage Source #

Arguments

:: PDFReference PDFPage

Page

-> Draw a

Drawing commands

-> PDF a 

Draw on a given page

createPDFXForm Source #

Arguments

:: PDFFloat

Left

-> PDFFloat

Bottom

-> PDFFloat

Right

-> PDFFloat

Top

-> Draw a

Drawing commands

-> PDF (PDFReference PDFXForm) 

Create a PDF XObject

Page transitions

data PDFTransition Source #

A PDF Transition

Instances
Eq PDFTransition Source # 
Instance details

Defined in Graphics.PDF.Draw

data PDFTransDirection2 Source #

Direction of a transition

Constructors

LeftToRight 
BottomToTop

Wipe only

RightToLeft

Wipe only

TopToBottom 
TopLeftToBottomRight

Glitter only

Document information

data PDFViewerPreferences Source #

Viewer preferences

Constructors

PDFViewerPreferences 

Fields

standardDocInfo :: PDFDocumentInfo Source #

No information for the document

Draw monad and drawing functions

Types

data Draw a Source #

The drawing monad

Instances
Monad Draw Source # 
Instance details

Defined in Graphics.PDF.Draw

Methods

(>>=) :: Draw a -> (a -> Draw b) -> Draw b #

(>>) :: Draw a -> Draw b -> Draw b #

return :: a -> Draw a #

fail :: String -> Draw a #

Functor Draw Source # 
Instance details

Defined in Graphics.PDF.Draw

Methods

fmap :: (a -> b) -> Draw a -> Draw b #

(<$) :: a -> Draw b -> Draw a #

Applicative Draw Source # 
Instance details

Defined in Graphics.PDF.Draw

Methods

pure :: a -> Draw a #

(<*>) :: Draw (a -> b) -> Draw a -> Draw b #

liftA2 :: (a -> b -> c) -> Draw a -> Draw b -> Draw c #

(*>) :: Draw a -> Draw b -> Draw b #

(<*) :: Draw a -> Draw b -> Draw a #

PDFGlobals Draw Source # 
Instance details

Defined in Graphics.PDF.Draw

MonadWriter Builder Draw Source # 
Instance details

Defined in Graphics.PDF.Draw

Methods

writer :: (a, Builder) -> Draw a #

tell :: Builder -> Draw () #

listen :: Draw a -> Draw (a, Builder) #

pass :: Draw (a, Builder -> Builder) -> Draw a #

class PDFXObject a where Source #

A PDF Xobject which can be drawn

Minimal complete definition

Nothing

class PDFGlobals m where Source #

Instances
PDFGlobals PDF Source # 
Instance details

Defined in Graphics.PDF.Draw

PDFGlobals Draw Source # 
Instance details

Defined in Graphics.PDF.Draw

General drawing functions

withNewContext :: Draw a -> Draw a Source #

Draw in a new drawing context without perturbing the previous context that is restored after the draw

emptyDrawing :: Draw () Source #

An empty drawing