HPDF-1.4.3: Generation of PDF documents

Portabilityportable
Stabilityexperimental
Maintainermisc@NOSPAMalpheccar.org
Safe HaskellNone

Graphics.PDF.Document

Contents

Description

Management of the PDF structure

Synopsis

Document actions

Special document objects

data PDFXForm Source

Instances

PdfObject PDFXForm 
PDFXObject PDFXForm 
PdfResourceObject (PDFReference PDFXForm) 

Page management

addPageSource

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

addPageWithTransitionSource

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

drawWithPageSource

Arguments

:: PDFReference PDFPage

Page

-> Draw a

Drawing commands

-> PDF a 

Draw on a given page

createPDFXFormSource

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

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

Instances

standardDocInfo :: PDFDocumentInfoSource

No information for the document

Draw monad and drawing functions

Types

data Draw a Source

The drawing monad

Instances

class PDFXObject a whereSource

A PDF Xobject which can be drawn

General drawing functions

withNewContext :: Draw a -> Draw aSource

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

emptyDrawing :: Draw ()Source

An empty drawing