zathura/ft/djvu/djvu.h

31 lines
1.0 KiB
C
Raw Normal View History

2010-12-23 19:41:07 +01:00
/* See LICENSE file for license and copyright information */
#ifndef DJVU_H
#define DJVU_H
#include <stdbool.h>
#include <libdjvu/ddjvuapi.h>
#include "../document.h"
typedef struct djvu_document_s
{
ddjvu_context_t* context;
ddjvu_document_t* document;
2010-12-23 20:26:36 +01:00
ddjvu_format_t* format;
2010-12-23 19:41:07 +01:00
} djvu_document_t;
bool djvu_document_open(zathura_document_t* document);
bool djvu_document_free(zathura_document_t* document);
girara_tree_node_t* djvu_document_index_generate(zathura_document_t* document);
2010-12-23 19:41:07 +01:00
bool djvu_document_save_as(zathura_document_t* document, const char* path);
zathura_list_t* djvu_document_attachments_get(zathura_document_t* document);
zathura_page_t* djvu_page_get(zathura_document_t* document, unsigned int page);
zathura_list_t* djvu_page_search_text(zathura_page_t* page, const char* text);
zathura_list_t* djvu_page_links_get(zathura_page_t* page);
zathura_list_t* djvu_page_form_fields_get(zathura_page_t* page);
cairo_surface_t* djvu_page_render(zathura_page_t* page);
bool djvu_page_free(zathura_page_t* page);
#endif // DJVU_H