plugin.c 1.13 KB
Newer Older
1 2 3 4
/* See LICENSE file for license and copyright information */

#include "plugin.h"

5
ZATHURA_PLUGIN_REGISTER_WITH_FUNCTIONS(
6 7
  "pdf-poppler",
  VERSION_MAJOR, VERSION_MINOR, VERSION_REV,
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
  ZATHURA_PLUGIN_FUNCTIONS({
    .document_open            = pdf_document_open,
    .document_free            = pdf_document_free,
    .document_index_generate  = pdf_document_index_generate,
    .document_save_as         = pdf_document_save_as,
    .document_attachments_get = pdf_document_attachments_get,
    .document_attachment_save = pdf_document_attachment_save,
    .document_get_information = pdf_document_get_information,
    .page_init                = pdf_page_init,
    .page_clear               = pdf_page_clear,
    .page_search_text         = pdf_page_search_text,
    .page_links_get           = pdf_page_links_get,
    .page_form_fields_get     = pdf_page_form_fields_get,
    .page_images_get          = pdf_page_images_get,
    .page_get_text            = pdf_page_get_text,
    .page_render_cairo        = pdf_page_render_cairo,
    .page_image_get_cairo     = pdf_page_image_get_cairo
  }),
26 27 28 29
  ZATHURA_PLUGIN_MIMETYPES({
    "application/pdf"
  })
)