Portability | portable |
---|---|
Stability | experimental |
Maintainer | misc@NOSPAMalpheccar.org |
Safe Haskell | None |
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.
- data PDF a
- runPdf :: String -> PDFDocumentInfo -> PDFRect -> PDF a -> IO ()
- pdfByteString :: PDFDocumentInfo -> PDFRect -> PDF a -> IO ByteString
- data PDFRect = PDFRect !Int !Int !Int !Int
- type PDFFloat = Double
- data PDFReference s
- data PDFString
- data PDFPage
- data Pages
- module Graphics.PDF.Document
- module Graphics.PDF.Shapes
- module Graphics.PDF.Colors
- module Graphics.PDF.Coordinates
- applyMatrix :: Matrix -> Draw ()
- module Graphics.PDF.Text
- module Graphics.PDF.Navigation
- module Graphics.PDF.Annotation
- module Graphics.PDF.Action
- module Graphics.PDF.Image
- module Graphics.PDF.Pattern
- module Graphics.PDF.Shading
- module Graphics.PDF.Typesetting
- module Graphics.PDF.Hyphenate
HPDF
PDF Monad
:: String | Name of the PDF document |
-> PDFDocumentInfo | |
-> PDFRect | Default size for a page |
-> PDF a | PDF action |
-> IO () |
Generates a PDF document
:: PDFDocumentInfo | |
-> PDFRect | Default size for a page |
-> PDF a | PDF action |
-> IO ByteString |
Generate a lazy bytestring for the PDF
PDF Common Types
data PDFReference s Source
A reference to a PDF object
Eq (PDFReference s) | |
PdfObject s => Num (PDFReference s) | |
Ord (PDFReference s) | |
Show (PDFReference s) |
A PDFString containing a strict bytestring
Document management
module Graphics.PDF.Document
Drawing
module Graphics.PDF.Shapes
Colors
module Graphics.PDF.Colors
Geometry
module Graphics.PDF.Coordinates
applyMatrix :: Matrix -> Draw ()Source
Apply a transformation matrix to the current coordinate frame
Text
module Graphics.PDF.Text
Navigation
module Graphics.PDF.Navigation
Annotations
module Graphics.PDF.Annotation
Actions
module Graphics.PDF.Action
Images
module Graphics.PDF.Image
Patterns
module Graphics.PDF.Pattern
Shading
module Graphics.PDF.Shading
Typesetting
module Graphics.PDF.Typesetting
module Graphics.PDF.Hyphenate