summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mupdf/fitz/annotation.h6
-rw-r--r--include/mupdf/fitz/bitmap.h4
-rw-r--r--include/mupdf/fitz/context.h14
-rw-r--r--include/mupdf/fitz/display-list.h4
-rw-r--r--include/mupdf/fitz/document.h13
-rw-r--r--include/mupdf/fitz/geometry.h50
-rw-r--r--include/mupdf/fitz/glyph.h4
-rw-r--r--include/mupdf/fitz/link.h2
-rw-r--r--include/mupdf/fitz/pixmap.h26
-rw-r--r--include/mupdf/fitz/stream.h6
-rw-r--r--include/mupdf/fitz/string-util.h5
-rw-r--r--include/mupdf/fitz/writer.h3
-rw-r--r--include/mupdf/pdf/annot.h6
-rw-r--r--include/mupdf/pdf/document.h6
-rw-r--r--include/mupdf/pdf/page.h2
15 files changed, 15 insertions, 136 deletions
diff --git a/include/mupdf/fitz/annotation.h b/include/mupdf/fitz/annotation.h
index 0521be77..8f7385f6 100644
--- a/include/mupdf/fitz/annotation.h
+++ b/include/mupdf/fitz/annotation.h
@@ -27,22 +27,16 @@ void fz_drop_annot(fz_context *ctx, fz_annot *annot);
/*
fz_first_annot: Return a pointer to the first annotation on a page.
-
- Does not throw exceptions.
*/
fz_annot *fz_first_annot(fz_context *ctx, fz_page *page);
/*
fz_next_annot: Return a pointer to the next annotation on a page.
-
- Does not throw exceptions.
*/
fz_annot *fz_next_annot(fz_context *ctx, fz_annot *annot);
/*
fz_bound_annot: Return the bounding rectangle of the annotation.
-
- Does not throw exceptions.
*/
fz_rect *fz_bound_annot(fz_context *ctx, fz_annot *annot, fz_rect *rect);
diff --git a/include/mupdf/fitz/bitmap.h b/include/mupdf/fitz/bitmap.h
index edfbdbc7..d340c29e 100644
--- a/include/mupdf/fitz/bitmap.h
+++ b/include/mupdf/fitz/bitmap.h
@@ -17,7 +17,7 @@ typedef struct fz_bitmap_s fz_bitmap;
bit: The bitmap to increment the reference for.
- Returns bit. Does not throw exceptions.
+ Returns bit.
*/
fz_bitmap *fz_keep_bitmap(fz_context *ctx, fz_bitmap *bit);
@@ -26,8 +26,6 @@ fz_bitmap *fz_keep_bitmap(fz_context *ctx, fz_bitmap *bit);
Decrement the reference count for the bitmap. When no
references remain the pixmap will be freed.
-
- Does not throw exceptions.
*/
void fz_drop_bitmap(fz_context *ctx, fz_bitmap *bit);
diff --git a/include/mupdf/fitz/context.h b/include/mupdf/fitz/context.h
index 36d908e8..6807447e 100644
--- a/include/mupdf/fitz/context.h
+++ b/include/mupdf/fitz/context.h
@@ -105,8 +105,6 @@ enum
to force printing of the latest buffered warning and the
number of repetitions, for example to make sure that all
warnings are printed before exiting an application.
-
- Does not throw exceptions.
*/
void fz_flush_warnings(fz_context *ctx);
@@ -170,7 +168,7 @@ enum {
images. FZ_STORE_UNLIMITED can be used if a hard limit is not
desired. Use FZ_STORE_DEFAULT to get a reasonable size.
- Does not throw exceptions, but may return NULL.
+ May return NULL.
*/
fz_context *fz_new_context_imp(const fz_alloc_context *alloc, const fz_locks_context *locks, size_t max_store, const char *version);
@@ -189,7 +187,7 @@ fz_context *fz_new_context_imp(const fz_alloc_context *alloc, const fz_locks_con
store, locks and lock/unlock functions. They will each have
their own exception stacks though.
- Does not throw exception, but may return NULL.
+ May return NULL.
*/
fz_context *fz_clone_context(fz_context *ctx);
@@ -199,8 +197,6 @@ fz_context *fz_clone_context(fz_context *ctx);
The context and all of its global state is freed, and any
buffered warnings are flushed (see fz_flush_warnings). If NULL
is passed in nothing will happen.
-
- Does not throw exceptions.
*/
void fz_drop_context(fz_context *ctx);
@@ -209,15 +205,11 @@ void fz_drop_context(fz_context *ctx);
NULL initially, this field can be set to any opaque value
required by the user. It is copied on clones.
-
- Does not throw exceptions.
*/
void fz_set_user_context(fz_context *ctx, void *user);
/*
fz_user_context: Read the user field from the context.
-
- Does not throw exceptions.
*/
void *fz_user_context(fz_context *ctx);
@@ -489,8 +481,6 @@ char *fz_strdup(fz_context *ctx, const char *s);
/*
fz_free: Frees an allocation.
-
- Does not throw exceptions.
*/
void fz_free(fz_context *ctx, void *p);
diff --git a/include/mupdf/fitz/display-list.h b/include/mupdf/fitz/display-list.h
index e408f943..b6a23e43 100644
--- a/include/mupdf/fitz/display-list.h
+++ b/include/mupdf/fitz/display-list.h
@@ -77,16 +77,12 @@ void fz_run_display_list(fz_context *ctx, fz_display_list *list, fz_device *dev,
/*
fz_keep_display_list: Keep a reference to a display list.
-
- Does not throw exceptions.
*/
fz_display_list *fz_keep_display_list(fz_context *ctx, fz_display_list *list);
/*
fz_drop_display_list: Drop a reference to a display list, freeing it
if the reference count reaches zero.
-
- Does not throw exceptions.
*/
void fz_drop_display_list(fz_context *ctx, fz_display_list *list);
diff --git a/include/mupdf/fitz/document.h b/include/mupdf/fitz/document.h
index a94aa53f..d3b9abd5 100644
--- a/include/mupdf/fitz/document.h
+++ b/include/mupdf/fitz/document.h
@@ -340,8 +340,6 @@ void *fz_new_document_of_size(fz_context *ctx, int size);
/*
fz_keep_document: Keep a reference to an open document.
-
- Does not throw exceptions.
*/
fz_document *fz_keep_document(fz_context *ctx, fz_document *doc);
@@ -351,16 +349,12 @@ fz_document *fz_keep_document(fz_context *ctx, fz_document *doc);
The resource store in the context associated with fz_document
is emptied, and any allocations for the document are freed when
the last reference is dropped.
-
- Does not throw exceptions.
*/
void fz_drop_document(fz_context *ctx, fz_document *doc);
/*
fz_needs_password: Check if a document is encrypted with a
non-blank password.
-
- Does not throw exceptions.
*/
int fz_needs_password(fz_context *ctx, fz_document *doc);
@@ -380,8 +374,6 @@ int fz_needs_password(fz_context *ctx, fz_document *doc);
Bit 0 => No password required
Bit 1 => User password authenticated
Bit 2 => Owner password authenticated
-
- Does not throw exceptions.
*/
int fz_authenticate_password(fz_context *ctx, fz_document *doc, const char *password);
@@ -469,7 +461,6 @@ fz_page *fz_new_page_of_size(fz_context *ctx, int size);
/*
fz_bound_page: Determine the size of a page at 72 dpi.
- Does not throw exceptions.
*/
fz_rect *fz_bound_page(fz_context *ctx, fz_page *page, fz_rect *rect);
@@ -541,15 +532,11 @@ void fz_run_annot(fz_context *ctx, fz_annot *annot, fz_device *dev, const fz_mat
/*
fz_keep_page: Keep a reference to a loaded page.
-
- Does not throw exceptions.
*/
fz_page *fz_keep_page(fz_context *ctx, fz_page *page);
/*
fz_drop_page: Free a loaded page.
-
- Does not throw exceptions.
*/
void fz_drop_page(fz_context *ctx, fz_page *page);
diff --git a/include/mupdf/fitz/geometry.h b/include/mupdf/fitz/geometry.h
index 7fef12fb..d832248a 100644
--- a/include/mupdf/fitz/geometry.h
+++ b/include/mupdf/fitz/geometry.h
@@ -283,8 +283,6 @@ static inline fz_matrix *fz_copy_matrix(fz_matrix *restrict m, const fz_matrix *
multiplication is not commutative.
Returns result.
-
- Does not throw exceptions.
*/
fz_matrix *fz_concat(fz_matrix *result, const fz_matrix *left, const fz_matrix *right);
@@ -300,8 +298,6 @@ fz_matrix *fz_concat(fz_matrix *result, const fz_matrix *left, const fz_matrix *
axis.
Returns m.
-
- Does not throw exceptions.
*/
fz_matrix *fz_scale(fz_matrix *m, float sx, float sy);
@@ -315,8 +311,6 @@ fz_matrix *fz_scale(fz_matrix *m, float sx, float sy);
axis.
Returns m (updated).
-
- Does not throw exceptions.
*/
fz_matrix *fz_pre_scale(fz_matrix *m, float sx, float sy);
@@ -330,8 +324,6 @@ fz_matrix *fz_pre_scale(fz_matrix *m, float sx, float sy);
axis.
Returns m (updated).
-
- Does not throw exceptions.
*/
fz_matrix *fz_post_scale(fz_matrix *m, float sx, float sy);
@@ -346,8 +338,6 @@ fz_matrix *fz_post_scale(fz_matrix *m, float sx, float sy);
cause any shearing along the relevant axis.
Returns m.
-
- Does not throw exceptions.
*/
fz_matrix *fz_shear(fz_matrix *m, float sx, float sy);
@@ -362,8 +352,6 @@ fz_matrix *fz_shear(fz_matrix *m, float sx, float sy);
cause any shearing along the relevant axis.
Returns m (updated).
-
- Does not throw exceptions.
*/
fz_matrix *fz_pre_shear(fz_matrix *m, float sx, float sy);
@@ -379,8 +367,6 @@ fz_matrix *fz_pre_shear(fz_matrix *m, float sx, float sy);
than zero and greater than 360 are handled as expected.
Returns m.
-
- Does not throw exceptions.
*/
fz_matrix *fz_rotate(fz_matrix *m, float degrees);
@@ -396,8 +382,6 @@ fz_matrix *fz_rotate(fz_matrix *m, float degrees);
than zero and greater than 360 are handled as expected.
Returns m (updated).
-
- Does not throw exceptions.
*/
fz_matrix *fz_pre_rotate(fz_matrix *m, float degrees);
@@ -413,8 +397,6 @@ fz_matrix *fz_pre_rotate(fz_matrix *m, float degrees);
relevant axis.
Returns m.
-
- Does not throw exceptions.
*/
fz_matrix *fz_translate(fz_matrix *m, float tx, float ty);
@@ -428,8 +410,6 @@ fz_matrix *fz_translate(fz_matrix *m, float tx, float ty);
relevant axis.
Returns m.
-
- Does not throw exceptions.
*/
fz_matrix *fz_pre_translate(fz_matrix *m, float tx, float ty);
@@ -443,8 +423,6 @@ fz_matrix *fz_pre_translate(fz_matrix *m, float tx, float ty);
original matrix is returned instead.
Returns inverse.
-
- Does not throw exceptions.
*/
fz_matrix *fz_invert_matrix(fz_matrix *inverse, const fz_matrix *matrix);
@@ -457,8 +435,6 @@ fz_matrix *fz_invert_matrix(fz_matrix *inverse, const fz_matrix *matrix);
determinant is equal to zero, can not be inverted.
Returns 1 if matrix is degenerate (singular), or 0 otherwise.
-
- Does not throw exceptions.
*/
int fz_try_invert_matrix(fz_matrix *inverse, const fz_matrix *matrix);
@@ -469,8 +445,6 @@ fz_matrix *fz_invert_matrix(fz_matrix *inverse, const fz_matrix *matrix);
rotations present are a multiple of 90 degrees. Usually this
is used to make sure that axis-aligned rectangles before the
transformation are still axis-aligned rectangles afterwards.
-
- Does not throw exceptions.
*/
int fz_is_rectilinear(const fz_matrix *m);
@@ -489,8 +463,6 @@ float fz_matrix_expansion(const fz_matrix *m); /* sumatrapdf */
then the intersection is simply the non-infinite rectangle.
Should both rectangles be infinite, then the intersection is
also infinite.
-
- Does not throw exceptions.
*/
fz_rect *fz_intersect_rect(fz_rect *restrict a, const fz_rect *restrict b);
@@ -499,8 +471,6 @@ fz_rect *fz_intersect_rect(fz_rect *restrict a, const fz_rect *restrict b);
Similar to fz_intersect_rect but operates on two bounding
boxes instead of two rectangles.
-
- Does not throw exceptions.
*/
fz_irect *fz_intersect_irect(fz_irect *restrict a, const fz_irect *restrict b);
@@ -513,8 +483,6 @@ fz_irect *fz_intersect_irect(fz_irect *restrict a, const fz_irect *restrict b);
If either rectangle is empty then the union is simply the
non-empty rectangle. Should both rectangles be empty, then the
union is also empty.
-
- Does not throw exceptions.
*/
fz_rect *fz_union_rect(fz_rect *restrict a, const fz_rect *restrict b);
@@ -532,8 +500,6 @@ fz_rect *fz_union_rect(fz_rect *restrict a, const fz_rect *restrict b);
downwards and to the right.
Returns bbox (updated).
-
- Does not throw exceptions.
*/
fz_irect *fz_irect_from_rect(fz_irect *restrict bbox, const fz_rect *restrict rect);
@@ -551,8 +517,6 @@ fz_irect *fz_irect_from_rect(fz_irect *restrict bbox, const fz_rect *restrict re
can cause whole extra pixels to be added). fz_round_rect
allows for a small amount of rounding error when calculating
the bbox.
-
- Does not throw exceptions.
*/
fz_irect *fz_round_rect(fz_irect *restrict bbox, const fz_rect *restrict rect);
@@ -567,15 +531,11 @@ fz_irect *fz_round_rect(fz_irect *restrict bbox, const fz_rect *restrict rect);
bbox: The bbox to convert.
Returns rect (updated).
-
- Does not throw exceptions.
*/
fz_rect *fz_rect_from_irect(fz_rect *restrict rect, const fz_irect *restrict bbox);
/*
fz_expand_rect: Expand a bbox by a given amount in all directions.
-
- Does not throw exceptions.
*/
fz_rect *fz_expand_rect(fz_rect *b, float expand);
@@ -591,8 +551,6 @@ fz_rect *fz_include_point_in_rect(fz_rect *r, const fz_point *p);
fz_translate_irect: Translate bounding box.
Translate a bbox by a given x and y offset. Allows for overflow.
-
- Does not throw exceptions.
*/
fz_irect *fz_translate_irect(fz_irect *a, int xoff, int yoff);
@@ -600,8 +558,6 @@ fz_irect *fz_translate_irect(fz_irect *a, int xoff, int yoff);
fz_contains_rect: Test rectangle inclusion.
Return true if a entirely contains b.
-
- Does not throw exceptions.
*/
int fz_contains_rect(const fz_rect *a, const fz_rect *b);
@@ -615,8 +571,6 @@ int fz_contains_rect(const fz_rect *a, const fz_rect *b);
point: Pointer to point to update.
Returns transform (unchanged).
-
- Does not throw exceptions.
*/
fz_point *fz_transform_point(fz_point *restrict point, const fz_matrix *restrict transform);
fz_point *fz_transform_point_xy(fz_point *restrict point, const fz_matrix *restrict transform, float x, float y);
@@ -629,8 +583,6 @@ fz_point *fz_transform_point_xy(fz_point *restrict point, const fz_matrix *restr
translation will be ignored.
vector: Pointer to vector to update.
-
- Does not throw exceptions.
*/
fz_point *fz_transform_vector(fz_point *restrict vector, const fz_matrix *restrict transform);
@@ -648,8 +600,6 @@ fz_point *fz_transform_vector(fz_point *restrict vector, const fz_matrix *restri
rect: Rectangle to be transformed. The two special cases
fz_empty_rect and fz_infinite_rect, may be used but are
returned unchanged as expected.
-
- Does not throw exceptions.
*/
fz_rect *fz_transform_rect(fz_rect *restrict rect, const fz_matrix *restrict transform);
diff --git a/include/mupdf/fitz/glyph.h b/include/mupdf/fitz/glyph.h
index 3869422e..4b2bfdbb 100644
--- a/include/mupdf/fitz/glyph.h
+++ b/include/mupdf/fitz/glyph.h
@@ -73,7 +73,7 @@ fz_glyph *fz_new_glyph_from_1bpp_data(fz_context *ctx, int x, int y, int w, int
pix: The glyph to increment the reference for.
- Returns pix. Does not throw exceptions.
+ Returns pix.
*/
fz_glyph *fz_keep_glyph(fz_context *ctx, fz_glyph *pix);
@@ -82,8 +82,6 @@ fz_glyph *fz_keep_glyph(fz_context *ctx, fz_glyph *pix);
Decrement the reference count for the glyph. When no
references remain the glyph will be freed.
-
- Does not throw exceptions.
*/
void fz_drop_glyph(fz_context *ctx, fz_glyph *pix);
diff --git a/include/mupdf/fitz/link.h b/include/mupdf/fitz/link.h
index ac6f3c7a..3aa5116f 100644
--- a/include/mupdf/fitz/link.h
+++ b/include/mupdf/fitz/link.h
@@ -49,8 +49,6 @@ int fz_is_external_link(fz_context *ctx, const char *uri);
/*
fz_drop_link: Drop and free a list of links.
-
- Does not throw exceptions.
*/
void fz_drop_link(fz_context *ctx, fz_link *link);
diff --git a/include/mupdf/fitz/pixmap.h b/include/mupdf/fitz/pixmap.h
index 5c6fa607..4fc84b48 100644
--- a/include/mupdf/fitz/pixmap.h
+++ b/include/mupdf/fitz/pixmap.h
@@ -139,7 +139,7 @@ fz_pixmap *fz_new_pixmap_with_bbox_and_data(fz_context *ctx, fz_colorspace *colo
pix: The pixmap to increment the reference for.
- Returns pix. Does not throw exceptions.
+ Returns pix.
*/
fz_pixmap *fz_keep_pixmap(fz_context *ctx, fz_pixmap *pix);
@@ -148,29 +148,27 @@ fz_pixmap *fz_keep_pixmap(fz_context *ctx, fz_pixmap *pix);
Decrement the reference count for the pixmap. When no
references remain the pixmap will be freed.
-
- Does not throw exceptions.
*/
void fz_drop_pixmap(fz_context *ctx, fz_pixmap *pix);
/*
fz_pixmap_colorspace: Return the colorspace of a pixmap
- Returns colorspace. Does not throw exceptions.
+ Returns colorspace.
*/
fz_colorspace *fz_pixmap_colorspace(fz_context *ctx, fz_pixmap *pix);
/*
fz_pixmap_components: Return the number of components in a pixmap.
- Returns the number of components (including spots and alpha). Does not throw exceptions.
+ Returns the number of components (including spots and alpha).
*/
int fz_pixmap_components(fz_context *ctx, fz_pixmap *pix);
/*
fz_pixmap_colorants: Return the number of colorants in a pixmap.
- Returns the number of colorants (components, less any spots and alpha). Does not throw exceptions.
+ Returns the number of colorants (components, less any spots and alpha).
*/
int fz_pixmap_colorants(fz_context *ctx, fz_pixmap *pix);
@@ -191,7 +189,7 @@ int fz_pixmap_alpha(fz_context *ctx, fz_pixmap *pix);
/*
fz_pixmap_samples: Returns a pointer to the pixel data of a pixmap.
- Returns the pointer. Does not throw exceptions.
+ Returns the pointer.
*/
unsigned char *fz_pixmap_samples(fz_context *ctx, fz_pixmap *pix);
@@ -213,8 +211,6 @@ void fz_set_pixmap_resolution(fz_context *ctx, fz_pixmap *pix, int xres, int yre
value: Values in the range 0 to 255 are valid. Each component
sample for each pixel in the pixmap will be set to this value,
while alpha will always be set to 255 (non-transparent).
-
- Does not throw exceptions.
*/
void fz_clear_pixmap_with_value(fz_context *ctx, fz_pixmap *pix, int value);
@@ -233,8 +229,6 @@ void fz_fill_pixmap_with_color(fz_context *ctx, fz_pixmap *pix, fz_colorspace *c
while alpha will always be set to 255 (non-transparent).
r: the rectangle.
-
- Does not throw exceptions.
*/
void fz_clear_pixmap_rect_with_value(fz_context *ctx, fz_pixmap *pix, int value, const fz_irect *r);
@@ -243,16 +237,12 @@ void fz_clear_pixmap_rect_with_value(fz_context *ctx, fz_pixmap *pix, int value,
all pixels in a pixmap to 0.
pix: The pixmap to clear.
-
- Does not throw exceptions.
*/
void fz_clear_pixmap(fz_context *ctx, fz_pixmap *pix);
/*
fz_invert_pixmap: Invert all the pixels in a pixmap. All components
of all pixels are inverted (except alpha, which is unchanged).
-
- Does not throw exceptions.
*/
void fz_invert_pixmap(fz_context *ctx, fz_pixmap *pix);
@@ -269,8 +259,6 @@ void fz_tint_pixmap(fz_context *ctx, fz_pixmap *pix, int r, int g, int b);
fz_invert_pixmap: Invert all the pixels in a given rectangle of a
pixmap. All components of all pixels in the rectangle are inverted
(except alpha, which is unchanged).
-
- Does not throw exceptions.
*/
void fz_invert_pixmap_rect(fz_context *ctx, fz_pixmap *image, const fz_irect *rect);
@@ -279,16 +267,12 @@ void fz_invert_pixmap_rect(fz_context *ctx, fz_pixmap *image, const fz_irect *re
of all pixels are modified (except alpha, which is unchanged).
gamma: The gamma value to apply; 1.0 for no change.
-
- Does not throw exceptions.
*/
void fz_gamma_pixmap(fz_context *ctx, fz_pixmap *pix, float gamma);
/*
fz_unmultiply_pixmap: Convert a pixmap from premultiplied to
non-premultiplied format.
-
- Does not throw exceptions.
*/
void fz_unmultiply_pixmap(fz_context *ctx, fz_pixmap *pix);
diff --git a/include/mupdf/fitz/stream.h b/include/mupdf/fitz/stream.h
index c8ba88b7..f9cf755c 100644
--- a/include/mupdf/fitz/stream.h
+++ b/include/mupdf/fitz/stream.h
@@ -101,8 +101,6 @@ fz_stream *fz_open_leecher(fz_context *ctx, fz_stream *chain, fz_buffer *buf);
Drops a reference for the stream. Once no references remain
the stream will be closed, as will any file descriptor the
stream is using.
-
- Does not throw exceptions.
*/
void fz_drop_stream(fz_context *ctx, fz_stream *stm);
@@ -305,8 +303,8 @@ fz_stream *fz_keep_stream(fz_context *ctx, fz_stream *stm);
/*
fz_read_best: Attempt to read a stream into a buffer. If truncated
- is NULL behaves as fz_read_all, otherwise does not throw exceptions
- in the case of failure, but instead sets a truncated flag.
+ is NULL behaves as fz_read_all, sets a truncated flag in case of
+ error.
stm: The stream to read from.
diff --git a/include/mupdf/fitz/string-util.h b/include/mupdf/fitz/string-util.h
index 36907257..13941d62 100644
--- a/include/mupdf/fitz/string-util.h
+++ b/include/mupdf/fitz/string-util.h
@@ -99,7 +99,7 @@ enum { FZ_UTFMAX = 4 };
str: Pointer to a UTF8 encoded string.
- Returns the number of bytes consumed. Does not throw exceptions.
+ Returns the number of bytes consumed.
*/
int fz_chartorune(int *rune, const char *str);
@@ -110,8 +110,7 @@ int fz_chartorune(int *rune, const char *str);
rune: Pointer to a 'rune'.
- Returns the number of bytes the rune took to output. Does not throw
- exceptions.
+ Returns the number of bytes the rune took to output.
*/
int fz_runetochar(char *str, int rune);
diff --git a/include/mupdf/fitz/writer.h b/include/mupdf/fitz/writer.h
index 9e42aa47..9f277ceb 100644
--- a/include/mupdf/fitz/writer.h
+++ b/include/mupdf/fitz/writer.h
@@ -42,7 +42,8 @@ typedef void (fz_document_writer_close_writer_fn)(fz_context *ctx, fz_document_w
the process to release all the resources owned by the writer.
Calling drop without having previously called close may leave
- the file in an inconsistent state.
+ the file in an inconsistent state and the user of the
+ fz_document_writer would need to do any cleanup required.
*/
typedef void (fz_document_writer_drop_writer_fn)(fz_context *ctx, fz_document_writer *wri);
diff --git a/include/mupdf/pdf/annot.h b/include/mupdf/pdf/annot.h
index 4d98d9ce..7e95b31b 100644
--- a/include/mupdf/pdf/annot.h
+++ b/include/mupdf/pdf/annot.h
@@ -64,22 +64,16 @@ enum
/*
pdf_first_annot: Return the first annotation on a page.
-
- Does not throw exceptions.
*/
pdf_annot *pdf_first_annot(fz_context *ctx, pdf_page *page);
/*
pdf_next_annot: Return the next annotation on a page.
-
- Does not throw exceptions.
*/
pdf_annot *pdf_next_annot(fz_context *ctx, pdf_annot *annot);
/*
pdf_bound_annot: Return the rectangle for an annotation on a page.
-
- Does not throw exceptions.
*/
fz_rect *pdf_bound_annot(fz_context *ctx, pdf_annot *annot, fz_rect *rect);
diff --git a/include/mupdf/pdf/document.h b/include/mupdf/pdf/document.h
index c6f5a81a..7dcd203c 100644
--- a/include/mupdf/pdf/document.h
+++ b/include/mupdf/pdf/document.h
@@ -90,15 +90,11 @@ pdf_document *pdf_open_document_with_stream(fz_context *ctx, fz_stream *file);
The resource store in the context associated with pdf_document
is emptied.
-
- Does not throw exceptions.
*/
void pdf_drop_document(fz_context *ctx, pdf_document *doc);
/*
pdf_keep_document: Keep a reference to an open document.
-
- Does not throw exceptions.
*/
pdf_document *pdf_keep_document(fz_context *ctx, pdf_document *doc);
@@ -711,8 +707,6 @@ pdf_graft_map *pdf_new_graft_map(fz_context *ctx, pdf_document *dst);
/*
pdf_keep_graft_map: Keep a reference to a graft map object.
-
- Does not throw exceptions.
*/
pdf_graft_map *pdf_keep_graft_map(fz_context *ctx, pdf_graft_map *map);
diff --git a/include/mupdf/pdf/page.h b/include/mupdf/pdf/page.h
index a7f47cda..02d6dd4e 100644
--- a/include/mupdf/pdf/page.h
+++ b/include/mupdf/pdf/page.h
@@ -55,8 +55,6 @@ fz_link *pdf_load_links(fz_context *ctx, pdf_page *page);
into account. The page size is taken to be the crop box if it
exists (visible area after cropping), otherwise the media box will
be used (possibly including printing marks).
-
- Does not throw exceptions.
*/
fz_rect *pdf_bound_page(fz_context *ctx, pdf_page *page, fz_rect *);