HPDF-1.4.6: Generation of PDF documents

Portabilityportable
Stabilityexperimental
Maintainermisc@NOSPAMalpheccar.org
Safe HaskellNone

Graphics.PDF

Contents

Description

Generation of PDF documents A PDF library with support for several pages, page transitions, outlines, annotations, compression, colors, shapes, patterns, jpegs, fonts, typesetting ... Have a look at the Graphics.PDF.Documentation module to see how to use it. Or, download the package and look at the test.hs file in the Test folder. That file is giving an example of each feature.

Synopsis

HPDF

PDF Monad

data PDF a Source

The PDF Monad

runPdfSource

Arguments

:: String

Name of the PDF document

-> PDFDocumentInfo 
-> PDFRect

Default size for a page

-> PDF a

PDF action

-> IO () 

Generates a PDF document

pdfByteStringSource

Arguments

:: PDFDocumentInfo 
-> PDFRect

Default size for a page

-> PDF a

PDF action

-> IO ByteString 

Generate a lazy bytestring for the PDF

PDF Common Types

data PDFRect Source

A PDF rectangle

Constructors

PDFRect !Int !Int !Int !Int 

type PDFFloat = DoubleSource

A real number in a PDF document

data PDFReference s Source

A reference to a PDF object

Instances

Eq (PDFReference s) 
PdfObject s => Num (PDFReference s) 
Ord (PDFReference s) 
Show (PDFReference s) 

data PDFString Source

A PDFString containing a strict bytestring

data PDFPage Source

A PDF Page object

Instances

data Pages Source

List of all pages

Document management

Drawing

Colors

Geometry

applyMatrix :: Matrix -> Draw ()Source

Apply a transformation matrix to the current coordinate frame

Text

Navigation

Annotations

Actions

Images

Patterns

Shading

Typesetting