HPDF-1.5.0: 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 # 
Instance details

Defined in Graphics.PDF.Draw

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 # 
Instance details

Defined in Graphics.PDF.Draw

Methods

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

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

Applicative PDF Source # 
Instance details

Defined in Graphics.PDF.Draw

Methods

pure :: a -> PDF a #

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

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

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

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

PDFGlobals PDF Source # 
Instance details

Defined in Graphics.PDF.Draw

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 !Double !Double !Double !Double 

type PDFFloat = Double Source #

A real number in a PDF document

data PDFString Source #

A PDFString containing a strict bytestring (serialied as UTF16BE)

data PDFPage Source #

A PDF Page object

Instances
Show PDFPage Source # 
Instance details

Defined in Graphics.PDF.Draw

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

Fonts

Typesetting