From 8b88d6f3fe9f80a11408d3e0773cbe290b1a4dba Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 8 Nov 2017 14:16:30 +0100 Subject: Clean up and speed up text searching. --- include/mupdf/fitz/util.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'include') 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. -- cgit v1.2.3