diff options
Diffstat (limited to 'source/pdf/pdf-annot.c')
-rw-r--r-- | source/pdf/pdf-annot.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/source/pdf/pdf-annot.c b/source/pdf/pdf-annot.c index 56681424..7046ff18 100644 --- a/source/pdf/pdf-annot.c +++ b/source/pdf/pdf-annot.c @@ -557,3 +557,27 @@ pdf_bound_annot(fz_context *ctx, pdf_annot *annot, fz_rect *rect) fz_transform_rect(rect, &page_ctm); return rect; } + +void +pdf_dirty_annot(fz_context *ctx, pdf_annot *annot) +{ + if (annot) + { + annot->dirty = 1; + if (annot->page && annot->page->doc) + annot->page->doc->dirty = 1; + } +} + +void +pdf_clean_annot(fz_context *ctx, pdf_annot *annot) +{ + if (annot) + annot->dirty = 0; +} + +int +pdf_annot_is_dirty(fz_context *ctx, pdf_annot *annot) +{ + return annot ? annot->dirty: 0; +} |