HPDF-1.4.7: Generation of PDF documents

Copyright(c) 2006-2012, alpheccar.org
LicenseBSD-style
Maintainermisc@NOSPAMalpheccar.org
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

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

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

Document information

data PDFViewerPreferences Source

Viewer preferences

Constructors

PDFViewerPreferences 

Fields

hideToolbar :: Bool

To hide the toolbar

hideMenuBar :: Bool

To hide the menubar

hideWindowUI :: Bool

To hide the window

fitWindow :: Bool

Fit window to screen

centerWindow :: Bool

Center window on screen

displayDoctitle :: Bool

Display the docu,ent title

nonFullScreenPageMode :: PDFDocumentPageMode

Display mode when exiting the full screen mode

standardDocInfo :: PDFDocumentInfo Source

No information for the document

Draw monad and drawing functions

Types

class PDFXObject a where Source

A PDF Xobject which can be drawn

Minimal complete definition

Nothing

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