HPDF-1.6.1: Generation of PDF documents
Copyright(c) 2006-2016 alpheccar.org
LicenseBSD-style
Maintainermisc@NOSPAMalpheccar.org
Stabilityexperimental
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.PDF

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

Instances details
PDFGlobals PDF Source # 
Instance details

Defined in Graphics.PDF.Draw

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 #

Functor PDF Source # 
Instance details

Defined in Graphics.PDF.Draw

Methods

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

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

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 #

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

Instances details
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