diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-07-27 14:24:55 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-07-27 14:48:25 +0200 |
commit | f7f89d9d0073e583bc78e6a5d4fc55a533caa566 (patch) | |
tree | a9e9ccb34f63376911c7f484798e295f818a0d05 /include/mupdf/fitz/structured-text.h | |
parent | 44cff76eb82cf11097e4e01348240e3556e22a7f (diff) | |
download | mupdf-f7f89d9d0073e583bc78e6a5d4fc55a533caa566.tar.xz |
Add text format document writer.
Improve HTML output using absolute positioning, and add XHTML output
for simpler semantic html output.
Diffstat (limited to 'include/mupdf/fitz/structured-text.h')
-rw-r--r-- | include/mupdf/fitz/structured-text.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/include/mupdf/fitz/structured-text.h b/include/mupdf/fitz/structured-text.h index 26634fff..61ee30ad 100644 --- a/include/mupdf/fitz/structured-text.h +++ b/include/mupdf/fitz/structured-text.h @@ -250,24 +250,28 @@ void fz_drop_stext_page(fz_context *ctx, fz_stext_page *page); void fz_analyze_text(fz_context *ctx, fz_stext_sheet *sheet, fz_stext_page *page); /* - fz_print_stext_sheet: Output a text sheet to a file as CSS. + fz_print_stext_page_as_html: Output a page to a file in HTML (visual) format. */ -void fz_print_stext_sheet(fz_context *ctx, fz_output *out, fz_stext_sheet *sheet); +void fz_print_stext_page_as_html(fz_context *ctx, fz_output *out, fz_stext_page *page); +void fz_print_stext_header_as_html(fz_context *ctx, fz_output *out); +void fz_print_stext_trailer_as_html(fz_context *ctx, fz_output *out); /* - fz_print_stext_page_html: Output a page to a file in HTML format. + fz_print_stext_page_as_xhtml: Output a page to a file in XHTML (semantic) format. */ -void fz_print_stext_page_html(fz_context *ctx, fz_output *out, fz_stext_page *page); +void fz_print_stext_page_as_xhtml(fz_context *ctx, fz_output *out, fz_stext_page *page); +void fz_print_stext_header_as_xhtml(fz_context *ctx, fz_output *out); +void fz_print_stext_trailer_as_xhtml(fz_context *ctx, fz_output *out); /* - fz_print_stext_page_xml: Output a page to a file in XML format. + fz_print_stext_page_as_xml: Output a page to a file in XML format. */ -void fz_print_stext_page_xml(fz_context *ctx, fz_output *out, fz_stext_page *page); +void fz_print_stext_page_as_xml(fz_context *ctx, fz_output *out, fz_stext_page *page); /* - fz_print_stext_page: Output a page to a file in UTF-8 format. + fz_print_stext_page_as_text: Output a page to a file in UTF-8 format. */ -void fz_print_stext_page(fz_context *ctx, fz_output *out, fz_stext_page *page); +void fz_print_stext_page_as_text(fz_context *ctx, fz_output *out, fz_stext_page *page); /* fz_search_stext_page: Search for occurrence of 'needle' in text page. |