package oepub

  1. Overview
  2. Docs

Module representing the content.opf file in the epub archive.

See EpubArchive to generate a Opf.t from the epub archive.

type t

type representing the content.opf file

val create : ?author:string -> title:string -> Metadata.entries -> Manifest.ref Manifest.t -> Spine.t -> t

create ?author ~title metadata manifest spine creates a representation of the content.opf.

val title : t -> string

title opf returns the title of book.

val author : t -> string option

author opf returns the author of the book

val metadata : t -> Metadata.entries

metadata opf returns the metadata associated.

val manifest : t -> Manifest.ref Manifest.t

manifest opf returns the manifest.

val spine : t -> Spine.t

spine opf returns the spine associated.

OCaml

Innovation. Community. Security.