package oepub

  1. Overview
  2. Docs

ImagedText drives Book.Make to build a book where each chapter contains a list of either an image (bytes of the image) or some texts.

type t = (string, string) Either.t list
val empty : t
val finalize : Buffer.t -> t -> t
val of_file : filename:string -> media_type:string -> title:string -> EpubArchive.t -> Opf.t -> Toc.t -> t Book.Chapter.t list -> t -> Buffer.t -> string -> (string * t * Buffer.t * t Book.Chapter.t list) option
val of_tag : tag:string -> title:string -> dirname:string -> (string * string) list -> EpubArchive.t -> Opf.t -> Toc.t -> t Book.Chapter.t list -> t -> Buffer.t -> string * t * Buffer.t * t Book.Chapter.t list
OCaml

Innovation. Community. Security.