diff options
Diffstat (limited to 'platform/ios/Classes/MuPageViewReflow.m')
-rw-r--r-- | platform/ios/Classes/MuPageViewReflow.m | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/platform/ios/Classes/MuPageViewReflow.m b/platform/ios/Classes/MuPageViewReflow.m index 44f4f4ae..2c093fd9 100644 --- a/platform/ios/Classes/MuPageViewReflow.m +++ b/platform/ios/Classes/MuPageViewReflow.m @@ -5,8 +5,8 @@ NSString *textAsHtml(fz_document *doc, int pageNum) { NSString *str = nil; fz_page *page = NULL; - fz_text_sheet *sheet = NULL; - fz_text_page *text = NULL; + fz_stext_sheet *sheet = NULL; + fz_stext_page *text = NULL; fz_device *dev = NULL; fz_matrix ctm; fz_buffer *buf = NULL; @@ -22,9 +22,9 @@ NSString *textAsHtml(fz_document *doc, int pageNum) fz_try(ctx) { ctm = fz_identity; - sheet = fz_new_text_sheet(ctx); - text = fz_new_text_page(ctx); - dev = fz_new_text_device(ctx, sheet, text); + sheet = fz_new_stext_sheet(ctx); + text = fz_new_stext_page(ctx); + dev = fz_new_stext_device(ctx, sheet, text); page = fz_load_page(ctx, doc, pageNum); fz_run_page(ctx, page, dev, &ctm, NULL); fz_drop_device(ctx, dev); @@ -45,10 +45,10 @@ NSString *textAsHtml(fz_document *doc, int pageNum) //fz_printf(ctx, out, "p{margin:0;padding:0;}\n"); fz_printf(ctx, out, "</style>\n"); fz_printf(ctx, out, "<body style=\"margin:0\"><div style=\"padding:10px\" id=\"content\">"); - fz_print_text_page_html(ctx, out, text); + fz_print_stext_page_html(ctx, out, text); fz_printf(ctx, out, "</div></body>\n"); fz_printf(ctx, out, "<style>\n"); - fz_print_text_sheet(ctx, out, sheet); + fz_print_stext_sheet(ctx, out, sheet); fz_printf(ctx, out, "</style>\n</html>\n"); out = NULL; @@ -57,8 +57,8 @@ NSString *textAsHtml(fz_document *doc, int pageNum) } fz_always(ctx) { - fz_drop_text_page(ctx, text); - fz_drop_text_sheet(ctx, sheet); + fz_drop_stext_page(ctx, text); + fz_drop_stext_sheet(ctx, sheet); fz_drop_device(ctx, dev); fz_drop_output(ctx, out); fz_drop_buffer(ctx, buf); |