23#ifndef MUPDF_FITZ_DOCUMENT_H
24#define MUPDF_FITZ_DOCUMENT_H
610#define fz_new_derived_document(C,M) ((M*)Memento_label(fz_new_document_of_size(C, sizeof(M)), #M))
840#define fz_new_derived_page(CTX,TYPE,DOC) \
841 ((TYPE *)Memento_label(fz_new_page_of_size(CTX,sizeof(TYPE),DOC),#TYPE))
974#define FZ_META_FORMAT "format"
975#define FZ_META_ENCRYPTION "encryption"
977#define FZ_META_INFO "info:"
978#define FZ_META_INFO_TITLE "info:Title"
979#define FZ_META_INFO_AUTHOR "info:Author"
980#define FZ_META_INFO_SUBJECT "info:Subject"
981#define FZ_META_INFO_KEYWORDS "info:Keywords"
982#define FZ_META_INFO_CREATOR "info:Creator"
983#define FZ_META_INFO_PRODUCER "info:Producer"
984#define FZ_META_INFO_CREATIONDATE "info:CreationDate"
985#define FZ_META_INFO_MODIFICATIONDATE "info:ModDate"
int fz_page_separation_disabled_fn(fz_context *ctx, fz_page *page, int separation)
Definition document.h:322
int fz_count_chapters(fz_context *ctx, fz_document *doc)
fz_colorspace * fz_document_output_intent(fz_context *ctx, fz_document *doc)
fz_page * fz_keep_page(fz_context *ctx, fz_page *page)
fz_document * fz_open_accelerated_document_with_stream_and_dir(fz_context *ctx, const char *magic, fz_stream *stream, fz_stream *accel, fz_archive *dir)
void fz_delete_link(fz_context *ctx, fz_page *page, fz_link *link)
fz_document * fz_open_document_with_buffer(fz_context *ctx, const char *magic, fz_buffer *buffer)
int fz_document_lookup_metadata_fn(fz_context *ctx, fz_document *doc, const char *key, char *buf, size_t size)
Definition document.h:232
fz_page * fz_load_chapter_page(fz_context *ctx, fz_document *doc, int chapter, int page)
fz_document * fz_open_accelerated_document_with_stream(fz_context *ctx, const char *magic, fz_stream *stream, fz_stream *accel)
fz_rect fz_bound_page_box(fz_context *ctx, fz_page *page, fz_box_type box)
void fz_document_layout_fn(fz_context *ctx, fz_document *doc)
Definition document.h:185
fz_outline * fz_document_load_outline_fn(fz_context *ctx, fz_document *doc)
Definition document.h:167
int fz_count_pages(fz_context *ctx, fz_document *doc)
void fz_document_run_structure_fn(fz_context *ctx, fz_document *doc, fz_device *dev, fz_cookie *cookie)
Definition document.h:254
fz_location fz_location_from_page_number(fz_context *ctx, fz_document *doc, int number)
void fz_document_output_accelerator_fn(fz_context *ctx, fz_document *doc, fz_output *out)
Definition document.h:249
void fz_page_control_separation_fn(fz_context *ctx, fz_page *page, int separation, int disable)
Definition document.h:315
fz_outline * fz_load_outline(fz_context *ctx, fz_document *doc)
fz_page * fz_new_page_of_size(fz_context *ctx, int size, fz_document *doc)
void fz_style_document(fz_context *ctx, fz_document *doc, int publisher_css, const char *user_css)
void fz_document_page_label_fn(fz_context *ctx, fz_document *doc, int chapter, int page, char *buf, size_t size)
Definition document.h:225
fz_document * fz_document_open_fn(fz_context *ctx, const fz_document_handler *handler, fz_stream *stream, fz_stream *accel, fz_archive *dir, void *recognize_state)
Definition document.h:370
void fz_save_accelerator(fz_context *ctx, fz_document *doc, const char *accel)
const fz_document_handler * fz_recognize_document(fz_context *ctx, const char *magic)
fz_bookmark fz_document_make_bookmark_fn(fz_context *ctx, fz_document *doc, fz_location loc)
Definition document.h:267
fz_transition * fz_page_presentation(fz_context *ctx, fz_page *page, fz_transition *transition, float *duration)
int fz_page_uses_overprint_fn(fz_context *ctx, fz_page *page)
Definition document.h:335
void fz_drop_document(fz_context *ctx, fz_document *doc)
void fz_run_page(fz_context *ctx, fz_page *page, fz_device *dev, fz_matrix transform, fz_cookie *cookie)
int fz_document_recognize_content_fn(fz_context *ctx, const fz_document_handler *handler, fz_stream *stream, fz_archive *dir, void **recognize_state, fz_document_recognize_state_free_fn **free_recognize_state)
Definition document.h:412
const fz_document_handler * fz_recognize_document_content(fz_context *ctx, const char *filename)
fz_separations * fz_page_separations_fn(fz_context *ctx, fz_page *page)
Definition document.h:329
int fz_document_recognize_fn(fz_context *ctx, const fz_document_handler *handler, const char *magic)
Definition document.h:385
void fz_document_set_metadata_fn(fz_context *ctx, fz_document *doc, const char *key, const char *value)
Definition document.h:239
fz_rect fz_bound_page(fz_context *ctx, fz_page *page)
void fz_register_document_handlers(fz_context *ctx)
@ FZ_LAYOUT_A5_W
Definition document.h:96
@ FZ_LAYOUT_UK_B_FORMAT_W
Definition document.h:86
@ FZ_LAYOUT_UK_C_FORMAT_EM
Definition document.h:93
@ FZ_LAYOUT_UK_B_FORMAT_EM
Definition document.h:88
@ FZ_LAYOUT_UK_B_FORMAT_H
Definition document.h:87
@ FZ_LAYOUT_UK_A_FORMAT_H
Definition document.h:82
@ FZ_LAYOUT_UK_A_FORMAT_W
Definition document.h:81
@ FZ_LAYOUT_UK_C_FORMAT_H
Definition document.h:92
@ FZ_LAYOUT_KINDLE_EM
Definition document.h:68
@ FZ_LAYOUT_A5_EM
Definition document.h:98
@ FZ_LAYOUT_US_TRADE_EM
Definition document.h:78
@ FZ_LAYOUT_UK_A_FORMAT_EM
Definition document.h:83
@ FZ_LAYOUT_A5_H
Definition document.h:97
@ FZ_LAYOUT_US_TRADE_H
Definition document.h:77
@ FZ_LAYOUT_US_TRADE_W
Definition document.h:76
@ FZ_LAYOUT_KINDLE_W
Definition document.h:66
@ FZ_LAYOUT_KINDLE_H
Definition document.h:67
@ FZ_LAYOUT_US_POCKET_W
Definition document.h:71
@ FZ_DEFAULT_LAYOUT_H
Definition document.h:102
@ FZ_LAYOUT_US_POCKET_H
Definition document.h:72
@ FZ_LAYOUT_UK_C_FORMAT_W
Definition document.h:91
@ FZ_DEFAULT_LAYOUT_EM
Definition document.h:103
@ FZ_DEFAULT_LAYOUT_W
Definition document.h:101
@ FZ_LAYOUT_US_POCKET_EM
Definition document.h:73
int fz_has_permission(fz_context *ctx, fz_document *doc, fz_permission p)
const char * fz_page_label(fz_context *ctx, fz_page *page, char *buf, int size)
fz_outline_iterator * fz_document_outline_iterator_fn(fz_context *ctx, fz_document *doc)
Definition document.h:173
int fz_document_supports_accelerator(fz_context *ctx, fz_document *doc)
char * fz_document_format_link_uri_fn(fz_context *ctx, fz_document *doc, fz_link_dest dest)
Definition document.h:199
fz_rect fz_page_bound_page_fn(fz_context *ctx, fz_page *page, fz_box_type box)
Definition document.h:287
int fz_needs_password(fz_context *ctx, fz_document *doc)
int fz_lookup_metadata(fz_context *ctx, fz_document *doc, const char *key, char *buf, size_t size)
int fz_document_has_permission_fn(fz_context *ctx, fz_document *doc, fz_permission permission)
Definition document.h:160
const fz_document_handler * fz_recognize_document_stream_and_dir_content(fz_context *ctx, fz_stream *stream, fz_archive *dir, const char *magic)
const char * fz_string_from_box_type(fz_box_type box)
void fz_document_drop_fn(fz_context *ctx, fz_document *doc)
Definition document.h:139
fz_document * fz_open_document_with_stream_and_dir(fz_context *ctx, const char *magic, fz_stream *stream, fz_archive *dir)
void fz_run_page_contents(fz_context *ctx, fz_page *page, fz_device *dev, fz_matrix transform, fz_cookie *cookie)
fz_colorspace * fz_document_output_intent_fn(fz_context *ctx, fz_document *doc)
Definition document.h:244
fz_link * fz_page_create_link_fn(fz_context *ctx, fz_page *page, fz_rect bbox, const char *uri)
Definition document.h:341
fz_location fz_last_page(fz_context *ctx, fz_document *doc)
fz_document * fz_open_accelerated_document(fz_context *ctx, const char *filename, const char *accel)
void * fz_process_opened_page_fn(fz_context *ctx, fz_page *page, void *state)
Definition document.h:430
fz_transition * fz_page_page_presentation_fn(fz_context *ctx, fz_page *page, fz_transition *transition, float *duration)
Definition document.h:308
int fz_is_document_reflowable(fz_context *ctx, fz_document *doc)
fz_link * fz_create_link(fz_context *ctx, fz_page *page, fz_rect bbox, const char *uri)
@ FZ_LAYOUT_NEEDS_UPDATE
Definition document.h:115
@ FZ_LAYOUT_APPLIED
Definition document.h:116
fz_link * fz_page_load_links_fn(fz_context *ctx, fz_page *page)
Definition document.h:300
char * fz_format_link_uri(fz_context *ctx, fz_document *doc, fz_link_dest dest)
fz_page * fz_document_load_page_fn(fz_context *ctx, fz_document *doc, int chapter, int page)
Definition document.h:219
fz_link_dest fz_document_resolve_link_dest_fn(fz_context *ctx, fz_document *doc, const char *uri)
Definition document.h:192
fz_outline_iterator * fz_new_outline_iterator(fz_context *ctx, fz_document *doc)
int fz_document_count_pages_fn(fz_context *ctx, fz_document *doc, int chapter)
Definition document.h:213
fz_box_type
Definition document.h:42
@ FZ_ART_BOX
Definition document.h:47
@ FZ_CROP_BOX
Definition document.h:44
@ FZ_BLEED_BOX
Definition document.h:45
@ FZ_TRIM_BOX
Definition document.h:46
@ FZ_UNKNOWN_BOX
Definition document.h:48
@ FZ_MEDIA_BOX
Definition document.h:43
void fz_page_run_page_fn(fz_context *ctx, fz_page *page, fz_device *dev, fz_matrix transform, fz_cookie *cookie)
Definition document.h:294
fz_location fz_clamp_location(fz_context *ctx, fz_document *doc, fz_location loc)
@ FZ_STYLE_NEEDS_UPDATE
Definition document.h:109
@ FZ_STYLE_APPLIED
Definition document.h:110
@ FZ_STYLE_NEEDS_DEFAULT
Definition document.h:108
void fz_run_page_annots(fz_context *ctx, fz_page *page, fz_device *dev, fz_matrix transform, fz_cookie *cookie)
fz_box_type fz_box_type_from_string(const char *name)
void fz_page_drop_page_fn(fz_context *ctx, fz_page *page)
Definition document.h:280
void fz_run_page_widgets(fz_context *ctx, fz_page *page, fz_device *dev, fz_matrix transform, fz_cookie *cookie)
fz_document * fz_open_document_with_stream(fz_context *ctx, const char *magic, fz_stream *stream)
fz_location fz_resolve_link(fz_context *ctx, fz_document *doc, const char *uri, float *xp, float *yp)
const fz_document_handler * fz_recognize_document_stream_content(fz_context *ctx, fz_stream *stream, const char *magic)
fz_location fz_lookup_bookmark(fz_context *ctx, fz_document *doc, fz_bookmark mark)
fz_link_dest fz_resolve_link_dest(fz_context *ctx, fz_document *doc, const char *uri)
int fz_page_uses_overprint(fz_context *ctx, fz_page *page)
int fz_document_count_chapters_fn(fz_context *ctx, fz_document *doc)
Definition document.h:206
void fz_layout_document(fz_context *ctx, fz_document *doc, float w, float h, float em)
fz_bookmark fz_make_bookmark(fz_context *ctx, fz_document *doc, fz_location loc)
void fz_run_document_structure(fz_context *ctx, fz_document *doc, fz_device *dev, fz_cookie *cookie)
fz_location fz_next_page(fz_context *ctx, fz_document *doc, fz_location loc)
fz_document * fz_keep_document(fz_context *ctx, fz_document *doc)
int fz_count_chapter_pages(fz_context *ctx, fz_document *doc, int chapter)
intptr_t fz_bookmark
Definition document.h:39
int fz_document_authenticate_password_fn(fz_context *ctx, fz_document *doc, const char *password)
Definition document.h:153
fz_location fz_previous_page(fz_context *ctx, fz_document *doc, fz_location loc)
int fz_document_needs_password_fn(fz_context *ctx, fz_document *doc)
Definition document.h:146
int fz_authenticate_password(fz_context *ctx, fz_document *doc, const char *password)
void fz_set_metadata(fz_context *ctx, fz_document *doc, const char *key, const char *value)
void fz_drop_page(fz_context *ctx, fz_page *page)
void fz_output_accelerator(fz_context *ctx, fz_document *doc, fz_output *accel)
fz_document * fz_document_as_pdf_fn(fz_context *ctx, fz_document *doc)
Definition document.h:261
fz_separations * fz_page_separations(fz_context *ctx, fz_page *page)
void fz_register_document_handler(fz_context *ctx, const fz_document_handler *handler)
void fz_document_recognize_state_free_fn(fz_context *ctx, void *state)
Definition document.h:387
void fz_page_delete_link_fn(fz_context *ctx, fz_page *page, fz_link *link)
Definition document.h:346
void * fz_new_document_of_size(fz_context *ctx, int size)
void * fz_process_opened_pages(fz_context *ctx, fz_document *doc, fz_process_opened_page_fn *process_openend_page, void *state)
void fz_document_handler_fin_fn(fz_context *ctx, const fz_document_handler *handler)
Definition document.h:422
fz_location fz_document_lookup_bookmark_fn(fz_context *ctx, fz_document *doc, fz_bookmark mark)
Definition document.h:273
fz_permission
Definition document.h:120
@ FZ_PERMISSION_ANNOTATE
Definition document.h:124
@ FZ_PERMISSION_COPY
Definition document.h:122
@ FZ_PERMISSION_ACCESSIBILITY
Definition document.h:126
@ FZ_PERMISSION_ASSEMBLE
Definition document.h:127
@ FZ_PERMISSION_EDIT
Definition document.h:123
@ FZ_PERMISSION_PRINT
Definition document.h:121
@ FZ_PERMISSION_FORM
Definition document.h:125
@ FZ_PERMISSION_PRINT_HQ
Definition document.h:128
int fz_page_number_from_location(fz_context *ctx, fz_document *doc, fz_location loc)
fz_link * fz_load_links(fz_context *ctx, fz_page *page)
fz_page * fz_load_page(fz_context *ctx, fz_document *doc, int number)
fz_document * fz_open_document(fz_context *ctx, const char *filename)
void fz_document_style_fn(fz_context *ctx, fz_document *doc)
Definition document.h:179
struct fz_separations fz_separations
Definition separation.h:43
Definition document.h:1128
const char ** mimetypes
Definition document.h:1133
int wants_dir
Definition document.h:1135
fz_document_open_fn * open
Definition document.h:1131
const char ** extensions
Definition document.h:1132
int wants_file
Definition document.h:1136
fz_document_handler_fin_fn * fin
Definition document.h:1137
fz_document_recognize_fn * recognize
Definition document.h:1130
fz_document_recognize_content_fn * recognize_content
Definition document.h:1134
Definition document.h:1080
fz_document_page_label_fn * page_label
Definition document.h:1097
fz_document_count_pages_fn * count_pages
Definition document.h:1095
fz_document_set_metadata_fn * set_metadata
Definition document.h:1099
fz_document_resolve_link_dest_fn * resolve_link_dest
Definition document.h:1092
fz_document_drop_fn * drop_document
Definition document.h:1082
fz_document_load_page_fn * load_page
Definition document.h:1096
fz_document_make_bookmark_fn * make_bookmark
Definition document.h:1090
int publisher_css
Definition document.h:1110
fz_document_run_structure_fn * run_structure
Definition document.h:1102
fz_document_outline_iterator_fn * outline_iterator
Definition document.h:1087
fz_document_load_outline_fn * load_outline
Definition document.h:1086
fz_document_format_link_uri_fn * format_link_uri
Definition document.h:1093
fz_document_lookup_metadata_fn * lookup_metadata
Definition document.h:1098
fz_page * open
Definition document.h:1124
fz_document_output_intent_fn * get_output_intent
Definition document.h:1100
float layout_h
Definition document.h:1115
fz_document_layout_fn * layout
Definition document.h:1089
fz_document_authenticate_password_fn * authenticate_password
Definition document.h:1084
float layout_em
Definition document.h:1115
fz_document_needs_password_fn * needs_password
Definition document.h:1083
fz_document_lookup_bookmark_fn * lookup_bookmark
Definition document.h:1091
fz_document_as_pdf_fn * as_pdf
Definition document.h:1103
char * user_css
Definition document.h:1111
fz_document_output_accelerator_fn * output_accelerator
Definition document.h:1101
int is_reflowable
Definition document.h:1105
int id
Definition document.h:1106
int did_style
Definition document.h:1109
float layout_w
Definition document.h:1115
fz_document_style_fn * style
Definition document.h:1088
fz_document_has_permission_fn * has_permission
Definition document.h:1085
int refs
Definition document.h:1081
int did_layout
Definition document.h:1114
fz_document_count_chapters_fn * count_chapters
Definition document.h:1094
Definition geometry.h:388
Definition document.h:1044
fz_page ** prev
Definition document.h:1070
fz_page_separation_disabled_fn * separation_disabled
Definition document.h:1059
fz_page_separations_fn * separations
Definition document.h:1060
fz_page_bound_page_fn * bound_page
Definition document.h:1052
int incomplete
Definition document.h:1049
fz_page_control_separation_fn * control_separation
Definition document.h:1058
fz_page_run_page_fn * run_page_contents
Definition document.h:1053
int chapter
Definition document.h:1047
int refs
Definition document.h:1045
fz_page * next
Definition document.h:1070
fz_page_run_page_fn * run_page_annots
Definition document.h:1054
int number
Definition document.h:1048
fz_page_uses_overprint_fn * overprint
Definition document.h:1061
fz_page_load_links_fn * load_links
Definition document.h:1056
fz_page_create_link_fn * create_link
Definition document.h:1062
fz_page_drop_page_fn * drop_page
Definition document.h:1051
fz_document * doc
Definition document.h:1046
fz_page_page_presentation_fn * page_presentation
Definition document.h:1057
fz_page_run_page_fn * run_page_widgets
Definition document.h:1055
fz_page_delete_link_fn * delete_link
Definition document.h:1063
int in_doc
Definition document.h:1050
Definition geometry.h:231
Definition transition.h:46