1 Attribute VB_Name = "Module3"
3 ' * << Haru Free PDF Library 2.0.3 >> -- hpdf_types.h
5 ' * URL http://libharu.org/
7 ' * Copyright (c) 1999-2006 Takeshi Kanno
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.
19 ''/*----------------------------------------------------------------------------*/
20 ''/*----- type definition ------------------------------------------------------*/
23 '/* native OS integer types */
24 'typedef signed int HPDF_INT
25 'typedef unsigned int HPDF_UNIT
28 '/* 32bit integer types
30 'typedef signed int HPDF_INT32
31 'typedef unsigned int HPDF_UNIT32
34 '/* 16bit integer types
36 'typedef signed short HPDF_INT16
37 'typedef unsigned short HPDF_UNIT16
40 '/* 8bit integer types
42 'typedef signed char HPDF_INT8
43 'typedef unsigned char HPDF_UNIT8
48 'typedef unsigned char HPDF_BYTE
51 '/* float type (32bit IEEE754)
53 'typedef float HPDF_REAL
56 '/* double type (64bit IEEE754)
58 'typedef double HPDF_DOUBLE
61 '/* boolean type (0: False !0: True)
63 'typedef signed int HPDF_BOOL
66 '/* error-no type (32bit unsigned integer)
68 'typedef unsigned long HPDF_STATUS
71 '/* charactor-code type (16bit)
73 'typedef long16 HPDF_CID
74 'typedef long16 HPDF_UNICODE
79 Public Type HPDF_Point
100 Public Type HPDF_Date
113 Public Enum HPDF_InfoType
114 '/* date-time type parameters */
115 HPDF_INFO_CREATION_DATE = 0
116 HPDF_INFO_MOD_DATE = 1
118 '/* string type parameters */
120 HPDF_INFO_CREATOR = 3
121 HPDF_INFO_PRODUCER = 4
123 HPDF_INFO_SUBJECT = 6
124 HPDF_INFO_KEYWORDS = 7
129 Public Enum HPDF_EncryptMode
137 (HPDF_STDCALL *HPDF_Error_Handler) (long error_no
142 (HPDF_STDCALL *HPDF_Alloc_Func) (long size)
146 (HPDF_STDCALL *HPDF_Free_Func) (void *aptr)
149 '/*---------------------------------------------------------------------------*/
150 '/*------ text width struct --------------------------------------------------*/
151 Public Type HPDF_TextWidth
153 '/* don't use this value (it may be change in the feature).
154 ' use numspace as alternated. */
161 '/*---------------------------------------------------------------------------*/
162 '/*------ dash mode ----------------------------------------------------------*/
163 Public Type HPDF_DashMode
170 '/*---------------------------------------------------------------------------*/
171 '/*----- HPDF_TransMatrix struct ---------------------------------------------*/
172 Public Type HPDF_TransMatrix
182 '/*---------------------------------------------------------------------------*/
183 Public Enum HPDF_ColorSpace
184 HPDF_CS_DEVICE_GRAY = 0
185 HPDF_CS_DEVICE_RGB = 1
186 HPDF_CS_DEVICE_CMYK = 2
190 HPDF_CS_ICC_BASED = 6
191 HPDF_CS_SEPARATION = 7
198 '/*---------------------------------------------------------------------------*/
199 '/*----- HPDF_RGBColor struct ------------------------------------------------*/
200 Public Type HPDF_RGBColor
206 '/*---------------------------------------------------------------------------*/
207 '/*----- HPDF_CMYKColor struct -----------------------------------------------*/
208 Public Type HPDF_CMYKColor
215 '/*---------------------------------------------------------------------------*/
216 '/*------ The line cap style -------------------------------------------------*/
217 Public Enum HPDF_LineCap
220 HPDF_PROJECTING_SCUARE_END = 2
224 '/*----------------------------------------------------------------------------*/
225 '/*------ The line join style -------------------------------------------------*/
226 Public Enum HPDF_LineJoin
230 HPDF_LINEJOIN_EOF = 3
233 '/*----------------------------------------------------------------------------*/
234 '/*------ The text rendering mode ---------------------------------------------*/
235 Public Enum HPDF_TextRenderingMode
238 HPDF_FILL_THEN_STROKE = 2
240 HPDF_FILL_CLIPPING = 4
241 HPDF_STROKE_CLIPPING = 5
242 HPDF_FILL_STROKE_CLIPPING = 6
244 HPDF_RENDERING_MODE_EOF = 8
248 Public Enum HPDF_WritingMode
249 HPDF_WMODE_HORIZONTAL = 0
250 HPDF_WMODE_VERTICAL = 1
255 Public Enum HPDF_PageLayout
256 HPDF_PAGE_LAYOUT_SINGLE = 0
257 HPDF_PAGE_LAYOUT_ONE_COLUMN = 1
258 HPDF_PAGE_LAYOUT_TWO_COLUMN_LEFT = 2
259 HPDF_PAGE_LAYOUT_TWO_COLUMN_RIGHT = 3
260 HPDF_PAGE_LAYOUT_EOF = 4
264 Public Enum HPDF_PageMode
265 HPDF_PAGE_MODE_USE_NONE = 0
266 HPDF_PAGE_MODE_USE_OUTLINE = 1
267 HPDF_PAGE_MODE_USE_THUMBS = 2
268 HPDF_PAGE_MODE_FULL_SCREEN = 3
269 '/* HPDF_PAGE_MODE_USE_OC =4
270 HPDF_PAGE_MODE_USE_ATTACHMENTS = 4
276 Public Enum HPDF_PageNumStyle
277 HPDF_PAGE_NUM_STYLE_DECIMAL = 0
278 HPDF_PAGE_NUM_STYLE_UPPER_ROMAN = 1
279 HPDF_PAGE_NUM_STYLE_LOWER_ROMAN = 2
280 HPDF_PAGE_NUM_STYLE_UPPER_LETTERS = 3
281 HPDF_PAGE_NUM_STYLE_LOWER_LETTERS = 4
282 HPDF_PAGE_NUM_STYLE_EOF = 5
286 Public Enum HPDF_DestinationType
299 Public Enum HPDF_AnnotType
300 HPDF_ANNOT_TEXT_NOTES = 1
303 HPDF_ANNOT_FREE_TEXT = 4
305 HPDF_ANNOT_SQUARE = 6
306 HPDF_ANNOT_CIRCLE = 7
307 HPDF_ANNOT_STRIKE_OUT = 8
308 HPDF_ANNOT_HIGHTLIGHT = 9
309 HPDF_ANNOT_UNDERLINE = 10
311 HPDF_ANNOT_FILE_ATTACHMENT = 12
312 HPDF_ANNOT_POPUP = 13
316 Public Enum HPDF_AnnotFlgs
317 HPDF_ANNOT_INVISIBLE = 1
318 HPDF_ANNOT_HIDDEN = 2
320 HPDF_ANNOT_NOZOOM = 4
321 HPDF_ANNOT_NOROTATE = 5
322 HPDF_ANNOT_NOVIEW = 6
323 HPDF_ANNOT_READONLY = 7
327 Public Enum HPDF_AnnotHighlightMode
328 HPDF_ANNOT_NO_HIGHTLIGHT = 0
329 HPDF_ANNOT_INVERT_BOX = 1
330 HPDF_ANNOT_INVERT_BORDER = 2
331 HPDF_ANNOT_DOWN_APPEARANCE = 3
332 HPDF_ANNOT_HIGHTLIGHT_MODE_EOF = 4
336 Public Enum HPDF_AnnotIcon
337 HPDF_ANNOT_ICON_COMMENT = 0
338 HPDF_ANNOT_ICON_KEY = 1
339 HPDF_ANNOT_ICON_NOTE = 2
340 HPDF_ANNOT_ICON_HELP = 3
341 HPDF_ANNOT_ICON_NEW_PARAGRAPH = 4
342 HPDF_ANNOT_ICON_PARAGRAPH = 5
343 HPDF_ANNOT_ICON_INSERT = 6
344 HPDF_ANNOT_ICON_EOF = 7
349 '/*----------------------------------------------------------------------------*/
350 '/*------ border stype --------------------------------------------------------*/
351 Public Enum HPDF_BSSubtype
356 HPDF_BS_UNDERLINED = 5
360 Public Enum HPDF_PageSizes
361 HPDF_PAGE_SIZE_LETTER = 0
362 HPDF_PAGE_SIZE_LEGAL = 1
363 HPDF_PAGE_SIZE_A3 = 2
364 HPDF_PAGE_SIZE_A4 = 3
365 HPDF_PAGE_SIZE_A5 = 4
366 HPDF_PAGE_SIZE_B4 = 5
367 HPDF_PAGE_SIZE_B5 = 6
368 HPDF_PAGE_SIZE_EXECUTIVE = 7
369 HPDF_PAGE_SIZE_US4x6 = 8
370 HPDF_PAGE_SIZE_US4x8 = 9
371 HPDF_PAGE_SIZE_US5x7 = 10
372 HPDF_PAGE_SIZE_COMM10 = 11
373 HPDF_PAGE_SIZE_EOF = 12
377 Public Enum HPDF_PageDirection
378 HPDF_PAGE_PORTRAIT = 0
379 HPDF_PAGE_LANDSCAPE = 1
383 Public Enum HPDF_EncoderType
384 HPDF_ENCODER_TYPE_SINGLE_BYTE = 1
385 HPDF_ENCODER_TYPE_DOUBLE_BYTE = 2
386 HPDF_ENCODER_TYPE_UNINITIALIZED = 3
387 HPDF_ENCODER_UNKNOWN = 4
391 Public Enum HPDF_ByteType
392 HPDF_BYTE_TYPE_SINGLE = 0
393 HPDF_BYTE_TYPE_LEAD = 1
394 HPDF_BYTE_TYPE_TRIAL = 2
395 HPDF_BYTE_TYPE_UNKNOWN = 3
399 Public Enum HPDF_TextAlignment
401 HPDF_TALIGN_RIGHT = 1
402 HPDF_TALIGN_CENTER = 2
403 HPDF_TALIGN_JUSTIFY = 3