Haru Free PDF Library
hpdf.h
Go to the documentation of this file.
1 /*
2  * << Haru Free PDF Library 2.0.8 >> -- hpdf.h
3  *
4  * URL http://libharu.org/
5  *
6  * Copyright (c) 1999-2006 Takeshi Kanno
7  * Copyright (c) 2023 Dmitry Solomennikov
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_H
19 #define _HPDF_H
20 
21 #include "hpdf_config.h"
22 #include "hpdf_version.h"
23 
24 #define HPDF_UNUSED(a) ((void)(a))
25 
26 #ifdef HPDF_DLL_MAKE
27 # define HPDF_EXPORT(A) __declspec(dllexport) A __stdcall
28 #else
29 # ifdef HPDF_DLL_MAKE_CDECL
30 # define HPDF_EXPORT(A) __declspec(dllexport) A
31 # else
32 # ifdef HPDF_SHARED_MAKE
33 # define HPDF_EXPORT(A) extern A
34 # endif /* HPDF_SHARED_MAKE */
35 # endif /* HPDF_DLL_MAKE_CDECL */
36 #endif /* HPDF_DLL_MAKE */
37 
38 #ifdef HPDF_DLL
39 # define HPDF_SHARED
40 # define HPDF_EXPORT(A) __declspec(dllimport) A __stdcall
41 # define HPDF_HANDLER(A) A __stdcall
42 #else
43 # ifdef HPDF_DLL_CDECL
44 # define HPDF_SHARED
45 # define HPDF_EXPORT(A) __declspec(dllimport) A
46 # endif /* HPDF_DLL_CDECL */
47 # define HPDF_HANDLER(A) A
48 #endif /* HPDF_DLL */
49 
50 #ifdef HPDF_SHARED
51 
52 #ifndef HPDF_EXPORT
53 #define HPDF_EXPORT(A) extern A
54 #endif /* HPDF_EXPORT */
55 
56 #include "hpdf_consts.h"
57 #include "hpdf_types.h"
58 
59 typedef void *HPDF_HANDLE;
60 typedef HPDF_HANDLE HPDF_Boolean;
61 typedef HPDF_HANDLE HPDF_Doc;
62 typedef HPDF_HANDLE HPDF_Page;
63 typedef HPDF_HANDLE HPDF_Pages;
64 typedef HPDF_HANDLE HPDF_Stream;
65 typedef HPDF_HANDLE HPDF_Image;
66 typedef HPDF_HANDLE HPDF_Font;
67 typedef HPDF_HANDLE HPDF_Outline;
68 typedef HPDF_HANDLE HPDF_Encoder;
69 typedef HPDF_HANDLE HPDF_3DMeasure;
70 typedef HPDF_HANDLE HPDF_ExData;
71 typedef HPDF_HANDLE HPDF_Destination;
72 typedef HPDF_HANDLE HPDF_XObject;
73 typedef HPDF_HANDLE HPDF_Annotation;
74 typedef HPDF_HANDLE HPDF_ExtGState;
75 typedef HPDF_HANDLE HPDF_FontDef;
76 typedef HPDF_HANDLE HPDF_U3D;
77 typedef HPDF_HANDLE HPDF_JavaScript;
78 typedef HPDF_HANDLE HPDF_Error;
79 typedef HPDF_HANDLE HPDF_MMgr;
80 typedef HPDF_HANDLE HPDF_Dict;
81 typedef HPDF_HANDLE HPDF_EmbeddedFile;
82 typedef HPDF_HANDLE HPDF_OutputIntent;
83 typedef HPDF_HANDLE HPDF_Xref;
84 typedef HPDF_HANDLE HPDF_Shading;
85 
86 #else
87 
88 #ifndef HPDF_EXPORT
89 #define HPDF_EXPORT(A) A
90 #endif /* HPDF_EXPORT */
91 
92 #include "hpdf_consts.h"
93 #include "hpdf_doc.h"
94 #include "hpdf_error.h"
95 #include "hpdf_pdfa.h"
96 #include "hpdf_page_sizes.h"
97 
98 #endif /* HPDF_SHARED */
99 
100 #ifdef __cplusplus
101 extern "C" {
102 #endif
103 
104 HPDF_EXPORT(const char *)
106 
134 HPDF_EXPORT(HPDF_Doc)
136  HPDF_Alloc_Func user_alloc_fn,
137  HPDF_Free_Func user_free_fn,
138  HPDF_UINT mem_pool_buf_size,
139  void *user_data);
140 
160 HPDF_EXPORT(HPDF_Doc)
162  void *user_data);
163 
175 HPDF_EXPORT(HPDF_STATUS)
177  HPDF_Error_Handler user_error_fn);
178 
191 HPDF_EXPORT(void)
193 
194 HPDF_EXPORT(HPDF_MMgr)
196 
215 HPDF_EXPORT(HPDF_STATUS)
217 
232 HPDF_EXPORT(void)
234 
252 HPDF_EXPORT(HPDF_BOOL)
254 
255 
270 HPDF_EXPORT(void)
272 
288 HPDF_EXPORT(HPDF_STATUS)
290 
291 HPDF_EXPORT(HPDF_STATUS)
293  HPDF_BYTE *buf,
294  HPDF_UINT32 *size);
295 
314 HPDF_EXPORT(HPDF_UINT32)
316 
338 HPDF_EXPORT(HPDF_STATUS)
340  HPDF_BYTE *buf,
341  HPDF_UINT32 *size);
342 
343 
359 HPDF_EXPORT(HPDF_STATUS)
361 
379 HPDF_EXPORT(HPDF_STATUS)
381  const char *filename);
382 
393 HPDF_EXPORT(HPDF_STATUS)
395 
396 
397 HPDF_EXPORT(HPDF_STATUS)
399 
412 HPDF_EXPORT(void)
414 
428 HPDF_EXPORT(HPDF_STATUS)
430 
462 HPDF_EXPORT(HPDF_STATUS)
464  HPDF_UINT page_per_pages);
465 
466 
467 HPDF_EXPORT(HPDF_Page)
469  HPDF_UINT index);
470 
471 
472 /*---------------------------------------------------------------------------*/
473 /*---------------------------------------------------------------------------*/
474 
475 HPDF_EXPORT(HPDF_MMgr)
477 
488 HPDF_EXPORT(HPDF_PageLayout)
490 
516 HPDF_EXPORT(HPDF_STATUS)
518  HPDF_PageLayout layout);
519 
530 HPDF_EXPORT(HPDF_PageMode)
532 
558 HPDF_EXPORT(HPDF_STATUS)
560  HPDF_PageMode mode);
561 
562 
563 HPDF_EXPORT(HPDF_UINT)
565 
566 
567 HPDF_EXPORT(HPDF_STATUS)
569  HPDF_UINT value);
570 
589 HPDF_EXPORT(HPDF_STATUS)
591  HPDF_Destination open_action);
592 
593 
594 /*---------------------------------------------------------------------------*/
595 /*----- page handling -------------------------------------------------------*/
596 
607 HPDF_EXPORT(HPDF_Page)
609 
625 HPDF_EXPORT(HPDF_Page)
627 
645 HPDF_EXPORT(HPDF_Page)
647  HPDF_Page page);
648 
692 HPDF_EXPORT(HPDF_STATUS)
694  HPDF_UINT page_num,
695  HPDF_PageNumStyle style,
696  HPDF_UINT first_page,
697  const char *prefix);
698 
699 
717 HPDF_EXPORT(HPDF_STATUS)
719  HPDF_REAL value);
720 
721 
739 HPDF_EXPORT(HPDF_STATUS)
741  HPDF_REAL value);
742 
743 HPDF_EXPORT(HPDF_STATUS)
745  HPDF_PageBoundary boundary,
746  HPDF_REAL left,
747  HPDF_REAL bottom,
748  HPDF_REAL right,
749  HPDF_REAL top);
750 
770 HPDF_EXPORT(HPDF_STATUS)
772  HPDF_PageSizes size,
773  HPDF_PageDirection direction);
774 
791 HPDF_EXPORT(HPDF_STATUS)
793  HPDF_UINT16 angle);
794 
795 HPDF_EXPORT(HPDF_STATUS)
797  HPDF_REAL zoom);
798 
799 /*---------------------------------------------------------------------------*/
800 /*----- font handling -------------------------------------------------------*/
801 
823 HPDF_EXPORT(HPDF_Font)
825  const char *font_name,
826  const char *encoding_name);
827 
828 
854 HPDF_EXPORT(const char*)
856  const char *afm_filename,
857  const char *data_filename);
858 
859 
860 HPDF_EXPORT(HPDF_FontDef)
862  const char *filename,
863  HPDF_BOOL embedding);
890 HPDF_EXPORT(const char*)
892  const char *filename,
893  HPDF_BOOL embedding);
894 
923 HPDF_EXPORT(const char*)
925  const char *filename,
926  HPDF_UINT index,
927  HPDF_BOOL embedding);
928 
929 
930 
966 HPDF_EXPORT(HPDF_STATUS)
968 
1003 HPDF_EXPORT(HPDF_STATUS)
1005 
1032 HPDF_EXPORT(HPDF_STATUS)
1034 
1058 HPDF_EXPORT(HPDF_STATUS)
1060 
1061 
1062 /*--------------------------------------------------------------------------*/
1063 /*----- outline ------------------------------------------------------------*/
1064 
1086 HPDF_EXPORT(HPDF_Outline)
1088  HPDF_Outline parent,
1089  const char *title,
1090  HPDF_Encoder encoder);
1091 
1092 
1109 HPDF_EXPORT(HPDF_STATUS)
1111  HPDF_BOOL opened);
1112 
1113 
1131 HPDF_EXPORT(HPDF_STATUS)
1133  HPDF_Destination dst);
1134 
1135 
1136 /*--------------------------------------------------------------------------*/
1137 /*----- destination --------------------------------------------------------*/
1138 
1154 HPDF_EXPORT(HPDF_Destination)
1156 
1175 HPDF_EXPORT(HPDF_STATUS)
1177  HPDF_REAL left,
1178  HPDF_REAL top,
1179  HPDF_REAL zoom);
1180 
1181 
1196 HPDF_EXPORT(HPDF_STATUS)
1198 
1199 
1216 HPDF_EXPORT(HPDF_STATUS)
1218  HPDF_REAL top);
1219 
1220 
1237 HPDF_EXPORT(HPDF_STATUS)
1239  HPDF_REAL left);
1240 
1241 
1261 HPDF_EXPORT(HPDF_STATUS)
1263  HPDF_REAL left,
1264  HPDF_REAL bottom,
1265  HPDF_REAL right,
1266  HPDF_REAL top);
1267 
1268 
1283 HPDF_EXPORT(HPDF_STATUS)
1285 
1302 HPDF_EXPORT(HPDF_STATUS)
1304  HPDF_REAL top);
1305 
1306 
1323 HPDF_EXPORT(HPDF_STATUS)
1325  HPDF_REAL left);
1326 
1327 /*--------------------------------------------------------------------------*/
1328 /*----- encoder ------------------------------------------------------------*/
1329 
1347 HPDF_EXPORT(HPDF_Encoder)
1349  const char *encoding_name);
1350 
1367 HPDF_EXPORT(HPDF_Encoder)
1369 
1387 HPDF_EXPORT(HPDF_STATUS)
1389  const char *encoding_name);
1390 
1403 HPDF_EXPORT(HPDF_EncoderType)
1405 
1406 
1421 HPDF_EXPORT(HPDF_ByteType)
1423  const char *text,
1424  HPDF_UINT index);
1425 
1426 
1438 HPDF_EXPORT(HPDF_UNICODE)
1440  HPDF_UINT16 code);
1441 
1453 HPDF_EXPORT(HPDF_WritingMode)
1455 
1483 HPDF_EXPORT(HPDF_STATUS)
1485 
1512 HPDF_EXPORT(HPDF_STATUS)
1514 
1541 HPDF_EXPORT(HPDF_STATUS)
1543 
1544 
1571 HPDF_EXPORT(HPDF_STATUS)
1573 
1594 HPDF_EXPORT(HPDF_STATUS)
1596 
1597 
1598 /*--------------------------------------------------------------------------*/
1599 /*----- XObject ------------------------------------------------------------*/
1600 
1601 HPDF_EXPORT(HPDF_XObject)
1603  HPDF_Page page,
1604  HPDF_Rect rect,
1605  HPDF_Image image,
1606  HPDF_BOOL zoom);
1607 
1608 HPDF_EXPORT(HPDF_XObject)
1610  HPDF_Page page,
1611  HPDF_Rect rect);
1612 
1613 /*--------------------------------------------------------------------------*/
1614 /*----- annotation ---------------------------------------------------------*/
1615 
1616 HPDF_EXPORT(HPDF_Annotation)
1618  HPDF_Rect rect,
1619  HPDF_BOOL tb,
1620  HPDF_BOOL np,
1621  HPDF_U3D u3d,
1622  HPDF_Image ap);
1623 
1645 HPDF_EXPORT(HPDF_Annotation)
1647  HPDF_Rect rect,
1648  const char *text,
1649  HPDF_Encoder encoder);
1650 
1651 HPDF_EXPORT(HPDF_Annotation)
1653  HPDF_Rect rect,
1654  const char *text,
1655  HPDF_Encoder encoder);
1656 
1657 HPDF_EXPORT(HPDF_Annotation)
1659  const char *text,
1660  HPDF_Encoder encoder);
1661 
1662 HPDF_EXPORT(HPDF_Annotation)
1664  HPDF_Page page,
1665  HPDF_Rect rect);
1666 
1667 HPDF_EXPORT(HPDF_Annotation)
1669  HPDF_Rect rect);
1670 
1689 HPDF_EXPORT(HPDF_Annotation)
1691  HPDF_Rect rect,
1692  HPDF_Destination dst);
1693 
1694 
1712 HPDF_EXPORT(HPDF_Annotation)
1714  HPDF_Rect rect,
1715  const char *uri);
1716 
1717 
1720  HPDF_Rect rect,
1721  const char *text,
1722  HPDF_Encoder encoder,
1723  HPDF_AnnotType subType);
1724 
1725 HPDF_EXPORT(HPDF_Annotation)
1727  HPDF_Rect rect,
1728  const char *text,
1729  HPDF_Encoder encoder);
1730 
1731 HPDF_EXPORT(HPDF_Annotation)
1733  HPDF_Rect rect,
1734  const char *text,
1735  HPDF_Encoder encoder);
1736 
1737 HPDF_EXPORT(HPDF_Annotation)
1739  HPDF_Rect rect,
1740  const char *text,
1741  HPDF_Encoder encoder);
1742 
1743 HPDF_EXPORT(HPDF_Annotation)
1745  HPDF_Rect rect,
1746  const char *text,
1747  HPDF_Encoder encoder);
1748 
1749 HPDF_EXPORT(HPDF_Annotation)
1751  HPDF_Rect rect,
1752  HPDF_Annotation parent);
1753 
1754 HPDF_EXPORT(HPDF_Annotation)
1756  HPDF_Rect rect,
1757  HPDF_StampAnnotName name,
1758  const char *text,
1759  HPDF_Encoder encoder);
1760 
1761 HPDF_EXPORT(HPDF_Annotation)
1763  HPDF_Rect rect,
1764  const char *text,
1765  HPDF_Encoder encoder);
1766 
1767 HPDF_EXPORT(HPDF_Annotation)
1769  HPDF_Rect rect,
1770  const char *text,
1771  HPDF_Encoder encoder);
1772 
1773 HPDF_EXPORT(HPDF_Annotation)
1775  HPDF_Rect rect,
1776  const char *text,
1777  HPDF_Encoder encoder);
1778 
1796 HPDF_EXPORT(HPDF_STATUS)
1799 
1800 HPDF_EXPORT(HPDF_STATUS)
1802  HPDF_JavaScript javascript);
1803 
1822 HPDF_EXPORT(HPDF_STATUS)
1824  HPDF_REAL width,
1825  HPDF_UINT16 dash_on,
1826  HPDF_UINT16 dash_off);
1827 
1828 
1848 HPDF_EXPORT(HPDF_STATUS)
1850  HPDF_AnnotIcon icon);
1851 
1852 
1869 HPDF_EXPORT(HPDF_STATUS)
1871  HPDF_BOOL opened);
1872 
1873 HPDF_EXPORT(HPDF_STATUS)
1875  HPDF_RGBColor color);
1876 
1877 HPDF_EXPORT(HPDF_STATUS)
1879  HPDF_CMYKColor color);
1880 
1881 HPDF_EXPORT(HPDF_STATUS)
1883  HPDF_REAL color);
1884 
1885 HPDF_EXPORT(HPDF_STATUS)
1887 
1888 HPDF_EXPORT(HPDF_STATUS)
1890  const char *name);
1891 
1892 HPDF_EXPORT(HPDF_STATUS)
1894  const char *name);
1895 
1896 HPDF_EXPORT(HPDF_STATUS)
1898  HPDF_Date value);
1899 
1900 HPDF_EXPORT(HPDF_STATUS)
1902  HPDF_REAL value);
1903 
1904 HPDF_EXPORT(HPDF_STATUS)
1906  HPDF_AnnotIntent intent);
1907 
1908 HPDF_EXPORT(HPDF_STATUS)
1910  HPDF_Annotation popup);
1911 
1912 HPDF_EXPORT(HPDF_STATUS)
1914  HPDF_Rect rect); /* RD entry */
1915 
1916 HPDF_EXPORT(HPDF_STATUS)
1918  HPDF_INT cloudIntensity); /* BE entry */
1919 
1920 HPDF_EXPORT(HPDF_STATUS)
1922  HPDF_RGBColor color); /* IC with RGB entry */
1923 
1924 HPDF_EXPORT(HPDF_STATUS)
1926  HPDF_CMYKColor color); /* IC with CMYK entry */
1927 
1928 HPDF_EXPORT(HPDF_STATUS)
1930  HPDF_REAL color); /* IC with Gray entry */
1931 
1932 HPDF_EXPORT(HPDF_STATUS)
1933 HPDF_MarkupAnnot_SetInteriorTransparent (HPDF_Annotation annot); /* IC with No Color entry */
1934 
1935 HPDF_EXPORT(HPDF_STATUS)
1937  HPDF_Point lb,
1938  HPDF_Point rb,
1939  HPDF_Point rt,
1940  HPDF_Point lt); /* l-left, r-right, b-bottom, t-top positions */
1941 
1942 HPDF_EXPORT(HPDF_STATUS)
1944  HPDF_Annotation annot,
1945  HPDF_Annotation annot3d,
1946  HPDF_Dict view);
1947 
1948 HPDF_EXPORT(HPDF_STATUS)
1950  HPDF_BOOL opened);
1951 
1952 HPDF_EXPORT(HPDF_STATUS)
1954 
1955 HPDF_EXPORT(HPDF_STATUS)
1957  HPDF_Point startPoint,
1958  HPDF_Point kneePoint,
1959  HPDF_Point endPoint); /* Callout line will be in default user space */
1960 
1961 HPDF_EXPORT(HPDF_STATUS)
1963  HPDF_Point startPoint,
1964  HPDF_Point endPoint); /* Callout line will be in default user space */
1965 
1966 HPDF_EXPORT(HPDF_STATUS)
1968  const char* style);
1969 
1970 HPDF_EXPORT(HPDF_STATUS)
1972  HPDF_Point startPoint,
1973  HPDF_LineAnnotEndingStyle startStyle,
1974  HPDF_Point endPoint,
1975  HPDF_LineAnnotEndingStyle endStyle);
1976 
1977 HPDF_EXPORT(HPDF_STATUS)
1979  HPDF_INT leaderLen,
1980  HPDF_INT leaderExtLen,
1981  HPDF_INT leaderOffsetLen);
1982 
1983 HPDF_EXPORT(HPDF_STATUS)
1985  HPDF_BOOL showCaption,
1986  HPDF_LineAnnotCapPosition position,
1987  HPDF_INT horzOffset,
1988  HPDF_INT vertOffset);
1989 
2010 HPDF_EXPORT(HPDF_STATUS)
2012  HPDF_BSSubtype subtype,
2013  HPDF_REAL width,
2014  HPDF_UINT16 dash_on,
2015  HPDF_UINT16 dash_off,
2016  HPDF_UINT16 dash_phase);
2017 
2018 HPDF_EXPORT(HPDF_STATUS)
2020 
2021 
2022 /*--------------------------------------------------------------------------*/
2023 /*----- 3D Measure ---------------------------------------------------------*/
2024 HPDF_EXPORT(HPDF_3DMeasure)
2026  HPDF_Point3D firstanchorpoint,
2027  HPDF_Point3D textanchorpoint);
2028 
2029 HPDF_EXPORT(HPDF_3DMeasure)
2031  HPDF_Point3D annotationPlaneNormal,
2032  HPDF_Point3D firstAnchorPoint,
2033  HPDF_Point3D secondAnchorPoint,
2034  HPDF_Point3D leaderLinesDirection,
2035  HPDF_Point3D measurementValuePoint,
2036  HPDF_Point3D textYDirection,
2037  HPDF_REAL value,
2038  const char *unitsString);
2039 
2040 HPDF_EXPORT(HPDF_STATUS)
2042  const char *name);
2043 
2044 HPDF_EXPORT(HPDF_STATUS)
2046  HPDF_RGBColor color);
2047 
2048 HPDF_EXPORT(HPDF_STATUS)
2050  HPDF_REAL textsize);
2051 
2052 HPDF_EXPORT(HPDF_STATUS)
2054  HPDF_INT32 x,
2055  HPDF_INT32 y);
2056 
2057 HPDF_EXPORT(HPDF_STATUS)
2059  const char *text,
2060  HPDF_Encoder encoder);
2061 
2062 HPDF_EXPORT(HPDF_STATUS)
2064  HPDF_Annotation projectionanotation);
2065 
2066 /*--------------------------------------------------------------------------*/
2067 /*----- External Data ---------------------------------------------------------*/
2068 
2069 HPDF_EXPORT(HPDF_ExData)
2071 
2072 HPDF_EXPORT(HPDF_STATUS)
2074  HPDF_3DMeasure measure);
2075 
2076 /*--------------------------------------------------------------------------*/
2077 /*--------------------------------------------------------------------------*/
2078 /*----- 3D View ---------------------------------------------------------*/
2079 
2080 HPDF_EXPORT(HPDF_Dict)
2082  HPDF_U3D u3d,
2083  HPDF_Annotation annot3d,
2084  const char *name);
2085 
2086 HPDF_EXPORT(HPDF_STATUS)
2088  HPDF_3DMeasure measure);
2089 
2090 /*--------------------------------------------------------------------------*/
2091 /*----- image data ---------------------------------------------------------*/
2092 
2111 HPDF_EXPORT(HPDF_Image)
2113  const HPDF_BYTE *buf,
2114  HPDF_UINT size);
2115 
2135 HPDF_EXPORT(HPDF_Image)
2137  const char *filename);
2138 
2162 HPDF_EXPORT(HPDF_Image)
2164  const char *filename);
2165 
2166 
2187 HPDF_EXPORT(HPDF_Image)
2189  const char *filename);
2210 HPDF_EXPORT(HPDF_Image)
2212  const HPDF_BYTE *buf,
2213  HPDF_UINT size);
2214 
2215 HPDF_EXPORT(HPDF_Image)
2217  const char *filename);
2218 
2219 HPDF_EXPORT(HPDF_Image)
2221  const HPDF_BYTE *buffer,
2222  HPDF_UINT size);
2223 
2224 HPDF_EXPORT(HPDF_Image)
2226  const HPDF_BYTE *buf,
2227  HPDF_UINT width,
2228  HPDF_UINT height,
2229  HPDF_UINT line_width,
2230  HPDF_BOOL black_is1,
2231  HPDF_BOOL top_is_first);
2232 
2258 HPDF_EXPORT(HPDF_Image)
2260  const char *filename,
2261  HPDF_UINT width,
2262  HPDF_UINT height,
2263  HPDF_ColorSpace color_space);
2264 
2291 HPDF_EXPORT(HPDF_Image)
2293  const HPDF_BYTE *buf,
2294  HPDF_UINT width,
2295  HPDF_UINT height,
2296  HPDF_ColorSpace color_space,
2297  HPDF_UINT bits_per_component);
2298 
2299 HPDF_EXPORT(HPDF_STATUS)
2301  HPDF_Image smask);
2302 
2313 HPDF_EXPORT(HPDF_Point)
2315 
2316 
2334 HPDF_EXPORT(HPDF_STATUS)
2336 
2347 HPDF_EXPORT(HPDF_UINT)
2349 
2360 HPDF_EXPORT(HPDF_UINT)
2362 
2373 HPDF_EXPORT(HPDF_UINT)
2375 
2388 HPDF_EXPORT(const char*)
2390 
2413 HPDF_EXPORT(HPDF_STATUS)
2415  HPDF_UINT rmin,
2416  HPDF_UINT rmax,
2417  HPDF_UINT gmin,
2418  HPDF_UINT gmax,
2419  HPDF_UINT bmin,
2420  HPDF_UINT bmax);
2421 
2422 
2440 HPDF_EXPORT(HPDF_STATUS)
2442  HPDF_Image mask_image);
2443 
2444 
2445 /*--------------------------------------------------------------------------*/
2446 /*----- info dictionary ----------------------------------------------------*/
2447 
2477 HPDF_EXPORT(HPDF_STATUS)
2479  HPDF_InfoType type,
2480  const char *value);
2481 
2509 HPDF_EXPORT(const char*)
2511  HPDF_InfoType type);
2512 
2536 HPDF_EXPORT(HPDF_STATUS)
2538  HPDF_InfoType type,
2539  HPDF_Date value);
2540 
2541 
2542 /*--------------------------------------------------------------------------*/
2543 /*----- encryption ---------------------------------------------------------*/
2544 
2563 HPDF_EXPORT(HPDF_STATUS)
2565  const char *owner_password,
2566  const char *user_password);
2567 
2592 HPDF_EXPORT(HPDF_STATUS)
2594  HPDF_UINT permission);
2595 
2620 HPDF_EXPORT(HPDF_STATUS)
2622  HPDF_EncryptMode mode,
2623  HPDF_UINT key_len);
2624 
2625 
2626 /*--------------------------------------------------------------------------*/
2627 /*----- compression --------------------------------------------------------*/
2628 
2654 HPDF_EXPORT(HPDF_STATUS)
2656  HPDF_UINT mode);
2657 
2658 
2659 /*--------------------------------------------------------------------------*/
2660 /*----- font ---------------------------------------------------------------*/
2661 
2672 HPDF_EXPORT(const char*)
2674 
2675 
2686 HPDF_EXPORT(const char*)
2688 
2689 
2710 HPDF_EXPORT(HPDF_INT)
2712  HPDF_UNICODE code);
2713 
2724 HPDF_EXPORT(HPDF_Box)
2726 
2737 HPDF_EXPORT(HPDF_INT)
2739 
2750 HPDF_EXPORT(HPDF_INT)
2752 
2763 HPDF_EXPORT(HPDF_UINT)
2765 
2776 HPDF_EXPORT(HPDF_UINT)
2778 
2779 
2795 HPDF_EXPORT(HPDF_TextWidth)
2797  const HPDF_BYTE *text,
2798  HPDF_UINT len);
2799 
2800 
2831 HPDF_EXPORT(HPDF_UINT)
2833  const HPDF_BYTE *text,
2834  HPDF_UINT len,
2835  HPDF_REAL width,
2836  HPDF_REAL font_size,
2837  HPDF_REAL char_space,
2838  HPDF_REAL word_space,
2839  HPDF_BOOL wordwrap,
2840  HPDF_REAL *real_width);
2841 
2842 
2843 /*--------------------------------------------------------------------------*/
2844 /*----- attachments -------------------------------------------------------*/
2845 
2846 HPDF_EXPORT(HPDF_EmbeddedFile)
2848  const char *file);
2849 
2850 
2851 /*--------------------------------------------------------------------------*/
2852 /*----- extended graphics state --------------------------------------------*/
2853 
2854 HPDF_EXPORT(HPDF_ExtGState)
2856 
2857 
2858 HPDF_EXPORT(HPDF_STATUS)
2860  HPDF_REAL value);
2861 
2862 
2863 HPDF_EXPORT(HPDF_STATUS)
2865  HPDF_REAL value);
2866 
2867 
2868 
2869 HPDF_EXPORT(HPDF_STATUS)
2871  HPDF_BlendMode mode);
2872 
2873 
2874 /*--------------------------------------------------------------------------*/
2875 /*--------------------------------------------------------------------------*/
2876 
2894 HPDF_EXPORT(HPDF_REAL)
2896  const char *text);
2897 
2898 
2928 HPDF_EXPORT(HPDF_UINT)
2930  const char *text,
2931  HPDF_REAL width,
2932  HPDF_BOOL wordwrap,
2933  HPDF_REAL *real_width);
2934 
2945 HPDF_EXPORT(HPDF_REAL)
2947 
2948 
2959 HPDF_EXPORT(HPDF_REAL)
2961 
2962 
2973 HPDF_EXPORT(HPDF_UINT16)
2975 
2976 
2993 HPDF_EXPORT(HPDF_Point)
2995 
2996 
2997 HPDF_EXPORT(HPDF_STATUS)
2999  HPDF_Point *pos);
3000 
3001 
3014 HPDF_EXPORT(HPDF_Point)
3016 
3017 
3018 HPDF_EXPORT(HPDF_STATUS)
3020  HPDF_Point *pos);
3021 
3022 
3033 HPDF_EXPORT(HPDF_Font)
3035 
3036 
3047 HPDF_EXPORT(HPDF_REAL)
3049 
3050 
3063 HPDF_EXPORT(HPDF_TransMatrix)
3065 
3066 
3077 HPDF_EXPORT(HPDF_REAL)
3079 
3080 
3091 HPDF_EXPORT(HPDF_LineCap)
3093 
3094 
3105 HPDF_EXPORT(HPDF_LineJoin)
3107 
3108 
3119 HPDF_EXPORT(HPDF_REAL)
3121 
3122 
3134 HPDF_EXPORT(HPDF_DashMode)
3136 
3137 
3148 HPDF_EXPORT(HPDF_REAL)
3150 
3161 HPDF_EXPORT(HPDF_REAL)
3163 
3164 
3175 HPDF_EXPORT(HPDF_REAL)
3177 
3190 HPDF_EXPORT(HPDF_REAL)
3192 
3203 HPDF_EXPORT(HPDF_REAL)
3205 
3216 HPDF_EXPORT(HPDF_TextRenderingMode)
3218 
3219 
3225 HPDF_EXPORT(HPDF_REAL)
3227 
3228 
3239 HPDF_EXPORT(HPDF_REAL)
3241 
3242 
3255 HPDF_EXPORT(HPDF_RGBColor)
3257 
3258 
3271 HPDF_EXPORT(HPDF_RGBColor)
3273 
3274 
3287 HPDF_EXPORT(HPDF_CMYKColor)
3289 
3290 
3303 HPDF_EXPORT(HPDF_CMYKColor)
3305 
3306 
3319 HPDF_EXPORT(HPDF_REAL)
3321 
3334 HPDF_EXPORT(HPDF_REAL)
3336 
3347 HPDF_EXPORT(HPDF_ColorSpace)
3349 
3360 HPDF_EXPORT(HPDF_ColorSpace)
3362 
3373 HPDF_EXPORT(HPDF_TransMatrix)
3375 
3388 HPDF_EXPORT(HPDF_UINT)
3390 
3391 
3392 /*--------------------------------------------------------------------------*/
3393 /*----- GRAPHICS OPERATORS -------------------------------------------------*/
3394 
3395 
3396 /*--- General graphics state ---------------------------------------------*/
3397 
3420 HPDF_EXPORT(HPDF_STATUS)
3422  HPDF_REAL line_width);
3423 
3451 HPDF_EXPORT(HPDF_STATUS)
3453  HPDF_LineCap line_cap);
3454 
3482 HPDF_EXPORT(HPDF_STATUS)
3484  HPDF_LineJoin line_join);
3485 
3511 HPDF_EXPORT(HPDF_STATUS)
3513  HPDF_REAL miter_limit);
3514 
3553 HPDF_EXPORT(HPDF_STATUS)
3555  const HPDF_REAL *dash_pattern,
3556  HPDF_UINT num_elem,
3557  HPDF_REAL phase);
3558 
3559 
3560 
3561 /* ri --not implemented yet */
3562 
3563 /* i */
3564 HPDF_EXPORT(HPDF_STATUS)
3566  HPDF_REAL flatness);
3567 
3586 HPDF_EXPORT(HPDF_STATUS)
3588  HPDF_ExtGState ext_gstate);
3589 
3590 /* sh */
3591 HPDF_EXPORT(HPDF_STATUS)
3593  HPDF_Shading shading);
3594 
3595 
3596 /*--- Special graphic state operator --------------------------------------*/
3597 
3639 HPDF_EXPORT(HPDF_STATUS)
3641 
3660 HPDF_EXPORT(HPDF_STATUS)
3662 
3713 HPDF_EXPORT(HPDF_STATUS)
3715  HPDF_REAL a,
3716  HPDF_REAL b,
3717  HPDF_REAL c,
3718  HPDF_REAL d,
3719  HPDF_REAL x,
3720  HPDF_REAL y);
3721 
3741 HPDF_EXPORT(HPDF_STATUS)
3743  HPDF_REAL dx,
3744  HPDF_REAL dy);
3745 
3768 HPDF_EXPORT(HPDF_STATUS)
3770  HPDF_REAL sx,
3771  HPDF_REAL sy);
3772 
3791 HPDF_EXPORT(HPDF_STATUS)
3793  HPDF_REAL degrees);
3814 HPDF_EXPORT(HPDF_STATUS)
3816  HPDF_REAL a);
3817 
3838 HPDF_EXPORT(HPDF_STATUS)
3840  HPDF_REAL a,
3841  HPDF_REAL b);
3842 /*--- Path construction operator ------------------------------------------*/
3843 
3865 HPDF_EXPORT(HPDF_STATUS)
3867  HPDF_REAL x,
3868  HPDF_REAL y);
3869 
3889 HPDF_EXPORT(HPDF_STATUS)
3891  HPDF_REAL x,
3892  HPDF_REAL y);
3893 
3918 HPDF_EXPORT(HPDF_STATUS)
3920  HPDF_REAL x1,
3921  HPDF_REAL y1,
3922  HPDF_REAL x2,
3923  HPDF_REAL y2,
3924  HPDF_REAL x3,
3925  HPDF_REAL y3);
3926 
3949 HPDF_EXPORT(HPDF_STATUS)
3951  HPDF_REAL x2,
3952  HPDF_REAL y2,
3953  HPDF_REAL x3,
3954  HPDF_REAL y3);
3955 
3980 HPDF_EXPORT(HPDF_STATUS)
3982  HPDF_REAL x1,
3983  HPDF_REAL y1,
3984  HPDF_REAL x3,
3985  HPDF_REAL y3);
3986 
3987 
4008 HPDF_EXPORT(HPDF_STATUS)
4010 
4032 HPDF_EXPORT(HPDF_STATUS)
4034  HPDF_REAL x,
4035  HPDF_REAL y,
4036  HPDF_REAL width,
4037  HPDF_REAL height);
4038 
4039 
4040 /*--- Path painting operator ---------------------------------------------*/
4041 
4060 HPDF_EXPORT(HPDF_STATUS)
4062 
4081 HPDF_EXPORT(HPDF_STATUS)
4083 
4102 HPDF_EXPORT(HPDF_STATUS)
4104 
4123 HPDF_EXPORT(HPDF_STATUS)
4125 
4144 HPDF_EXPORT(HPDF_STATUS)
4146 
4147 
4165 HPDF_EXPORT(HPDF_STATUS)
4167 
4185 HPDF_EXPORT(HPDF_STATUS)
4187 
4205 HPDF_EXPORT(HPDF_STATUS)
4207 
4226 HPDF_EXPORT(HPDF_STATUS)
4228 
4229 
4230 /*--- Clipping paths operator --------------------------------------------*/
4231 
4260 HPDF_EXPORT(HPDF_STATUS)
4262 
4289 HPDF_EXPORT(HPDF_STATUS)
4291 
4292 
4293 /*--- Text object operator -----------------------------------------------*/
4294 
4314 HPDF_EXPORT(HPDF_STATUS)
4316 
4337 HPDF_EXPORT(HPDF_STATUS)
4339 
4340 /*--- Text state ---------------------------------------------------------*/
4341 
4361 HPDF_EXPORT(HPDF_STATUS)
4363  HPDF_REAL value);
4364 
4384 HPDF_EXPORT(HPDF_STATUS)
4386  HPDF_REAL value);
4387 
4409 HPDF_EXPORT(HPDF_STATUS)
4411  HPDF_REAL value);
4412 
4432 HPDF_EXPORT(HPDF_STATUS)
4434  HPDF_REAL value);
4435 
4455 HPDF_EXPORT(HPDF_STATUS)
4457  HPDF_Font font,
4458  HPDF_REAL size);
4459 
4494 HPDF_EXPORT(HPDF_STATUS)
4496  HPDF_TextRenderingMode mode);
4497 
4523 HPDF_EXPORT(HPDF_STATUS)
4525  HPDF_REAL value);
4526 
4554 HPDF_EXPORT(HPDF_STATUS)
4556  HPDF_REAL value);
4557 
4558 /*--- Text positioning ---------------------------------------------------*/
4559 
4581 HPDF_EXPORT(HPDF_STATUS)
4583  HPDF_REAL x,
4584  HPDF_REAL y);
4585 
4609 HPDF_EXPORT(HPDF_STATUS)
4611  HPDF_REAL x,
4612  HPDF_REAL y);
4613 
4614 /* Tm */
4615 HPDF_EXPORT(HPDF_STATUS)
4617  HPDF_REAL a,
4618  HPDF_REAL b,
4619  HPDF_REAL c,
4620  HPDF_REAL d,
4621  HPDF_REAL x,
4622  HPDF_REAL y);
4623 
4624 
4645 HPDF_EXPORT(HPDF_STATUS)
4647 
4648 /*--- Text showing -------------------------------------------------------*/
4649 
4671 HPDF_EXPORT(HPDF_STATUS)
4673  const char *text);
4674 
4675 /* TJ */
4676 
4697 HPDF_EXPORT(HPDF_STATUS)
4699  const char *text);
4700 
4726 HPDF_EXPORT(HPDF_STATUS)
4728  HPDF_REAL word_space,
4729  HPDF_REAL char_space,
4730  const char *text);
4731 
4732 
4733 /*--- Color showing ------------------------------------------------------*/
4734 
4735 /* cs --not implemented yet */
4736 /* CS --not implemented yet */
4737 /* sc --not implemented yet */
4738 /* scn --not implemented yet */
4739 /* SC --not implemented yet */
4740 /* SCN --not implemented yet */
4741 
4763 HPDF_EXPORT(HPDF_STATUS)
4765  HPDF_REAL value);
4766 
4788 HPDF_EXPORT(HPDF_STATUS)
4790  HPDF_REAL value);
4791 
4813 HPDF_EXPORT(HPDF_STATUS)
4815  HPDF_REAL r,
4816  HPDF_REAL g,
4817  HPDF_REAL b);
4818 
4840 HPDF_EXPORT(HPDF_STATUS)
4842  HPDF_REAL r,
4843  HPDF_REAL g,
4844  HPDF_REAL b);
4845 
4867 HPDF_EXPORT(HPDF_STATUS)
4869  HPDF_UINT8 r,
4870  HPDF_UINT8 g,
4871  HPDF_UINT8 b);
4872 
4894 HPDF_EXPORT(HPDF_STATUS)
4896  HPDF_REAL c,
4897  HPDF_REAL m,
4898  HPDF_REAL y,
4899  HPDF_REAL k);
4900 
4922 HPDF_EXPORT(HPDF_STATUS)
4924  HPDF_REAL c,
4925  HPDF_REAL m,
4926  HPDF_REAL y,
4927  HPDF_REAL k);
4928 
4929 /*--- Shading patterns ---------------------------------------------------*/
4930 
4931 /* Notes for docs:
4932  * - ShadingType must be HPDF_SHADING_FREE_FORM_TRIANGLE_MESH (the only
4933  * defined option...)
4934  * - colorSpace must be HPDF_CS_DEVICE_RGB for now.
4935  */
4936 HPDF_EXPORT(HPDF_Shading)
4938  HPDF_ShadingType type,
4939  HPDF_ColorSpace colorSpace,
4940  HPDF_REAL xMin,
4941  HPDF_REAL xMax,
4942  HPDF_REAL yMin,
4943  HPDF_REAL yMax);
4944 
4945 HPDF_EXPORT(HPDF_STATUS)
4948  HPDF_REAL x,
4949  HPDF_REAL y,
4950  HPDF_UINT8 r,
4951  HPDF_UINT8 g,
4952  HPDF_UINT8 b);
4953 
4954 /*--- In-line images -----------------------------------------------------*/
4955 
4956 /* BI --not implemented yet */
4957 /* ID --not implemented yet */
4958 /* EI --not implemented yet */
4959 
4960 /*--- XObjects -----------------------------------------------------------*/
4961 
4985 HPDF_EXPORT(HPDF_STATUS)
4987  HPDF_XObject obj);
4988 
4989 /*--- Content streams ----------------------------------------------------*/
4990 
5013 HPDF_EXPORT(HPDF_STATUS)
5015  HPDF_Dict *new_stream);
5029 HPDF_EXPORT(HPDF_STATUS)
5031  HPDF_Dict shared_stream);
5032 
5033 
5034 /*--- Marked content -----------------------------------------------------*/
5035 
5036 /* BMC --not implemented yet */
5037 /* BDC --not implemented yet */
5038 /* EMC --not implemented yet */
5039 /* MP --not implemented yet */
5040 /* DP --not implemented yet */
5041 
5042 /*--- Compatibility ------------------------------------------------------*/
5043 
5044 /* BX --not implemented yet */
5045 /* EX --not implemented yet */
5046 
5066 HPDF_EXPORT(HPDF_STATUS)
5068  HPDF_Image image,
5069  HPDF_REAL x,
5070  HPDF_REAL y,
5071  HPDF_REAL width,
5072  HPDF_REAL height);
5073 
5091 HPDF_EXPORT(HPDF_STATUS)
5093  HPDF_REAL x,
5094  HPDF_REAL y,
5095  HPDF_REAL radius);
5096 
5097 
5115 HPDF_EXPORT(HPDF_STATUS)
5117  HPDF_REAL x,
5118  HPDF_REAL y,
5119  HPDF_REAL x_radius,
5120  HPDF_REAL y_radius);
5121 
5143 HPDF_EXPORT(HPDF_STATUS)
5145  HPDF_REAL x,
5146  HPDF_REAL y,
5147  HPDF_REAL radius,
5148  HPDF_REAL ang1,
5149  HPDF_REAL ang2);
5150 
5168 HPDF_EXPORT(HPDF_STATUS)
5170  HPDF_REAL xpos,
5171  HPDF_REAL ypos,
5172  const char *text);
5173 
5174 
5203 HPDF_EXPORT(HPDF_STATUS)
5205  HPDF_REAL left,
5206  HPDF_REAL top,
5207  HPDF_REAL right,
5208  HPDF_REAL bottom,
5209  const char *text,
5210  HPDF_TextAlignment align,
5211  HPDF_UINT *len);
5212 
5213 
5227 HPDF_EXPORT(HPDF_STATUS)
5229  HPDF_TransitionStyle type,
5230  HPDF_REAL disp_time,
5231  HPDF_REAL trans_time);
5232 
5233 
5234 HPDF_EXPORT(HPDF_OutputIntent)
5236  HPDF_MMgr mmgr,
5237  HPDF_Stream iccdata,
5238  HPDF_Xref xref,
5239  int numcomponent);
5240 
5241 HPDF_EXPORT(HPDF_OutputIntent)
5243  const char *icc_file_name,
5244  int numcomponent);
5245 
5263 HPDF_EXPORT(HPDF_STATUS)
5265  char *data);
5266 
5267 #ifdef __cplusplus
5268 }
5269 #endif /* __cplusplus */
5270 
5271 #endif /* _HPDF_H */
HPDF_STATUS HPDF_ResetStream(HPDF_Doc pdf)
Rewind temporary stream of the document.
HPDF_STATUS HPDF_SetPagesConfiguration(HPDF_Doc pdf, HPDF_UINT page_per_pages)
Specify number of pages Pages object can own.
HPDF_STATUS HPDF_NewDoc(HPDF_Doc pdf)
Create a new document. If doc object already has a document, the current document is revoked.
void HPDF_FreeDoc(HPDF_Doc pdf)
Revoke the current document.
HPDF_STATUS HPDF_SaveToStream(HPDF_Doc pdf)
Saves the current document to a temporary stream of a document object.
HPDF_STATUS HPDF_SaveToFile(HPDF_Doc pdf, const char *filename)
Saves the current document to file.
HPDF_STATUS HPDF_SetErrorHandler(HPDF_Doc pdf, HPDF_Error_Handler user_error_fn)
Set a user-defined error handler for document. If subsequent function calls fail, the error handler i...
void HPDF_Free(HPDF_Doc pdf)
Revoke a document object and all resources.
void HPDF_FreeDocAll(HPDF_Doc pdf)
Revoke the current document.
HPDF_UINT32 HPDF_GetStreamSize(HPDF_Doc pdf)
Gets the size of the temporary stream of the document.
HPDF_Doc HPDF_New(HPDF_Error_Handler user_error_fn, void *user_data)
Create an instance of a document object and initialize it.
HPDF_Doc HPDF_NewEx(HPDF_Error_Handler user_error_fn, HPDF_Alloc_Func user_alloc_fn, HPDF_Free_Func user_free_fn, HPDF_UINT mem_pool_buf_size, void *user_data)
Create an instance of a document object and initialize it.
HPDF_STATUS HPDF_ReadFromStream(HPDF_Doc pdf, HPDF_BYTE *buf, HPDF_UINT32 *size)
Copies the data from the temporary stream of the document into buffer buf.
HPDF_BOOL HPDF_HasDoc(HPDF_Doc pdf)
Check if document handle is valid.
HPDF_STATUS HPDF_UseCNSEncodings(HPDF_Doc pdf)
Enable simplified Chinese encodings.
HPDF_Encoder HPDF_GetCurrentEncoder(HPDF_Doc pdf)
Get current encoder handle of document object.
HPDF_Encoder HPDF_GetEncoder(HPDF_Doc pdf, const char *encoding_name)
Get encoder object handle by specified encoding name.
HPDF_ByteType HPDF_Encoder_GetByteType(HPDF_Encoder encoder, const char *text, HPDF_UINT index)
Get byte type of a text char at index position.
HPDF_STATUS HPDF_UseKREncodings(HPDF_Doc pdf)
Enable Korean encodings.
HPDF_EncoderType HPDF_Encoder_GetType(HPDF_Encoder encoder)
Get encoder object type.
HPDF_STATUS HPDF_SetCurrentEncoder(HPDF_Doc pdf, const char *encoding_name)
Set current encoder for document.
HPDF_WritingMode HPDF_Encoder_GetWritingMode(HPDF_Encoder encoder)
Get writing mode for the encoding object.
HPDF_STATUS HPDF_UseJPEncodings(HPDF_Doc pdf)
Enable Japanese encodings.
HPDF_STATUS HPDF_UseUTFEncodings(HPDF_Doc pdf)
Enable UTF-8 encoding.
HPDF_UNICODE HPDF_Encoder_GetUnicode(HPDF_Encoder encoder, HPDF_UINT16 code)
Convert a specified character code to Unicode value.
HPDF_STATUS HPDF_UseCNTEncodings(HPDF_Doc pdf)
Enable traditional Chinese encodings.
void HPDF_ResetError(HPDF_Doc pdf)
Cleanup document error.
HPDF_STATUS HPDF_CheckError(HPDF_Error error)
Check error code.
HPDF_STATUS HPDF_GetError(HPDF_Doc pdf)
Return the last error code of specified document object.
HPDF_UINT HPDF_Font_MeasureText(HPDF_Font font, const HPDF_BYTE *text, HPDF_UINT len, HPDF_REAL width, HPDF_REAL font_size, HPDF_REAL char_space, HPDF_REAL word_space, HPDF_BOOL wordwrap, HPDF_REAL *real_width)
Calculate byte length which can be included within the specified width.
HPDF_STATUS HPDF_UseKRFonts(HPDF_Doc pdf)
Enable Korean fonts. Application can use following Korean fonts after HPDF_UseKRFonts() call:
HPDF_TextWidth HPDF_Font_TextWidth(HPDF_Font font, const HPDF_BYTE *text, HPDF_UINT len)
Get total width of the text, number of characters, and number of words.
HPDF_UINT HPDF_Font_GetCapHeight(HPDF_Font font)
Get the distance from the baseline and the mean line of uppercase letters in a font.
HPDF_STATUS HPDF_UseCNTFonts(HPDF_Doc pdf)
Enable traditional Chinese fonts. Application can use following traditional Chinese fonts after HPDF_...
HPDF_Box HPDF_Font_GetBBox(HPDF_Font font)
Get bounding box of the font.
const char * HPDF_LoadTTFontFromFile(HPDF_Doc pdf, const char *filename, HPDF_BOOL embedding)
Load TrueType font from external .ttf file and register it in the document object.
HPDF_Font HPDF_GetFont(HPDF_Doc pdf, const char *font_name, const char *encoding_name)
Get requested font object handle.
HPDF_STATUS HPDF_UseCNSFonts(HPDF_Doc pdf)
Enable simplified Chinese fonts. Application can use following simplified Chinese fonts after HPDF_Us...
HPDF_INT HPDF_Font_GetAscent(HPDF_Font font)
Get vertical ascent of the font.
const char * HPDF_LoadType1FontFromFile(HPDF_Doc pdf, const char *afm_filename, const char *data_filename)
Load Type1 font from external file and register it in the document object.
const char * HPDF_Font_GetFontName(HPDF_Font font)
Get name of the font.
HPDF_UINT HPDF_Font_GetXHeight(HPDF_Font font)
Get the distance from the baseline and the mean line of lowercase letters in a font.
HPDF_INT HPDF_Font_GetUnicodeWidth(HPDF_Font font, HPDF_UNICODE code)
Get width of a Unicode character in a specific font.
HPDF_INT HPDF_Font_GetDescent(HPDF_Font font)
Get vertical descent of the font.
const char * HPDF_LoadTTFontFromFile2(HPDF_Doc pdf, const char *filename, HPDF_UINT index, HPDF_BOOL embedding)
Load TrueType font from TrueType collection file *.ttc and register it in the document object.
HPDF_STATUS HPDF_UseJPFonts(HPDF_Doc pdf)
Enable Japanese fonts. Application can use following Japanese fonts after HPDF_UseJPFonts() call:
const char * HPDF_Font_GetEncodingName(HPDF_Font font)
Get encoding name of the font.
HPDF_STATUS HPDF_Page_EndPath(HPDF_Page page)
Finish path object without filling or painting.
HPDF_STATUS HPDF_Page_Ellipse(HPDF_Page page, HPDF_REAL x, HPDF_REAL y, HPDF_REAL x_radius, HPDF_REAL y_radius)
Append ellipse to current path.
HPDF_STATUS HPDF_Page_SetCharSpace(HPDF_Page page, HPDF_REAL value)
Set text character spacing.
HPDF_STATUS HPDF_Page_SetRGBStrokeHex(HPDF_Page page, HPDF_UINT8 r, HPDF_UINT8 g, HPDF_UINT8 b)
Set stroke color (RGB) using HPDF_UINT8 values.
HPDF_STATUS HPDF_Page_ClosePathFillStroke(HPDF_Page page)
Close current path, fill current path using the non-zero winding number rule, then paint path.
HPDF_STATUS HPDF_Page_SetLineWidth(HPDF_Page page, HPDF_REAL line_width)
Set width of the line used to stroke paths.
HPDF_STATUS HPDF_Page_Skew(HPDF_Page page, HPDF_REAL a, HPDF_REAL b)
Concatenate the page's transformation matrix with skew matrix.
HPDF_STATUS HPDF_Page_CurveTo2(HPDF_Page page, HPDF_REAL x2, HPDF_REAL y2, HPDF_REAL x3, HPDF_REAL y3)
Append Bézier curve to current path using current point and (x2, y2) and (x3, y3) as control points....
HPDF_STATUS HPDF_Page_Stroke(HPDF_Page page)
Paint current path.
HPDF_STATUS HPDF_Page_SetRGBStroke(HPDF_Page page, HPDF_REAL r, HPDF_REAL g, HPDF_REAL b)
Set stroke color (RGB).
HPDF_STATUS HPDF_Page_MoveTo(HPDF_Page page, HPDF_REAL x, HPDF_REAL y)
Start new subpath and move current point for drawing path.
HPDF_STATUS HPDF_Page_ShowTextNextLine(HPDF_Page page, const char *text)
Move current text position to the start of the next line, then put the text at the current text posit...
HPDF_STATUS HPDF_Page_Eoclip(HPDF_Page page)
Modifies the current clipping path by intersecting it with current path using the even-odd rule....
HPDF_STATUS HPDF_Page_SetRGBFill(HPDF_Page page, HPDF_REAL r, HPDF_REAL g, HPDF_REAL b)
Set filling color (RGB).
HPDF_STATUS HPDF_Page_CurveTo3(HPDF_Page page, HPDF_REAL x1, HPDF_REAL y1, HPDF_REAL x3, HPDF_REAL y3)
Append Bézier curve to the current path using two spesified points. The point (x1,...
HPDF_STATUS HPDF_Page_SetCMYKFill(HPDF_Page page, HPDF_REAL c, HPDF_REAL m, HPDF_REAL y, HPDF_REAL k)
Set filling color (CMYK).
HPDF_STATUS HPDF_Page_SetHorizontalScalling(HPDF_Page page, HPDF_REAL value)
Set text horizontal scaling.
HPDF_STATUS HPDF_Page_SetTextLeading(HPDF_Page page, HPDF_REAL value)
Set text leading (line spacing).
HPDF_STATUS HPDF_Page_SetTextRaise(HPDF_Page page, HPDF_REAL value)
Move text position in vertical direction by the amount of value.
HPDF_STATUS HPDF_Page_Arc(HPDF_Page page, HPDF_REAL x, HPDF_REAL y, HPDF_REAL radius, HPDF_REAL ang1, HPDF_REAL ang2)
Append circle arc to current path.
HPDF_STATUS HPDF_Page_DrawImage(HPDF_Page page, HPDF_Image image, HPDF_REAL x, HPDF_REAL y, HPDF_REAL width, HPDF_REAL height)
Show an image in one operation.
HPDF_STATUS HPDF_Page_RotateDeg(HPDF_Page page, HPDF_REAL degrees)
Concatenate the page's transformation matrix with rotate matrix.
HPDF_STATUS HPDF_Page_TextOut(HPDF_Page page, HPDF_REAL xpos, HPDF_REAL ypos, const char *text)
Put text to the specified position.
HPDF_STATUS HPDF_Page_ClosePathEofillStroke(HPDF_Page page)
Close current path, fill current path using the even-odd rule and then paint the path.
HPDF_STATUS HPDF_Page_SetCMYKStroke(HPDF_Page page, HPDF_REAL c, HPDF_REAL m, HPDF_REAL y, HPDF_REAL k)
Set stroke color (CMYK).
HPDF_STATUS HPDF_Page_Scale(HPDF_Page page, HPDF_REAL sx, HPDF_REAL sy)
Concatenate the page's transformation matrix with scale matrix.
HPDF_STATUS HPDF_Page_SetLineCap(HPDF_Page page, HPDF_LineCap line_cap)
Set lines endpoints shape style.
HPDF_STATUS HPDF_Page_SetWordSpace(HPDF_Page page, HPDF_REAL value)
Set text word spacing.
HPDF_STATUS HPDF_Page_GSave(HPDF_Page page)
Save the page's current graphics state to the stack.
HPDF_STATUS HPDF_Page_FillStroke(HPDF_Page page)
Fill current path using the even-odd rule.
HPDF_STATUS HPDF_Page_SetFontAndSize(HPDF_Page page, HPDF_Font font, HPDF_REAL size)
Set the type of font and size leading.
HPDF_STATUS HPDF_Page_Rectangle(HPDF_Page page, HPDF_REAL x, HPDF_REAL y, HPDF_REAL width, HPDF_REAL height)
Append rectangle to the current path.
HPDF_STATUS HPDF_Page_SetTextRise(HPDF_Page page, HPDF_REAL value)
Move text position in vertical direction by the amount of value.
HPDF_STATUS HPDF_Page_SetExtGState(HPDF_Page page, HPDF_ExtGState ext_gstate)
Apply graphics state to page.
HPDF_STATUS HPDF_Page_CurveTo(HPDF_Page page, HPDF_REAL x1, HPDF_REAL y1, HPDF_REAL x2, HPDF_REAL y2, HPDF_REAL x3, HPDF_REAL y3)
Append Bézier curve to current path using control points (x1, y1) and (x2, y2) and (x3,...
HPDF_STATUS HPDF_Page_Clip(HPDF_Page page)
Modify current clipping path by intersecting it with current path using the nonzero winding number ru...
HPDF_STATUS HPDF_Page_SetLineJoin(HPDF_Page page, HPDF_LineJoin line_join)
Set line join shape style.
HPDF_STATUS HPDF_Page_Fill(HPDF_Page page)
Fill current path using non-zero winding number rule.
HPDF_STATUS HPDF_Page_Concat(HPDF_Page page, HPDF_REAL a, HPDF_REAL b, HPDF_REAL c, HPDF_REAL d, HPDF_REAL x, HPDF_REAL y)
Concatenate the page's transformation matrix and specified matrix.
HPDF_STATUS HPDF_Page_MoveToNextLine(HPDF_Page page)
Move current position for text showing depending on current text showing point and text leading.
HPDF_STATUS HPDF_Page_ExecuteXObject(HPDF_Page page, HPDF_XObject obj)
Draw XObject using current graphics context.
HPDF_STATUS HPDF_Page_MoveTextPos2(HPDF_Page page, HPDF_REAL x, HPDF_REAL y)
Change current text position using the specified offset values.
HPDF_STATUS HPDF_Page_Translate(HPDF_Page page, HPDF_REAL dx, HPDF_REAL dy)
Concatenate the page's transformation matrix with translation matrix.
HPDF_STATUS HPDF_Page_Circle(HPDF_Page page, HPDF_REAL x, HPDF_REAL y, HPDF_REAL radius)
Append circle to current path.
HPDF_STATUS HPDF_Page_SetDash(HPDF_Page page, const HPDF_REAL *dash_pattern, HPDF_UINT num_elem, HPDF_REAL phase)
Set dash pattern for lines in the page.
HPDF_STATUS HPDF_Page_ClosePath(HPDF_Page page)
Append straight line from current point to the start point of subpath.
HPDF_STATUS HPDF_Page_SetGrayFill(HPDF_Page page, HPDF_REAL value)
Set the filling color (Gray).
HPDF_STATUS HPDF_Page_LineTo(HPDF_Page page, HPDF_REAL x, HPDF_REAL y)
Append path from current point to specified point.
HPDF_STATUS HPDF_Page_ShowText(HPDF_Page page, const char *text)
Put text at the current text position on the page.
HPDF_STATUS HPDF_Page_GRestore(HPDF_Page page)
Restore graphics state which is saved by HPDF_Page_GSave().
HPDF_STATUS HPDF_Page_SetMiterLimit(HPDF_Page page, HPDF_REAL miter_limit)
Set miter limit for line joins.
HPDF_STATUS HPDF_Page_EofillStroke(HPDF_Page page)
Fill current path using the even-odd rule and then paint the path.
HPDF_STATUS HPDF_Page_SetTextRenderingMode(HPDF_Page page, HPDF_TextRenderingMode mode)
Set text rendering mode.
HPDF_STATUS HPDF_Page_Rotate(HPDF_Page page, HPDF_REAL a)
Concatenate the page's transformation matrix with rotate matrix.
HPDF_STATUS HPDF_Page_SetGrayStroke(HPDF_Page page, HPDF_REAL value)
Set stroking color (Gray).
HPDF_STATUS HPDF_Page_BeginText(HPDF_Page page)
Begin text object and set text position to (0, 0).
HPDF_STATUS HPDF_Page_EndText(HPDF_Page page)
Finish text object.
HPDF_STATUS HPDF_Page_ShowTextNextLineEx(HPDF_Page page, HPDF_REAL word_space, HPDF_REAL char_space, const char *text)
Move current text position to the start of the next line, then set word spacing and character spacing...
HPDF_STATUS HPDF_Page_MoveTextPos(HPDF_Page page, HPDF_REAL x, HPDF_REAL y)
Change current text position using the specified offset values.
HPDF_STATUS HPDF_Page_Eofill(HPDF_Page page)
Fill current path using even-odd rule.
HPDF_STATUS HPDF_Page_TextRect(HPDF_Page page, HPDF_REAL left, HPDF_REAL top, HPDF_REAL right, HPDF_REAL bottom, const char *text, HPDF_TextAlignment align, HPDF_UINT *len)
Put text inside the specified region.
HPDF_STATUS HPDF_Page_ClosePathStroke(HPDF_Page page)
Close and paint current path.
HPDF_STATUS HPDF_Image_SetColorMask(HPDF_Image image, HPDF_UINT rmin, HPDF_UINT rmax, HPDF_UINT gmin, HPDF_UINT gmax, HPDF_UINT bmin, HPDF_UINT bmax)
Sets transparent color of the image by the RGB range values.
HPDF_STATUS HPDF_Image_GetSize2(HPDF_Image image, HPDF_Point *size)
Get size of the image of an image object to parameter.
HPDF_Image HPDF_LoadRawImageFromFile(HPDF_Doc pdf, const char *filename, HPDF_UINT width, HPDF_UINT height, HPDF_ColorSpace color_space)
Load raw format image.
HPDF_Image HPDF_LoadPngImageFromMem(HPDF_Doc pdf, const HPDF_BYTE *buf, HPDF_UINT size)
Load PNG image from buffer.
HPDF_STATUS HPDF_Image_SetMaskImage(HPDF_Image image, HPDF_Image mask_image)
Set image mask.
HPDF_UINT HPDF_Image_GetWidth(HPDF_Image image)
Get image width of an image object.
HPDF_Image HPDF_LoadJpegImageFromMem(HPDF_Doc pdf, const HPDF_BYTE *buf, HPDF_UINT size)
Load JPEG image from buffer.
const char * HPDF_Image_GetColorSpace(HPDF_Image image)
Get image color space name.
HPDF_Image HPDF_LoadJpegImageFromFile(HPDF_Doc pdf, const char *filename)
Load external JPEG image file.
HPDF_Image HPDF_LoadPngImageFromFile(HPDF_Doc pdf, const char *filename)
Load external PNG image file.
HPDF_Point HPDF_Image_GetSize(HPDF_Image image)
Get size of the image of an image object.
HPDF_UINT HPDF_Image_GetBitsPerComponent(HPDF_Image image)
Get bit count used to describe each color component.
HPDF_UINT HPDF_Image_GetHeight(HPDF_Image image)
Get image height of an image object.
HPDF_Image HPDF_LoadPngImageFromFile2(HPDF_Doc pdf, const char *filename)
Load external PNG image file.
HPDF_Image HPDF_LoadRawImageFromMem(HPDF_Doc pdf, const HPDF_BYTE *buf, HPDF_UINT width, HPDF_UINT height, HPDF_ColorSpace color_space, HPDF_UINT bits_per_component)
Load raw format image.
HPDF_Outline HPDF_CreateOutline(HPDF_Doc pdf, HPDF_Outline parent, const char *title, HPDF_Encoder encoder)
Create new outline object.
HPDF_STATUS HPDF_Outline_SetOpened(HPDF_Outline outline, HPDF_BOOL opened)
Set whether this outline node is opened when the outline is displayed for the first time.
HPDF_STATUS HPDF_Outline_SetDestination(HPDF_Outline outline, HPDF_Destination dst)
Set target destination object to jump to when outline object is clicked.
HPDF_Point HPDF_Page_GetCurrentTextPos(HPDF_Page page)
Get current position for text showing.
HPDF_REAL HPDF_Page_GetTextRise(HPDF_Page page)
Get page current text rise value.
HPDF_UINT HPDF_Page_MeasureText(HPDF_Page page, const char *text, HPDF_REAL width, HPDF_BOOL wordwrap, HPDF_REAL *real_width)
Calculate byte length which can be included within the specified width.
HPDF_REAL HPDF_Page_GetGrayStroke(HPDF_Page page)
Get page current stroke color value (Gray).
HPDF_Point HPDF_Page_GetCurrentPos(HPDF_Page page)
Get current position for path painting.
HPDF_REAL HPDF_Page_TextWidth(HPDF_Page page, const char *text)
Get text width in current font size, character spacing and word spacing.
HPDF_REAL HPDF_Page_GetHeight(HPDF_Page page)
Get page height.
HPDF_STATUS HPDF_SetOpenAction(HPDF_Doc pdf, HPDF_Destination open_action)
Set the first page to appear when a document is opened.
HPDF_STATUS HPDF_AddPageLabel(HPDF_Doc pdf, HPDF_UINT page_num, HPDF_PageNumStyle style, HPDF_UINT first_page, const char *prefix)
Add page labeling range for document.
HPDF_STATUS HPDF_Page_RawWrite(HPDF_Page page, char *data)
Write raw commands to page stream This command allow user to write some data to page stream unconditi...
HPDF_STATUS HPDF_Page_New_Content_Stream(HPDF_Page page, HPDF_Dict *new_stream)
Create new content stream on the page.
HPDF_Page HPDF_AddPage(HPDF_Doc pdf)
Create new page and add it after the last page of document.
HPDF_ColorSpace HPDF_Page_GetFillingColorSpace(HPDF_Page page)
Get page current filling color space.
HPDF_STATUS HPDF_Page_SetRotate(HPDF_Page page, HPDF_UINT16 angle)
Set rotation angle of the page.
HPDF_STATUS HPDF_Page_SetSize(HPDF_Page page, HPDF_PageSizes size, HPDF_PageDirection direction)
Change page size and direction to a predefined ones.
HPDF_PageMode HPDF_GetPageMode(HPDF_Doc pdf)
Return page display mode.
HPDF_LineCap HPDF_Page_GetLineCap(HPDF_Page page)
Get page current line cap.
HPDF_STATUS HPDF_SetPageMode(HPDF_Doc pdf, HPDF_PageMode mode)
Set document display mode.
HPDF_REAL HPDF_Page_GetWidth(HPDF_Page page)
Get page width.
HPDF_REAL HPDF_Page_GetWordSpace(HPDF_Page page)
Get page current word spacing value.
HPDF_UINT16 HPDF_Page_GetGMode(HPDF_Page page)
Get current graphics mode.
HPDF_REAL HPDF_Page_GetMiterLimit(HPDF_Page page)
Get page current miter limit.
HPDF_CMYKColor HPDF_Page_GetCMYKStroke(HPDF_Page page)
Get page current stroke color value (CMYK).
HPDF_STATUS HPDF_Page_Insert_Shared_Content_Stream(HPDF_Page page, HPDF_Dict shared_stream)
Insert content stream to the page.
HPDF_Font HPDF_Page_GetCurrentFont(HPDF_Page page)
Get page current font handle.
HPDF_RGBColor HPDF_Page_GetRGBStroke(HPDF_Page page)
Get page current stroke color value (RGB).
HPDF_DashMode HPDF_Page_GetDash(HPDF_Page page)
Get page current line dash pattern.
HPDF_TransMatrix HPDF_Page_GetTextMatrix(HPDF_Page page)
Get page current text transformation matrix.
HPDF_REAL HPDF_Page_GetFlat(HPDF_Page page)
Get page current flatness value.
HPDF_REAL HPDF_Page_GetGrayFill(HPDF_Page page)
Get page current filling color value (Gray).
HPDF_PageLayout HPDF_GetPageLayout(HPDF_Doc pdf)
Return page display layout.
HPDF_STATUS HPDF_Page_SetSlideShow(HPDF_Page page, HPDF_TransitionStyle type, HPDF_REAL disp_time, HPDF_REAL trans_time)
Configure slide transition of the page.
HPDF_STATUS HPDF_Page_SetWidth(HPDF_Page page, HPDF_REAL value)
Change page width.
HPDF_STATUS HPDF_SetPageLayout(HPDF_Doc pdf, HPDF_PageLayout layout)
Set page display layout. If attribute is not set, the setting of the viewer application is used.
HPDF_TextRenderingMode HPDF_Page_GetTextRenderingMode(HPDF_Page page)
Get page current text rendering mode.
HPDF_REAL HPDF_Page_GetCurrentFontSize(HPDF_Page page)
Get page current font size.
HPDF_Page HPDF_GetCurrentPage(HPDF_Doc pdf)
Get handle of current page object.
HPDF_UINT HPDF_Page_GetGStateDepth(HPDF_Page page)
Get page current graphics state stack depth.
HPDF_Page HPDF_InsertPage(HPDF_Doc pdf, HPDF_Page page)
Create new page and insert it just before specified page.
HPDF_ColorSpace HPDF_Page_GetStrokingColorSpace(HPDF_Page page)
Get page current stroke color space.
HPDF_REAL HPDF_Page_GetHorizontalScalling(HPDF_Page page)
Get page current horizontal scaling value for text showing.
HPDF_STATUS HPDF_Page_SetHeight(HPDF_Page page, HPDF_REAL value)
Change page height.
HPDF_CMYKColor HPDF_Page_GetCMYKFill(HPDF_Page page)
Get page current filling color value (CMYK).
HPDF_TransMatrix HPDF_Page_GetTransMatrix(HPDF_Page page)
Get page current transformation matrix.
HPDF_LineJoin HPDF_Page_GetLineJoin(HPDF_Page page)
Get page current line join.
HPDF_REAL HPDF_Page_GetCharSpace(HPDF_Page page)
Get page current character spacing value.
HPDF_REAL HPDF_Page_GetLineWidth(HPDF_Page page)
Get page current line width.
HPDF_REAL HPDF_Page_GetTextLeading(HPDF_Page page)
Get page current text leading value.
HPDF_RGBColor HPDF_Page_GetRGBFill(HPDF_Page page)
Get page current filling color value (RGB).
HPDF_STATUS HPDF_SetInfoDateAttr(HPDF_Doc pdf, HPDF_InfoType type, HPDF_Date value)
Set datetime attribute at info dictionary.
HPDF_STATUS HPDF_SetInfoAttr(HPDF_Doc pdf, HPDF_InfoType type, const char *value)
Set the text of info dictionary attribute using current encoding of the document. If encoding is not ...
const char * HPDF_GetInfoAttr(HPDF_Doc pdf, HPDF_InfoType type)
Get attribute value from info dictionary.
HPDF_STATUS HPDF_SetEncryptionMode(HPDF_Doc pdf, HPDF_EncryptMode mode, HPDF_UINT key_len)
Set the encryption mode. As the side effect, ups the version of PDF to 1.4 when the mode is set to HP...
HPDF_STATUS HPDF_SetPermission(HPDF_Doc pdf, HPDF_UINT permission)
Set the permission flags for the document.
HPDF_STATUS HPDF_SetPassword(HPDF_Doc pdf, const char *owner_password, const char *user_password)
Sets a password for the document. If the password is set, document contents is encrypted.
HPDF_STATUS HPDF_SetCompressionMode(HPDF_Doc pdf, HPDF_UINT mode)
Set compression mode.
HPDF_STATUS HPDF_MarkupAnnot_SetTitle(HPDF_Annotation annot, const char *name)
HPDF_STATUS HPDF_MarkupAnnot_SetPopup(HPDF_Annotation annot, HPDF_Annotation popup)
HPDF_OutputIntent HPDF_ICC_LoadIccFromMem(HPDF_Doc pdf, HPDF_MMgr mmgr, HPDF_Stream iccdata, HPDF_Xref xref, int numcomponent)
HPDF_ExtGState HPDF_CreateExtGState(HPDF_Doc pdf)
HPDF_STATUS HPDF_Annot_SetNoColor(HPDF_Annotation annot)
HPDF_Annotation HPDF_Page_CreateLineAnnot(HPDF_Page page, const char *text, HPDF_Encoder encoder)
HPDF_Annotation HPDF_Page_CreateFreeTextAnnot(HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder)
HPDF_Image HPDF_LoadU3DFromFile(HPDF_Doc pdf, const char *filename)
HPDF_Annotation HPDF_Page_CreateStampAnnot(HPDF_Page page, HPDF_Rect rect, HPDF_StampAnnotName name, const char *text, HPDF_Encoder encoder)
HPDF_FontDef HPDF_GetTTFontDefFromFile(HPDF_Doc pdf, const char *filename, HPDF_BOOL embedding)
HPDF_STATUS HPDF_Annot_SetCMYKColor(HPDF_Annotation annot, HPDF_CMYKColor color)
HPDF_EmbeddedFile HPDF_AttachFile(HPDF_Doc pdf, const char *file)
HPDF_Page HPDF_GetPageByIndex(HPDF_Doc pdf, HPDF_UINT index)
HPDF_XObject HPDF_Page_CreateXObjectAsWhiteRect(HPDF_Doc pdf, HPDF_Page page, HPDF_Rect rect)
HPDF_STATUS HPDF_MarkupAnnot_SetTransparency(HPDF_Annotation annot, HPDF_REAL value)
HPDF_STATUS HPDF_MarkupAnnot_SetRectDiff(HPDF_Annotation annot, HPDF_Rect rect)
HPDF_STATUS HPDF_Annot_Set3DView(HPDF_MMgr mmgr, HPDF_Annotation annot, HPDF_Annotation annot3d, HPDF_Dict view)
HPDF_STATUS HPDF_MarkupAnnot_SetSubject(HPDF_Annotation annot, const char *name)
HPDF_ExData HPDF_Page_Create3DAnnotExData(HPDF_Page page)
HPDF_STATUS HPDF_Page_SetFlat(HPDF_Page page, HPDF_REAL flatness)
HPDF_STATUS HPDF_Page_SetBoundary(HPDF_Page page, HPDF_PageBoundary boundary, HPDF_REAL left, HPDF_REAL bottom, HPDF_REAL right, HPDF_REAL top)
HPDF_3DMeasure HPDF_Page_Create3DC3DMeasure(HPDF_Page page, HPDF_Point3D firstanchorpoint, HPDF_Point3D textanchorpoint)
HPDF_STATUS HPDF_3DC3DMeasure_SetText(HPDF_3DMeasure measure, const char *text, HPDF_Encoder encoder)
HPDF_REAL HPDF_Page_GetTextRaise(HPDF_Page page)
HPDF_STATUS HPDF_MarkupAnnot_SetInteriorTransparent(HPDF_Annotation annot)
HPDF_MMgr HPDF_GetPageMMgr(HPDF_Page page)
HPDF_STATUS HPDF_3DMeasure_SetTextSize(HPDF_3DMeasure measure, HPDF_REAL textsize)
HPDF_STATUS HPDF_FreeTextAnnot_SetDefaultStyle(HPDF_Annotation annot, const char *style)
HPDF_STATUS HPDF_FreeTextAnnot_Set2PointCalloutLine(HPDF_Annotation annot, HPDF_Point startPoint, HPDF_Point endPoint)
HPDF_STATUS HPDF_3DMeasure_SetName(HPDF_3DMeasure measure, const char *name)
HPDF_STATUS HPDF_PopupAnnot_SetOpened(HPDF_Annotation annot, HPDF_BOOL opened)
HPDF_Shading HPDF_Shading_New(HPDF_Doc pdf, HPDF_ShadingType type, HPDF_ColorSpace colorSpace, HPDF_REAL xMin, HPDF_REAL xMax, HPDF_REAL yMin, HPDF_REAL yMax)
HPDF_STATUS HPDF_Annot_SetGrayColor(HPDF_Annotation annot, HPDF_REAL color)
HPDF_OutputIntent HPDF_LoadIccProfileFromFile(HPDF_Doc pdf, const char *icc_file_name, int numcomponent)
HPDF_Annotation HPDF_Page_CreateWidgetAnnot_WhiteOnlyWhilePrint(HPDF_Doc pdf, HPDF_Page page, HPDF_Rect rect)
HPDF_STATUS HPDF_Page_SetShading(HPDF_Page page, HPDF_Shading shading)
HPDF_STATUS HPDF_SetViewerPreference(HPDF_Doc pdf, HPDF_UINT value)
HPDF_STATUS HPDF_3DC3DMeasure_SetTextBoxSize(HPDF_3DMeasure measure, HPDF_INT32 x, HPDF_INT32 y)
HPDF_STATUS HPDF_ProjectionAnnot_SetExData(HPDF_Annotation annot, HPDF_ExData exdata)
HPDF_Annotation HPDF_Page_CreateWidgetAnnot(HPDF_Page page, HPDF_Rect rect)
HPDF_Image HPDF_LoadU3DFromMem(HPDF_Doc pdf, const HPDF_BYTE *buffer, HPDF_UINT size)
HPDF_STATUS HPDF_Annot_SetRGBColor(HPDF_Annotation annot, HPDF_RGBColor color)
HPDF_STATUS HPDF_LineAnnot_SetLeader(HPDF_Annotation annot, HPDF_INT leaderLen, HPDF_INT leaderExtLen, HPDF_INT leaderOffsetLen)
HPDF_STATUS HPDF_Page_SetTextMatrix(HPDF_Page page, HPDF_REAL a, HPDF_REAL b, HPDF_REAL c, HPDF_REAL d, HPDF_REAL x, HPDF_REAL y)
HPDF_STATUS HPDF_MarkupAnnot_SetCloudEffect(HPDF_Annotation annot, HPDF_INT cloudIntensity)
HPDF_STATUS HPDF_ExtGState_SetAlphaStroke(HPDF_ExtGState ext_gstate, HPDF_REAL value)
HPDF_UINT HPDF_GetViewerPreference(HPDF_Doc pdf)
HPDF_STATUS HPDF_GetContents(HPDF_Doc pdf, HPDF_BYTE *buf, HPDF_UINT32 *size)
HPDF_STATUS HPDF_ExtGState_SetAlphaFill(HPDF_ExtGState ext_gstate, HPDF_REAL value)
HPDF_STATUS HPDF_TextMarkupAnnot_SetQuadPoints(HPDF_Annotation annot, HPDF_Point lb, HPDF_Point rb, HPDF_Point rt, HPDF_Point lt)
HPDF_Annotation HPDF_Page_CreateStrikeOutAnnot(HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder)
HPDF_Annotation HPDF_Page_CreateProjectionAnnot(HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder)
HPDF_STATUS HPDF_3DC3DMeasure_SetProjectionAnotation(HPDF_3DMeasure measure, HPDF_Annotation projectionanotation)
HPDF_STATUS HPDF_3DMeasure_SetColor(HPDF_3DMeasure measure, HPDF_RGBColor color)
HPDF_STATUS HPDF_3DAnnotExData_Set3DMeasurement(HPDF_ExData exdata, HPDF_3DMeasure measure)
HPDF_STATUS HPDF_LineAnnot_SetPosition(HPDF_Annotation annot, HPDF_Point startPoint, HPDF_LineAnnotEndingStyle startStyle, HPDF_Point endPoint, HPDF_LineAnnotEndingStyle endStyle)
HPDF_Annotation HPDF_Page_CreateSquigglyAnnot(HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder)
HPDF_STATUS HPDF_FreeTextAnnot_SetLineEndingStyle(HPDF_Annotation annot, HPDF_LineAnnotEndingStyle startStyle, HPDF_LineAnnotEndingStyle endStyle)
const char * HPDF_GetVersion(void)
HPDF_MMgr HPDF_GetDocMMgr(HPDF_Doc doc)
HPDF_Annotation HPDF_Page_CreateTextMarkupAnnot(HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder, HPDF_AnnotType subType)
HPDF_STATUS HPDF_MarkupAnnot_SetIntent(HPDF_Annotation annot, HPDF_AnnotIntent intent)
HPDF_XObject HPDF_Page_CreateXObjectFromImage(HPDF_Doc pdf, HPDF_Page page, HPDF_Rect rect, HPDF_Image image, HPDF_BOOL zoom)
HPDF_STATUS HPDF_MarkupAnnot_SetInteriorRGBColor(HPDF_Annotation annot, HPDF_RGBColor color)
HPDF_Dict HPDF_Page_Create3DView(HPDF_Page page, HPDF_U3D u3d, HPDF_Annotation annot3d, const char *name)
HPDF_STATUS HPDF_LinkAnnot_SetJavaScript(HPDF_Annotation annot, HPDF_JavaScript javascript)
HPDF_Annotation HPDF_Page_Create3DAnnot(HPDF_Page page, HPDF_Rect rect, HPDF_BOOL tb, HPDF_BOOL np, HPDF_U3D u3d, HPDF_Image ap)
HPDF_Annotation HPDF_Page_CreateUnderlineAnnot(HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder)
HPDF_STATUS HPDF_Page_GetCurrentTextPos2(HPDF_Page page, HPDF_Point *pos)
HPDF_Annotation HPDF_Page_CreateCircleAnnot(HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder)
HPDF_STATUS HPDF_GetErrorDetail(HPDF_Doc pdf)
HPDF_3DMeasure HPDF_Page_CreatePD33DMeasure(HPDF_Page page, HPDF_Point3D annotationPlaneNormal, HPDF_Point3D firstAnchorPoint, HPDF_Point3D secondAnchorPoint, HPDF_Point3D leaderLinesDirection, HPDF_Point3D measurementValuePoint, HPDF_Point3D textYDirection, HPDF_REAL value, const char *unitsString)
HPDF_Annotation HPDF_Page_CreateSquareAnnot(HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder)
HPDF_STATUS HPDF_MarkupAnnot_SetCreationDate(HPDF_Annotation annot, HPDF_Date value)
HPDF_STATUS HPDF_3DView_Add3DC3DMeasure(HPDF_Dict view, HPDF_3DMeasure measure)
HPDF_Annotation HPDF_Page_CreateHighlightAnnot(HPDF_Page page, HPDF_Rect rect, const char *text, HPDF_Encoder encoder)
HPDF_Annotation HPDF_Page_CreatePopupAnnot(HPDF_Page page, HPDF_Rect rect, HPDF_Annotation parent)
HPDF_STATUS HPDF_LineAnnot_SetCaption(HPDF_Annotation annot, HPDF_BOOL showCaption, HPDF_LineAnnotCapPosition position, HPDF_INT horzOffset, HPDF_INT vertOffset)
HPDF_STATUS HPDF_Image_AddSMask(HPDF_Image image, HPDF_Image smask)
HPDF_STATUS HPDF_Page_SetZoom(HPDF_Page page, HPDF_REAL zoom)
HPDF_STATUS HPDF_FreeTextAnnot_Set3PointCalloutLine(HPDF_Annotation annot, HPDF_Point startPoint, HPDF_Point kneePoint, HPDF_Point endPoint)
HPDF_Image HPDF_Image_LoadRaw1BitImageFromMem(HPDF_Doc pdf, const HPDF_BYTE *buf, HPDF_UINT width, HPDF_UINT height, HPDF_UINT line_width, HPDF_BOOL black_is1, HPDF_BOOL top_is_first)
HPDF_STATUS HPDF_ExtGState_SetBlendMode(HPDF_ExtGState ext_gstate, HPDF_BlendMode mode)
HPDF_STATUS HPDF_MarkupAnnot_SetInteriorGrayColor(HPDF_Annotation annot, HPDF_REAL color)
HPDF_STATUS HPDF_Shading_AddVertexRGB(HPDF_Shading shading, HPDF_Shading_FreeFormTriangleMeshEdgeFlag edgeFlag, HPDF_REAL x, HPDF_REAL y, HPDF_UINT8 r, HPDF_UINT8 g, HPDF_UINT8 b)
HPDF_STATUS HPDF_MarkupAnnot_SetInteriorCMYKColor(HPDF_Annotation annot, HPDF_CMYKColor color)
HPDF_STATUS HPDF_Page_GetCurrentPos2(HPDF_Page page, HPDF_Point *pos)
struct _HPDF_Doc_Rec * HPDF_Doc
Definition: hpdf_doc.h:78
struct _HPDF_Encoder_Rec * HPDF_Encoder
Definition: hpdf_encoder.h:86
struct _HPDF_Error_Rec * HPDF_Error
Definition: hpdf_error.h:178
HPDF_Dict HPDF_Font
Definition: hpdf_font.h:43
struct _HPDF_FontDef_Rec * HPDF_FontDef
Definition: hpdf_fontdef.h:79
struct _HPDF_MMgr_Rec * HPDF_MMgr
Definition: hpdf_mmgr.h:38
HPDF_Dict HPDF_Shading
Definition: hpdf_objects.h:602
HPDF_Dict HPDF_Annotation
Definition: hpdf_objects.h:589
struct _HPDF_Xref_Rec * HPDF_Xref
Definition: hpdf_objects.h:404
HPDF_Dict HPDF_XObject
Definition: hpdf_objects.h:592
HPDF_Dict HPDF_3DMeasure
Definition: hpdf_objects.h:590
HPDF_Dict HPDF_Pages
Definition: hpdf_objects.h:587
HPDF_Dict HPDF_JavaScript
Definition: hpdf_objects.h:601
HPDF_Dict HPDF_ExData
Definition: hpdf_objects.h:591
HPDF_Dict HPDF_Image
Definition: hpdf_objects.h:593
HPDF_Array HPDF_Destination
Definition: hpdf_objects.h:598
HPDF_Dict HPDF_EmbeddedFile
Definition: hpdf_objects.h:584
HPDF_Dict HPDF_Page
Definition: hpdf_objects.h:588
struct _HPDF_Boolean_Rec * HPDF_Boolean
Definition: hpdf_objects.h:137
HPDF_Dict HPDF_Outline
Definition: hpdf_objects.h:594
HPDF_Dict HPDF_OutputIntent
Definition: hpdf_objects.h:600
HPDF_Dict HPDF_ExtGState
Definition: hpdf_objects.h:597
struct _HPDF_Dict_Rec * HPDF_Dict
Definition: hpdf_objects.h:406
HPDF_Dict HPDF_U3D
Definition: hpdf_objects.h:599
enum _HPDF_PageSizes HPDF_PageSizes
struct _HPDF_Stream_Rec * HPDF_Stream
Definition: hpdf_streams.h:53
enum _HPDF_PageMode HPDF_PageMode
enum _HPDF_LineCap HPDF_LineCap
signed int HPDF_INT
Definition: hpdf_types.h:44
enum _HPDF_LineJoin HPDF_LineJoin
void(HPDF_STDCALL * HPDF_Free_Func)(void *aptr)
Definition: hpdf_types.h:209
enum _HPDF_InfoType HPDF_InfoType
unsigned short HPDF_UINT16
Definition: hpdf_types.h:63
enum _HPDF_AnnotType HPDF_AnnotType
enum _HPDF_PageNumStyle HPDF_PageNumStyle
void(HPDF_STDCALL * HPDF_Error_Handler)(HPDF_STATUS error_no, HPDF_STATUS detail_no, void *user_data)
Definition: hpdf_types.h:200
signed int HPDF_BOOL
Definition: hpdf_types.h:89
enum _HPDF_PageBoundary HPDF_PageBoundary
unsigned int HPDF_UINT
Definition: hpdf_types.h:45
enum _HPDF_TextRenderingMode HPDF_TextRenderingMode
unsigned int HPDF_UINT32
Definition: hpdf_types.h:57
enum _HPDF_BSSubtype HPDF_BSSubtype
enum _HPDF_ByteType HPDF_ByteType
enum _HPDF_EncryptMode HPDF_EncryptMode
void *(HPDF_STDCALL * HPDF_Alloc_Func)(HPDF_UINT size)
Definition: hpdf_types.h:205
float HPDF_REAL
Definition: hpdf_types.h:79
HPDF_UINT16 HPDF_UNICODE
Definition: hpdf_types.h:100
enum _HPDF_TransitionStyle HPDF_TransitionStyle
enum _HPDF_LineAnnotEndingStyle HPDF_LineAnnotEndingStyle
enum _HPDF_ColorSpace HPDF_ColorSpace
enum _HPDF_AnnotHighlightMode HPDF_AnnotHighlightMode
signed int HPDF_INT32
Definition: hpdf_types.h:56
unsigned char HPDF_UINT8
Definition: hpdf_types.h:69
enum _HPDF_StampAnnotName HPDF_StampAnnotName
unsigned char HPDF_BYTE
Definition: hpdf_types.h:74
enum _HPDF_PageDirection HPDF_PageDirection
Page orientation.
enum _HPDF_ShadingType HPDF_ShadingType
enum _HPDF_EncoderType HPDF_EncoderType
unsigned long HPDF_STATUS
Definition: hpdf_types.h:94
enum _HPDF_Shading_FreeFormTriangleMeshEdgeFlag HPDF_Shading_FreeFormTriangleMeshEdgeFlag
enum _HPDF_AnnotIcon HPDF_AnnotIcon
enum _HPDF_AnnotIntent HPDF_AnnotIntent
enum _HPDF_LineAnnotCapPosition HPDF_LineAnnotCapPosition
enum _HPDF_TextAlignment HPDF_TextAlignment
enum _HPDF_BlendMode HPDF_BlendMode
enum _HPDF_PageLayout HPDF_PageLayout
enum _HPDF_WritingMode HPDF_WritingMode
Definition: hpdf_objects.h:333
Definition: hpdf_types.h:296
Definition: hpdf_types.h:230
Date structure.
Definition: hpdf_types.h:135
Definition: hpdf_objects.h:421
Definition: hpdf_doc.h:36
Definition: hpdf_encoder.h:115
Definition: hpdf_error.h:180
Definition: hpdf_fontdef.h:87
Definition: hpdf_mmgr.h:40
Definition: hpdf_types.h:119
Definition: hpdf_types.h:105
Definition: hpdf_types.h:287
Definition: hpdf_types.h:110
Definition: hpdf_streams.h:99
Definition: hpdf_types.h:215
Definition: hpdf_types.h:240
Definition: hpdf_objects.h:542