21#ifndef SPECTRE_DOCUMENT_H
22#define SPECTRE_DOCUMENT_H
24#include <libspectre/spectre-macros.h>
46 const char *filename);
136 unsigned int page_index);
160 unsigned char **page_data,
176 unsigned char **page_data,
197 const char *filename);
205 const char *filename);
SPECTRE_PUBLIC void spectre_document_render(SpectreDocument *document, unsigned char **page_data, int *row_length)
Definition: spectre-document.c:384
SPECTRE_PUBLIC const char * spectre_document_get_creation_date(SpectreDocument *document)
Definition: spectre-document.c:235
SPECTRE_PUBLIC const char * spectre_document_get_format(SpectreDocument *document)
Definition: spectre-document.c:248
SPECTRE_PUBLIC const char * spectre_document_get_for(SpectreDocument *document)
Definition: spectre-document.c:222
SPECTRE_PUBLIC SpectreStatus spectre_document_status(SpectreDocument *document)
Definition: spectre-document.c:147
SPECTRE_PUBLIC void spectre_document_render_full(SpectreDocument *document, SpectreRenderContext *rc, unsigned char **page_data, int *row_length)
Definition: spectre-document.c:356
SPECTRE_PUBLIC const char * spectre_document_get_creator(SpectreDocument *document)
Definition: spectre-document.c:209
SPECTRE_PUBLIC void spectre_document_get_page_size(SpectreDocument *document, int *width, int *height)
Definition: spectre-document.c:398
SPECTRE_PUBLIC void spectre_document_save(SpectreDocument *document, const char *filename)
Definition: spectre-document.c:428
SPECTRE_PUBLIC unsigned int spectre_document_get_language_level(SpectreDocument *document)
Definition: spectre-document.c:274
SPECTRE_PUBLIC SpectreDocument * spectre_document_new(void)
Definition: spectre-document.c:45
SPECTRE_PUBLIC void spectre_document_load(SpectreDocument *document, const char *filename)
Definition: spectre-document.c:113
SPECTRE_PUBLIC unsigned int spectre_document_get_n_pages(SpectreDocument *document)
Definition: spectre-document.c:155
SPECTRE_PUBLIC void spectre_document_save_to_pdf(SpectreDocument *document, const char *filename)
Definition: spectre-document.c:470
SPECTRE_PUBLIC int spectre_document_is_eps(SpectreDocument *document)
Definition: spectre-document.c:261
SPECTRE_PUBLIC const char * spectre_document_get_title(SpectreDocument *document)
Definition: spectre-document.c:196
SPECTRE_PUBLIC SpectrePage * spectre_document_get_page(SpectreDocument *document, unsigned int page_index)
Definition: spectre-document.c:287
SPECTRE_PUBLIC SpectreOrientation spectre_document_get_orientation(SpectreDocument *document)
Definition: spectre-document.c:168
SPECTRE_PUBLIC void spectre_document_free(SpectreDocument *document)
Definition: spectre-document.c:133
SPECTRE_PUBLIC SpectrePage * spectre_document_get_page_by_label(SpectreDocument *document, const char *label)
Definition: spectre-document.c:322
SpectreOrientation
Definition: spectre-page.h:30
struct SpectreRenderContext SpectreRenderContext
Definition: spectre-render-context.h:29
enum _SpectreStatus SpectreStatus
Definition: spectre-document.c:36
Definition: spectre-page.c:31