typedef struct fz_html fz_html
HTML types required
typedef struct fz_html_font_set fz_html_font_set
typedef struct fz_html_hyph_set fz_html_hyph_set
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
{
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;
}
fz_document *
fz_htdoc_open_document_with_buffer (
fz_context *ctx,
fz_archive *dir,
fz_buffer *buf,
const fz_htdoc_format *format
)
fz_document *
fz_htdoc_open_document_with_stream_and_dir (
fz_context *ctx,
fz_stream *stm,
fz_archive *dir,
const fz_htdoc_format *format
)