Haru Free PDF Library
hpdf_pages.h
Go to the documentation of this file.
1 /*
2  * << Haru Free PDF Library >> -- hpdf_pages.c
3  *
4  * URL: http://libharu.org
5  *
6  * Copyright (c) 1999-2006 Takeshi Kanno <takeshi_kanno@est.hi-ho.ne.jp>
7  * Copyright (c) 2007-2009 Antony Dovgal <tony@daylessday.org>
8  *
9  * Permission to use, copy, modify, distribute and sell this software
10  * and its documentation for any purpose is hereby granted without fee,
11  * provided that the above copyright notice appear in all copies and
12  * that both that copyright notice and this permission notice appear
13  * in supporting documentation.
14  * It is provided "as is" without express or implied warranty.
15  *
16  */
17 
18 #ifndef _HPDF_PAGES_H
19 #define _HPDF_PAGES_H
20 
21 #include "hpdf_gstate.h"
22 #include "hpdf_ext_gstate.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 /*----------------------------------------------------------------------------*/
29 /*----- HPDF_Pages -----------------------------------------------------------*/
30 
33  HPDF_Pages parent,
34  HPDF_Xref xref);
35 
36 
39 
40 
43  HPDF_Dict kid);
44 
45 
48  HPDF_Page target);
49 
50 
52 
53 typedef struct _HPDF_PageAttr_Rec {
71 
72 
73 /*----------------------------------------------------------------------------*/
74 /*----- HPDF_Page ------------------------------------------------------------*/
75 
78 
79 
82  HPDF_Xref xref);
83 
84 
85 void*
87  const char *key,
88  HPDF_UINT16 obj_class);
89 
90 
91 const char*
93  HPDF_XObject xobj);
94 
95 
96 const char*
98  HPDF_Font font);
99 
100 
101 const char*
103  HPDF_ExtGState gstate);
104 
105 const char*
107  HPDF_Shading shading);
108 
109 
110 HPDF_Box
112 
113 
116  const char *name,
117  HPDF_UINT index,
118  HPDF_REAL value);
119 
120 
121 void
123  HPDF_UINT filter);
124 
125 
128  HPDF_UINT mode);
129 
130 
131 #ifdef __cplusplus
132 }
133 #endif /* __cplusplus */
134 
135 #endif /* _HPDF_PAGES_H */
136 
const char * HPDF_Page_GetLocalFontName(HPDF_Page page, HPDF_Font font)
struct _HPDF_PageAttr_Rec HPDF_PageAttr_Rec
HPDF_Page HPDF_Page_New(HPDF_MMgr mmgr, HPDF_Xref xref)
HPDF_STATUS HPDF_Page_SetBoxValue(HPDF_Page page, const char *name, HPDF_UINT index, HPDF_REAL value)
struct _HPDF_PageAttr_Rec * HPDF_PageAttr
Definition: hpdf_pages.h:51
const char * HPDF_Page_GetExtGStateName(HPDF_Page page, HPDF_ExtGState gstate)
HPDF_STATUS HPDF_Pages_AddKids(HPDF_Pages parent, HPDF_Dict kid)
void * HPDF_Page_GetInheritableItem(HPDF_Page page, const char *key, HPDF_UINT16 obj_class)
HPDF_STATUS HPDF_Page_CheckState(HPDF_Page page, HPDF_UINT mode)
HPDF_BOOL HPDF_Page_Validate(HPDF_Page page)
HPDF_Pages HPDF_Pages_New(HPDF_MMgr mmgr, HPDF_Pages parent, HPDF_Xref xref)
HPDF_Box HPDF_Page_GetMediaBox(HPDF_Page page)
const char * HPDF_Page_GetShadingName(HPDF_Page page, HPDF_Shading shading)
const char * HPDF_Page_GetXObjectName(HPDF_Page page, HPDF_XObject xobj)
HPDF_STATUS HPDF_Page_InsertBefore(HPDF_Page page, HPDF_Page target)
void HPDF_Page_SetFilter(HPDF_Page page, HPDF_UINT filter)
HPDF_BOOL HPDF_Pages_Validate(HPDF_Pages pages)
unsigned short HPDF_UINT16
Definition: hpdf_types.h:63
signed int HPDF_BOOL
Definition: hpdf_types.h:89
unsigned int HPDF_UINT
Definition: hpdf_types.h:45
float HPDF_REAL
Definition: hpdf_types.h:79
enum _HPDF_PdfVer HPDF_PDFVer
unsigned long HPDF_STATUS
Definition: hpdf_types.h:94
Definition: hpdf_objects.h:421
Definition: hpdf_gstate.h:33
Definition: hpdf_mmgr.h:40
Definition: hpdf_pages.h:53
HPDF_Dict ext_gstates
Definition: hpdf_pages.h:57
HPDF_Dict shadings
Definition: hpdf_pages.h:58
HPDF_PDFVer * ver
Definition: hpdf_pages.h:69
HPDF_TransMatrix text_matrix
Definition: hpdf_pages.h:63
HPDF_Stream stream
Definition: hpdf_pages.h:66
HPDF_Point cur_pos
Definition: hpdf_pages.h:61
HPDF_Dict contents
Definition: hpdf_pages.h:65
HPDF_Pages parent
Definition: hpdf_pages.h:54
HPDF_Point text_pos
Definition: hpdf_pages.h:62
HPDF_Dict fonts
Definition: hpdf_pages.h:55
HPDF_UINT16 gmode
Definition: hpdf_pages.h:64
HPDF_Xref xref
Definition: hpdf_pages.h:67
HPDF_Point str_pos
Definition: hpdf_pages.h:60
HPDF_UINT compression_mode
Definition: hpdf_pages.h:68
HPDF_Dict xobjects
Definition: hpdf_pages.h:56
HPDF_GState gstate
Definition: hpdf_pages.h:59
Definition: hpdf_types.h:105
Definition: hpdf_types.h:110
Definition: hpdf_streams.h:99
Definition: hpdf_types.h:240
Definition: hpdf_objects.h:542