Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2020
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. EMSCRIPTEN_KEEPALIVE
  2. char getAnnotations(fz_document doc, int page)
  3. {
  4. static unsigned char *data = NULL;
  5. fz_stext_page *text;
  6. fz_buffer *buf;
  7. fz_output *out;
  8. pdf_annot *annot;
  9.  
  10. fz_free(ctx, data);
  11. data = NULL;
  12.  
  13. loadPage(doc, number);
  14.  
  15. buf = fz_new_buffer(ctx, 0);
  16. {
  17. out = fz_new_output_with_buffer(ctx, buf);
  18. fz_write_printf(ctx, out, "<annotations>");
  19. {
  20. annot = pdf_first_annot(ctx, page);
  21.  
  22. while (annot)
  23. {
  24. ....
  25. annot = pdf_next_annot(ctx, annot);
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement