summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-xref.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/pdf/pdf-xref.c')
-rw-r--r--source/pdf/pdf-xref.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c
index ba2689b9..9c98296f 100644
--- a/source/pdf/pdf-xref.c
+++ b/source/pdf/pdf-xref.c
@@ -1550,6 +1550,12 @@ pdf_drop_document(fz_context *ctx, pdf_document *doc)
fz_drop_document(ctx, &doc->super);
}
+pdf_document *
+pdf_keep_document(fz_context *ctx, pdf_document *doc)
+{
+ return (pdf_document *)fz_keep_document(ctx, &doc->super);
+}
+
/*
* compressed object streams
*/