summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-11-08 14:16:30 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-11-08 17:57:09 +0100
commit8b88d6f3fe9f80a11408d3e0773cbe290b1a4dba (patch)
tree7cbce1511d3101f24c10b572e097659a5f89dcef /include
parentfb51a9744d6d356371b2ad73f2d3da972012be1f (diff)
downloadmupdf-8b88d6f3fe9f80a11408d3e0773cbe290b1a4dba.tar.xz
Clean up and speed up text searching.
Diffstat (limited to 'include')
-rw-r--r--include/mupdf/fitz/util.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/include/mupdf/fitz/util.h b/include/mupdf/fitz/util.h
index 4b827cad..49409cbb 100644
--- a/include/mupdf/fitz/util.h
+++ b/include/mupdf/fitz/util.h
@@ -43,14 +43,12 @@ fz_stext_page *fz_new_stext_page_from_page_number(fz_context *ctx, fz_document *
fz_stext_page *fz_new_stext_page_from_display_list(fz_context *ctx, fz_display_list *list, const fz_stext_options *options);
/*
- fz_new_buffer_from_stext_page: Convert structured text into plain text, cropped by the selection rectangle.
- Use fz_infinite_rect to extract all the text on the page. If 'crlf' is true, lines are separated by '\r\n',
- otherwise '\n'.
+ fz_new_buffer_from_stext_page: Convert structured text into plain text.
*/
-fz_buffer *fz_new_buffer_from_stext_page(fz_context *ctx, fz_stext_page *text, const fz_rect *sel, int crlf);
-fz_buffer *fz_new_buffer_from_page(fz_context *ctx, fz_page *page, const fz_rect *sel, int crlf, const fz_stext_options *options);
-fz_buffer *fz_new_buffer_from_page_number(fz_context *ctx, fz_document *doc, int number, const fz_rect *sel, int crlf, const fz_stext_options *options);
-fz_buffer *fz_new_buffer_from_display_list(fz_context *ctx, fz_display_list *list, const fz_rect *sel, int crlf, const fz_stext_options *options);
+fz_buffer *fz_new_buffer_from_stext_page(fz_context *ctx, fz_stext_page *text);
+fz_buffer *fz_new_buffer_from_page(fz_context *ctx, fz_page *page, const fz_stext_options *options);
+fz_buffer *fz_new_buffer_from_page_number(fz_context *ctx, fz_document *doc, int number, const fz_stext_options *options);
+fz_buffer *fz_new_buffer_from_display_list(fz_context *ctx, fz_display_list *list, const fz_stext_options *options);
/*
fz_search_page: Search for the 'needle' text on the page.