package cpdf

  1. Overview
  2. Docs

Read PNG files

type t = {
  1. width : int;
  2. height : int;
  3. bitdepth : int;
  4. colortype : int;
  5. idat : Pdfio.bytes;
}

PNG files, represented only to the extent required to insert as PDF image objects

val read_png : Pdfio.input -> t

Read a non-interlaced, non-alpha, non-palette PNG for inclusion in a PDF file.

OCaml

Innovation. Community. Security.