MuPDF.DocumentDocuments.
type t = documentA document.
Register handlers for all the standard document types supported in this build.
val open_document : string -> tOpen a document file and read its basic structure so pages and objects can be located. MuPDF will try to repair broken documents (without actually changing the file contents).
val close : document -> unitval count_pages : document -> intReturn the number of pages in document.
Load a given page number from a document. This may be much less efficient than loading by location (chapter+page) for some document types.
val last_page :
document ->
Mupdf_ffi.Types_generated.location Ctypes.structure
Mupdf_ffi.Mupdf__c_generated_functions__Function_description__Functions.returnGet the location for the last page in the document. Using this can be far more efficient in some cases than calling count_pages and using the page number.
val count_chapters : document -> intNumber of chapters in the document.