Module Pdfimage


module Pdfimage: sig .. end
Extract Images


type pixel_layout =
| BPP1
| BPP8
| BPP24
| BPP48

type image =
| JPEG of Utility.bytestream
| JPEG2000 of Utility.bytestream
| JBIG2 of Utility.bytestream
| Raw of int * int * pixel_layout * Utility.bytestream
val get_image_24bpp : Pdf.pdfdoc -> Pdf.pdfobject -> Pdf.pdfobject -> image
Given a pdf document, resources dictionary and a stream representing an image, return a triple : width, height, and a stream of (width * height * 3) bytes RGBRGB etc. In all instances, if JPEG or JPEG2000 or JBIG2 is the compression method, data is returned still encoded.