diff options
Diffstat (limited to 'ios/document.h')
-rw-r--r-- | ios/document.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ios/document.h b/ios/document.h index 797b1e8f..ad0a8a62 100644 --- a/ios/document.h +++ b/ios/document.h @@ -15,8 +15,9 @@ struct document { + fz_context *ctx; pdf_xref *pdf; - xps_context *xps; + xps_document *xps; int number; pdf_page *pdf_page; xps_page *xps_page; @@ -24,14 +25,14 @@ struct document int hit_count; }; -struct document *open_document(char *filename); +struct document *open_document(fz_context *ctx, char *filename); int needs_password(struct document *doc); int authenticate_password(struct document *doc, char *password); fz_outline *load_outline(struct document *doc); int count_pages(struct document *doc); void measure_page(struct document *doc, int number, float *w, float *h); -void draw_page(struct document *doc, int number, fz_device *dev, fz_matrix ctm); -int search_page(struct document *doc, int number, char *needle); +void draw_page(struct document *doc, int number, fz_device *dev, fz_matrix ctm, fz_cookie *cookie); +int search_page(struct document *doc, int number, char *needle, fz_cookie *cookie); fz_bbox search_result_bbox(struct document *doc, int i); void close_document(struct document *doc); |