HPDF-1.6.1: Generation of PDF documents
Copyright(c) 2006-2016 alpheccar.org
LicenseBSD-style
Maintainermisc@NOSPAMalpheccar.org
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.PDF.Document

Description

Management of the PDF structure

Synopsis

Document actions

Special document objects

data PDFXForm Source #

Instances

Instances details
PDFXObject PDFXForm Source # 
Instance details

Defined in Graphics.PDF.Draw

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

Instances details
Eq PDFTransition Source # 
Instance details

Defined in Graphics.PDF.Draw

data PDFTransDirection Source #

Direction of a transition

Constructors

Inward 
Outward 

data PDFTransDimension Source #

Dimension of a transition

Constructors

Horizontal 
Vertical 

data PDFTransDirection2 Source #

Direction of a transition

Constructors

LeftToRight 
BottomToTop

Wipe only

RightToLeft

Wipe only

TopToBottom 
TopLeftToBottomRight

Glitter only

Instances

Instances details
Eq PDFTransDirection2 Source # 
Instance details

Defined in Graphics.PDF.Draw

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

Instances details
PDFGlobals Draw Source # 
Instance details

Defined in Graphics.PDF.Draw

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 #

Functor Draw Source # 
Instance details

Defined in Graphics.PDF.Draw

Methods

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

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

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 #

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

Instances details
PDFGlobals Draw Source # 
Instance details

Defined in Graphics.PDF.Draw

PDFGlobals PDF 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