![]() |
![]() |
![]() |
Poppler Reference Manual | ![]() |
---|
PopplerDocumentPopplerDocument — Information about a document |
enum PopplerPageLayout; enum PopplerPageMode; enum PopplerFontType; enum PopplerViewerPreferences; enum PopplerPermissions; PopplerDocument* poppler_document_new_from_file (const char *uri, const char *password, GError **error); gboolean poppler_document_save (PopplerDocument *document, const char *uri, GError **error); int poppler_document_get_n_pages (PopplerDocument *document); PopplerPage* poppler_document_get_page (PopplerDocument *document, int index); PopplerPage* poppler_document_get_page_by_label (PopplerDocument *document, const char *label); GType poppler_index_iter_get_type (void); PopplerIndexIter* poppler_index_iter_new (PopplerDocument *document); PopplerIndexIter* poppler_index_iter_copy (PopplerIndexIter *iter); void poppler_index_iter_free (PopplerIndexIter *iter); PopplerIndexIter* poppler_index_iter_get_child (PopplerIndexIter *parent); gboolean poppler_index_iter_is_open (PopplerIndexIter *iter); PopplerAction* poppler_index_iter_get_action (PopplerIndexIter *iter); gboolean poppler_index_iter_next (PopplerIndexIter *iter); PopplerFontInfo* poppler_font_info_new (PopplerDocument *document); gboolean poppler_font_info_scan (PopplerFontInfo *font_info, int n_pages, PopplerFontsIter **iter); void poppler_font_info_free (PopplerFontInfo *font_info); GType poppler_fonts_iter_get_type (void); PopplerFontsIter* poppler_fonts_iter_copy (PopplerFontsIter *iter); void poppler_fonts_iter_free (PopplerFontsIter *iter); const char* poppler_fonts_iter_get_name (PopplerFontsIter *iter); const char* poppler_fonts_iter_get_full_name (PopplerFontsIter *iter); PopplerFontType poppler_fonts_iter_get_font_type (PopplerFontsIter *iter); gboolean poppler_fonts_iter_is_embedded (PopplerFontsIter *iter); gboolean poppler_fonts_iter_is_subset (PopplerFontsIter *iter); gboolean poppler_fonts_iter_next (PopplerFontsIter *iter); PopplerPSFile* poppler_ps_file_new (PopplerDocument *document, const char *filename, int first_page, int n_pages); void poppler_ps_file_set_paper_size (PopplerPSFile *ps_file, double width, double height); void poppler_ps_file_set_duplex (PopplerPSFile *ps_file, gboolean duplex); void poppler_ps_file_free (PopplerPSFile *ps_file);
typedef enum { POPPLER_PAGE_LAYOUT_UNSET, POPPLER_PAGE_LAYOUT_SINGLE_PAGE, POPPLER_PAGE_LAYOUT_ONE_COLUMN, POPPLER_PAGE_LAYOUT_TWO_COLUMN_LEFT, POPPLER_PAGE_LAYOUT_TWO_COLUMN_RIGHT, POPPLER_PAGE_LAYOUT_TWO_PAGE_LEFT, POPPLER_PAGE_LAYOUT_TWO_PAGE_RIGHT, } PopplerPageLayout;
typedef enum { POPPLER_PAGE_MODE_UNSET, POPPLER_PAGE_MODE_NONE, POPPLER_PAGE_MODE_USE_OUTLINES, POPPLER_PAGE_MODE_USE_THUMBS, POPPLER_PAGE_MODE_FULL_SCREEN, POPPLER_PAGE_MODE_USE_OC, POPPLER_PAGE_MODE_USE_ATTACHMENTS, } PopplerPageMode;
typedef enum { POPPLER_FONT_TYPE_UNKNOWN, POPPLER_FONT_TYPE_TYPE1, POPPLER_FONT_TYPE_TYPE1C, POPPLER_FONT_TYPE_TYPE3, POPPLER_FONT_TYPE_TRUETYPE, POPPLER_FONT_TYPE_CID_TYPE0, POPPLER_FONT_TYPE_CID_TYPE0C, POPPLER_FONT_TYPE_CID_TYPE2 } PopplerFontType;
typedef enum /*< flags >*/ { POPPLER_VIEWER_PREFERENCES_UNSET = 0, POPPLER_VIEWER_PREFERENCES_HIDE_TOOLBAR = 1 << 0, POPPLER_VIEWER_PREFERENCES_HIDE_MENUBAR = 1 << 1, POPPLER_VIEWER_PREFERENCES_HIDE_WINDOWUI = 1 << 2, POPPLER_VIEWER_PREFERENCES_FIT_WINDOW = 1 << 3, POPPLER_VIEWER_PREFERENCES_CENTER_WINDOW = 1 << 4, POPPLER_VIEWER_PREFERENCES_DISPLAY_DOC_TITLE = 1 << 5, POPPLER_VIEWER_PREFERENCES_DIRECTION_RTL = 1 << 6, } PopplerViewerPreferences;
typedef enum /*< flags >*/ { POPPLER_PERMISSIONS_OK_TO_PRINT = 1 << 0, POPPLER_PERMISSIONS_OK_TO_MODIFY = 1 << 1, POPPLER_PERMISSIONS_OK_TO_COPY = 1 << 2, POPPLER_PERMISSIONS_OK_TO_ADD_NOTES = 1 << 3, POPPLER_PERMISSIONS_FULL = (POPPLER_PERMISSIONS_OK_TO_PRINT | POPPLER_PERMISSIONS_OK_TO_MODIFY | POPPLER_PERMISSIONS_OK_TO_COPY | POPPLER_PERMISSIONS_OK_TO_ADD_NOTES), } PopplerPermissions;
PopplerDocument* poppler_document_new_from_file (const char *uri, const char *password, GError **error);
uri : |
|
password : |
|
error : |
|
Returns : |
gboolean poppler_document_save (PopplerDocument *document, const char *uri, GError **error);
document : |
|
uri : |
|
error : |
|
Returns : |
int poppler_document_get_n_pages (PopplerDocument *document);
document : |
|
Returns : |
PopplerPage* poppler_document_get_page (PopplerDocument *document, int index);
document : |
|
index : |
|
Returns : |
PopplerPage* poppler_document_get_page_by_label (PopplerDocument *document, const char *label);
document : |
|
label : |
|
Returns : |
PopplerIndexIter* poppler_index_iter_new (PopplerDocument *document);
document : |
|
Returns : |
PopplerIndexIter* poppler_index_iter_copy (PopplerIndexIter *iter);
iter : |
|
Returns : |
PopplerIndexIter* poppler_index_iter_get_child (PopplerIndexIter *parent);
parent : |
|
Returns : |
gboolean poppler_index_iter_is_open (PopplerIndexIter *iter);
iter : |
|
Returns : |
PopplerAction* poppler_index_iter_get_action (PopplerIndexIter *iter);
iter : |
|
Returns : |
gboolean poppler_index_iter_next (PopplerIndexIter *iter);
iter : |
|
Returns : |
PopplerFontInfo* poppler_font_info_new (PopplerDocument *document);
document : |
|
Returns : |
gboolean poppler_font_info_scan (PopplerFontInfo *font_info, int n_pages, PopplerFontsIter **iter);
font_info : |
|
n_pages : |
|
iter : |
|
Returns : |
PopplerFontsIter* poppler_fonts_iter_copy (PopplerFontsIter *iter);
iter : |
|
Returns : |
const char* poppler_fonts_iter_get_name (PopplerFontsIter *iter);
iter : |
|
Returns : |
const char* poppler_fonts_iter_get_full_name (PopplerFontsIter *iter);
iter : |
|
Returns : |
PopplerFontType poppler_fonts_iter_get_font_type (PopplerFontsIter *iter);
iter : |
|
Returns : |
gboolean poppler_fonts_iter_is_embedded (PopplerFontsIter *iter);
iter : |
|
Returns : |
gboolean poppler_fonts_iter_is_subset (PopplerFontsIter *iter);
iter : |
|
Returns : |
gboolean poppler_fonts_iter_next (PopplerFontsIter *iter);
iter : |
|
Returns : |
PopplerPSFile* poppler_ps_file_new (PopplerDocument *document, const char *filename, int first_page, int n_pages);
document : |
|
filename : |
|
first_page : |
|
n_pages : |
|
Returns : |
void poppler_ps_file_set_paper_size (PopplerPSFile *ps_file, double width, double height);
ps_file : |
|
width : |
|
height : |
void poppler_ps_file_set_duplex (PopplerPSFile *ps_file, gboolean duplex);
ps_file : |
|
duplex : |
<< poppler | PopplerPage >> |