HPDF-1.4.7: Generation of PDF documents

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

Graphics.PDF.Image

Contents

Description

PDF Images

Synopsis

Images

Types

data PDFJpeg Source

A Jpeg PDF object

data JpegFile Source

A Jpeg file

data RawImage Source

A raw image

Functions

createPDFJpeg :: JpegFile -> PDF (PDFReference PDFJpeg) Source

Use an abstract description of a Jpeg to return a PDFReference that can be used to manipulate the Jpeg in the context of the PDF document

readJpegFile :: FilePath -> IO (Either String JpegFile) Source

Read a JPEG file and return an abstract description of its content or an error The read is not lazy. The whole image will be loaded into memory

jpegBounds :: JpegFile -> (PDFFloat, PDFFloat) Source

Get the JPEG bounds

createPDFRawImage Source

Arguments

:: Double

Width

-> Double

Height

-> Bool

Interpolation

-> Vector Word32

RGBA pixels (A component not used y the PDF document)

-> PDF (PDFReference RawImage)