Copyright | (c) 2006-2016 alpheccar.org |
---|---|
License | BSD-style |
Maintainer | misc@NOSPAMalpheccar.org |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
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
- data PDF a
- runPdf :: String -> PDFDocumentInfo -> PDFRect -> PDF a -> IO ()
- pdfByteString :: PDFDocumentInfo -> PDFRect -> PDF a -> ByteString
- data PDFRect = PDFRect !Double !Double !Double !Double
- 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.Fonts.Font
- module Graphics.PDF.Fonts.StandardFont
- module Graphics.PDF.Fonts.Type1
- readType1Font :: FilePath -> FilePath -> IO Type1FontStructure
- mkType1Font :: Type1FontStructure -> PDF AnyFont
- module Graphics.PDF.Typesetting
HPDF
PDF Monad
The PDF Monad
Instances
Monad PDF Source # | |
Functor PDF Source # | |
Applicative PDF Source # | |
PDFGlobals PDF Source # | |
Defined in Graphics.PDF.Draw bounds :: PDFXObject a => PDFReference a -> PDF (PDFFloat, PDFFloat) Source # |
:: 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 |
-> ByteString |
Generate a lazy bytestring for the PDF
PDF Common Types
data PDFReference s Source #
A reference to a PDF object
Instances
A PDFString containing a strict bytestring (serialied as UTF16BE)
A PDF Page object
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
Fonts
module Graphics.PDF.Fonts.Font
module Graphics.PDF.Fonts.Type1
readType1Font :: FilePath -> FilePath -> IO Type1FontStructure Source #
Create a type 1 font
Typesetting
module Graphics.PDF.Typesetting