diff options
Diffstat (limited to 'pdf/pdf_xref.c')
-rw-r--r-- | pdf/pdf_xref.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c index 14b8ee5b..92f93352 100644 --- a/pdf/pdf_xref.c +++ b/pdf/pdf_xref.c @@ -1468,12 +1468,6 @@ pdf_page_presentation(pdf_document *doc, pdf_page *page, float *duration) return &page->transition; } -static fz_interactive * -pdf_interact(pdf_document *doc) -{ - return (fz_interactive *)doc; -} - /* Initializers for the fz_document interface. @@ -1505,7 +1499,6 @@ pdf_new_document(fz_context *ctx, fz_stream *file) doc->super.free_page = (void*)pdf_free_page; doc->super.meta = (void*)pdf_meta; doc->super.page_presentation = (void*)pdf_page_presentation; - doc->super.interact = (void*)pdf_interact; doc->super.write = (void*)pdf_write_document; pdf_lexbuf_init(ctx, &doc->lexbuf.base, PDF_LEXBUF_LARGE); @@ -1547,3 +1540,8 @@ pdf_open_document_no_run(fz_context *ctx, const char *filename) } return doc; } + +pdf_document *pdf_specifics(fz_document *doc) +{ + return (pdf_document *)(doc->close == (void *)pdf_close_document ? doc : NULL); +} |