mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-11 09:53:48 +01:00
30 lines
1023 B
C
30 lines
1023 B
C
/* 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;
|
|
} djvu_document_t;
|
|
|
|
bool djvu_document_open(zathura_document_t* document);
|
|
bool djvu_document_free(zathura_document_t* document);
|
|
zathura_list_t* djvu_document_index_generate(zathura_document_t* document);
|
|
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
|