HPDF-1.4.10: Generation of PDF documents

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

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

Instances

Monad PDF Source # 

Methods

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

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

return :: a -> PDF a #

fail :: String -> PDF a #

Functor PDF Source # 

Methods

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

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

Applicative PDF Source # 

Methods

pure :: a -> PDF a #

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

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

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

PDFGlobals PDF Source # 

runPdf Source #

Arguments

:: String

Name of the PDF document

-> PDFDocumentInfo 
-> PDFRect

Default size for a page

-> PDF a

PDF action

-> IO () 

Generates a PDF document

pdfByteString Source #

Arguments

:: PDFDocumentInfo 
-> PDFRect

Default size for a page

-> PDF a

PDF action

-> 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 = Double Source #

A real number in a PDF document

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