mupdf
Loading...
Searching...
No Matches
document.h
Go to the documentation of this file.
1// Copyright (C) 2004-2026 Artifex Software, Inc.
2//
3// This file is part of MuPDF.
4//
5// MuPDF is free software: you can redistribute it and/or modify it under the
6// terms of the GNU Affero General Public License as published by the Free
7// Software Foundation, either version 3 of the License, or (at your option)
8// any later version.
9//
10// MuPDF is distributed in the hope that it will be useful, but WITHOUT ANY
11// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12// FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
13// details.
14//
15// You should have received a copy of the GNU Affero General Public License
16// along with MuPDF. If not, see <https://www.gnu.org/licenses/agpl-3.0.en.html>
17//
18// Alternative licensing terms are available from the licensor.
19// For commercial licensing, see <https://www.artifex.com/> or contact
20// Artifex Software, Inc., 39 Mesa Street, Suite 108A, San Francisco,
21// CA 94129, USA, for further information.
22
23#ifndef MUPDF_FITZ_DOCUMENT_H
24#define MUPDF_FITZ_DOCUMENT_H
25
26#include "mupdf/fitz/system.h"
27#include "mupdf/fitz/types.h"
28#include "mupdf/fitz/context.h"
29#include "mupdf/fitz/geometry.h"
30#include "mupdf/fitz/device.h"
32#include "mupdf/fitz/link.h"
33#include "mupdf/fitz/outline.h"
35#include "mupdf/fitz/archive.h"
36
38typedef struct fz_page fz_page;
39typedef intptr_t fz_bookmark;
40
50
53
57static inline fz_location fz_make_location(int chapter, int page)
58{
59 fz_location loc = { chapter, page };
60 return loc;
61}
62
63enum
64{
65 /* 6in at 4:3 */
69
70 /* 4.25 x 6.87 in */
74
75 /* 5.5 x 8.5 in */
79
80 /* 110 x 178 mm */
84
85 /* 129 x 198 mm */
89
90 /* 135 x 216 mm */
94
95 /* 148 x 210 mm */
99
100 /* Default to A5 */
104};
105
106enum
107{
111};
112
113enum
114{
117};
118
131
140
147
153typedef int (fz_document_authenticate_password_fn)(fz_context *ctx, fz_document *doc, const char *password);
154
161
168
174
180
186
193
200
207
214
220
225typedef void (fz_document_page_label_fn)(fz_context *ctx, fz_document *doc, int chapter, int page, char *buf, size_t size);
226
232typedef int (fz_document_lookup_metadata_fn)(fz_context *ctx, fz_document *doc, const char *key, char *buf, size_t size);
233
239typedef void (fz_document_set_metadata_fn)(fz_context *ctx, fz_document *doc, const char *key, const char *value);
240
245
250
255
262
268
274
280typedef void (fz_page_drop_page_fn)(fz_context *ctx, fz_page *page);
281
288
294typedef void (fz_page_run_page_fn)(fz_context *ctx, fz_page *page, fz_device *dev, fz_matrix transform, fz_cookie *cookie);
295
301
308typedef fz_transition *(fz_page_page_presentation_fn)(fz_context *ctx, fz_page *page, fz_transition *transition, float *duration);
309
315typedef void (fz_page_control_separation_fn)(fz_context *ctx, fz_page *page, int separation, int disable);
316
322typedef int (fz_page_separation_disabled_fn)(fz_context *ctx, fz_page *page, int separation);
323
330
336
337
341typedef fz_link *(fz_page_create_link_fn)(fz_context *ctx, fz_page *page, fz_rect bbox, const char *uri);
342
346typedef void (fz_page_delete_link_fn)(fz_context *ctx, fz_page *page, fz_link *link);
347
370typedef 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);
371
385typedef int (fz_document_recognize_fn)(fz_context *ctx, const fz_document_handler *handler, const char *magic);
386
387typedef void (fz_document_recognize_state_free_fn)(fz_context *ctx, void *state);
388
412typedef 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);
413
422typedef void (fz_document_handler_fin_fn)(fz_context *ctx, const fz_document_handler *handler);
423
424
425
430typedef void *(fz_process_opened_page_fn)(fz_context *ctx, fz_page *page, void *state);
431
440
446
455
464
476
491
502fz_document *fz_open_document(fz_context *ctx, const char *filename);
503
514fz_document *fz_open_accelerated_document(fz_context *ctx, const char *filename, const char *accel);
515
529
545
550
566
584
589
593void fz_save_accelerator(fz_context *ctx, fz_document *doc, const char *accel);
594
600
610#define fz_new_derived_document(C,M) ((M*)Memento_label(fz_new_document_of_size(C, sizeof(M)), #M))
611
619
628
634
651int fz_authenticate_password(fz_context *ctx, fz_document *doc, const char *password);
652
659
666
673
680void fz_style_document(fz_context *ctx, fz_document *doc, int publisher_css, const char *user_css);
681
688void fz_layout_document(fz_context *ctx, fz_document *doc, float w, float h, float em);
689
696
701
708
715
723
731fz_location fz_resolve_link(fz_context *ctx, fz_document *doc, const char *uri, float *xp, float *yp);
732
749
756
763
770
776
783
790
797
803
809
821
833
840#define fz_new_derived_page(CTX,TYPE,DOC) \
841 ((TYPE *)Memento_label(fz_new_page_of_size(CTX,sizeof(TYPE),DOC),#TYPE))
842
848
868void fz_run_page(fz_context *ctx, fz_page *page, fz_device *dev, fz_matrix transform, fz_cookie *cookie);
869
890void fz_run_page_contents(fz_context *ctx, fz_page *page, fz_device *dev, fz_matrix transform, fz_cookie *cookie);
891
895void fz_run_page_annots(fz_context *ctx, fz_page *page, fz_device *dev, fz_matrix transform, fz_cookie *cookie);
896
900void fz_run_page_widgets(fz_context *ctx, fz_page *page, fz_device *dev, fz_matrix transform, fz_cookie *cookie);
901
909
917
930fz_transition *fz_page_presentation(fz_context *ctx, fz_page *page, fz_transition *transition, float *duration);
931
935const char *fz_page_label(fz_context *ctx, fz_page *page, char *buf, int size);
936
941
972int fz_lookup_metadata(fz_context *ctx, fz_document *doc, const char *key, char *buf, size_t size);
973
974#define FZ_META_FORMAT "format"
975#define FZ_META_ENCRYPTION "encryption"
976
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"
986
987void fz_set_metadata(fz_context *ctx, fz_document *doc, const char *key, const char *value);
988
997
1007
1012
1016fz_link *fz_create_link(fz_context *ctx, fz_page *page, fz_rect bbox, const char *uri);
1017
1021void fz_delete_link(fz_context *ctx, fz_page *page, fz_link *link);
1022
1035void *fz_process_opened_pages(fz_context *ctx, fz_document *doc, fz_process_opened_page_fn *process_openend_page, void *state);
1036
1037/* Implementation details: subject to change. */
1038
1044{
1045 int refs;
1046 fz_document *doc; /* kept reference to parent document. Guaranteed non-NULL. */
1047 int chapter; /* chapter number */
1048 int number; /* page number in chapter */
1049 int incomplete; /* incomplete from progressive loading; don't cache! */
1050 int in_doc; /* page has been placed into the document */
1064
1065 /* linked list of currently open pages. This list is maintained
1066 * by fz_load_chapter_page and fz_drop_page. All pages hold a
1067 * kept reference to the document, so the document cannot disappear
1068 * while pages exist. 'Incomplete' pages are NOT kept in this
1069 * list. */
1071};
1072
1080{
1081 int refs;
1104
1106 int id;
1107
1108 /* Style options. When these change, both the style and layout methods will be called. */
1112
1113 /* Layout size. When these change, the layout method will be called. */
1116
1117 /* Linked list of currently open pages. These are not
1118 * references, but just a linked list of open pages,
1119 * maintained by fz_load_chapter_page, and fz_drop_page.
1120 * Every page holds a kept reference to the document, so
1121 * the document cannot be destroyed while a page exists.
1122 * Incomplete pages are NOT inserted into this list, but
1123 * do still hold a real document reference. */
1125};
1126
1139
1140#endif
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 archive.h:429
Definition buffer.h:41
Definition color.h:417
Definition context.h:886
Definition device.h:290
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 types.h:36
Definition geometry.h:388
Definition outline.h:246
Definition outline.h:141
Definition output.h:111
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 stream.h:320
Definition transition.h:46