Copyright | (c) 2006-2012, alpheccar.org |
---|---|
License | BSD-style |
Maintainer | misc@NOSPAMalpheccar.org |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell98 |
Graphics.PDF.Image
Description
PDF Images
- data PDFJpeg
- data JpegFile
- data RawImage
- createPDFJpeg :: JpegFile -> PDF (PDFReference PDFJpeg)
- readJpegFile :: FilePath -> IO (Either String JpegFile)
- jpegBounds :: JpegFile -> (PDFFloat, PDFFloat)
- createPDFRawImage :: Double -> Double -> Bool -> Vector Word32 -> PDF (PDFReference RawImage)
- readJpegDataURL :: String -> Either String JpegFile
Images
Types
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
readJpegDataURL :: String -> Either String JpegFile Source
Reads a data URL string, and returns a JpegFile. The incoming string must be a correctly formatted data URL for a JPEG. You can convert jpeg files to data URLs at the following web site: http://dataurl.net/#dataurlmaker