package camlpdf

  1. Overview
  2. Docs
Read, write and modify PDF files

Install

Dune Dependency

Authors

Maintainers

Sources

v2.8.tar.gz
md5=878c5f0e655bc101eb4c43c04843b8af
sha512=a1e47003876494932a4a584f8e20f9d99085044cedf418997be97198b28f49ec026e97530b691afc2722e021d19e8327a1f0155e7e231262a362d722683ac1c4

doc/camlpdf/Pdfimage/index.html

Module Pdfimage

Extract Images

type pixel_layout =
  1. | BPP1
  2. | BPP8
  3. | BPP24
  4. | BPP48
type t =
  1. | JPEG of Pdfio.bytes * float list option
  2. | JPEG2000 of Pdfio.bytes * float list option
  3. | JBIG2 of Pdfio.bytes * float list option * int option
  4. | Raw of int * int * pixel_layout * Pdfio.bytes
val get_image_24bpp : Pdf.t -> Pdf.pdfobject -> Pdf.pdfobject -> t

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.

Given a PDF, an image and a /Resources dictionary, return the colourspace of the image

val bpc : Pdf.t -> Pdf.pdfobject -> Pdf.pdfobject option

Given a PDF and an image, return any /BPC entry

OCaml

Innovation. Community. Security.