Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EMSCRIPTEN_KEEPALIVE
- char getAnnotations(fz_document doc, int page)
- {
- static unsigned char *data = NULL;
- fz_stext_page *text;
- fz_buffer *buf;
- fz_output *out;
- pdf_annot *annot;
- fz_free(ctx, data);
- data = NULL;
- loadPage(doc, number);
- buf = fz_new_buffer(ctx, 0);
- {
- out = fz_new_output_with_buffer(ctx, buf);
- fz_write_printf(ctx, out, "<annotations>");
- {
- annot = pdf_first_annot(ctx, page);
- while (annot)
- {
- ....
- annot = pdf_next_annot(ctx, annot);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement