diff options
Diffstat (limited to 'pdf/mupdf.h')
-rw-r--r-- | pdf/mupdf.h | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/pdf/mupdf.h b/pdf/mupdf.h index 6ebe4437..16b0f58b 100644 --- a/pdf/mupdf.h +++ b/pdf/mupdf.h @@ -88,10 +88,10 @@ void pdf_print_obj(pdf_obj *obj); void pdf_print_ref(pdf_obj *obj); #endif -char *pdf_to_utf8(fz_context *ctx, pdf_obj *src); -unsigned short *pdf_to_ucs2(fz_context *ctx, pdf_obj *src); /* sumatrapdf */ -pdf_obj *pdf_to_utf8_name(fz_context *ctx, pdf_obj *src); -char *pdf_from_ucs2(fz_context *ctx, unsigned short *str); +char *pdf_to_utf8(pdf_document *xref, pdf_obj *src); +unsigned short *pdf_to_ucs2(pdf_document *xref, pdf_obj *src); /* sumatrapdf */ +pdf_obj *pdf_to_utf8_name(pdf_document *xref, pdf_obj *src); +char *pdf_from_ucs2(pdf_document *xref, unsigned short *str); fz_rect pdf_to_rect(fz_context *ctx, pdf_obj *array); fz_matrix pdf_to_matrix(fz_context *ctx, pdf_obj *array); @@ -235,6 +235,29 @@ fz_rect pdf_bound_page(pdf_document *doc, pdf_page *page); */ void pdf_free_page(pdf_document *doc, pdf_page *page); +typedef struct pdf_annot_s pdf_annot; + +/* + pdf_first_annot: Return the first annotation on a page. + + Does not throw exceptions. +*/ +pdf_annot *pdf_first_annot(pdf_document *doc, pdf_page *page); + +/* + pdf_next_annot: Return the next annotation on a page. + + Does not throw exceptions. +*/ +pdf_annot *pdf_next_annot(pdf_document *doc, pdf_annot *annot); + +/* + pdf_bound_annot: Return the rectangle for an annotation on a page. + + Does not throw exceptions. +*/ +fz_rect pdf_bound_annot(pdf_document *doc, pdf_annot *annot); + /* pdf_run_page: Interpret a loaded page and render it on a device. |