MuPDF X.Y.Z

fitz/html.h

Index

typedef

struct

enum

function

Html

typedef fz_html

typedef struct fz_html fz_html

HTML types required

typedef fz_html_font_set

typedef struct fz_html_font_set fz_html_font_set

typedef fz_html_hyph_set

typedef struct fz_html_hyph_set fz_html_hyph_set

enum fz_html_flavor

enum fz_html_flavor
{
        FZ_HTML_FLAVOR_DEFAULT = 0,
        FZ_HTML_FLAVOR_MOBI = 1,
        FZ_HTML_FLAVOR_MARKDOWN = 2,
        FZ_HTML_FLAVOR_FICTIONBOOK2 = 3
}

struct fz_htdoc_format

struct fz_htdoc_format
{
        const char *format_name;
        fz_buffer *(*convert_to_html)(fz_context *ctx, fz_html_font_set *set, fz_buffer *buf, fz_archive *dir);
        int try_xml;
        int try_html5;
        fz_html_flavor flavor;
}

function fz_htdoc_open_document_with_buffer

fz_document *
fz_htdoc_open_document_with_buffer (
        fz_context *ctx,
        fz_archive *dir,
        fz_buffer *buf,
        const fz_htdoc_format *format
)

function fz_htdoc_open_document_with_stream_and_dir

fz_document *
fz_htdoc_open_document_with_stream_and_dir (
        fz_context *ctx,
        fz_stream *stm,
        fz_archive *dir,
        const fz_htdoc_format *format
)