hpdf 2.0.8-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/History +57 -0
- data/License +25 -0
- data/README +136 -0
- data/docs/annotation_handling.html +503 -0
- data/docs/api.css +115 -0
- data/docs/api_reference.html +112 -0
- data/docs/bindings.html +242 -0
- data/docs/compile_your_program.html +365 -0
- data/docs/default.css +115 -0
- data/docs/destination_handling.html +620 -0
- data/docs/document_handling.html +4751 -0
- data/docs/documentation.html +110 -0
- data/docs/encoder_handling.html +428 -0
- data/docs/error_handling.html +1609 -0
- data/docs/examples.html +702 -0
- data/docs/ext_gstate.html +407 -0
- data/docs/font_handling.html +669 -0
- data/docs/fonts.html +978 -0
- data/docs/graphics.html +1210 -0
- data/docs/handles.html +204 -0
- data/docs/how_to_use.html +371 -0
- data/docs/image/Thumbs.db +0 -0
- data/docs/image/character_map.png +0 -0
- data/docs/image/encoding_list.png +0 -0
- data/docs/image/extgtate.png +0 -0
- data/docs/image/figure1.png +0 -0
- data/docs/image/figure10.png +0 -0
- data/docs/image/figure11.png +0 -0
- data/docs/image/figure12.png +0 -0
- data/docs/image/figure13.png +0 -0
- data/docs/image/figure14.png +0 -0
- data/docs/image/figure15.png +0 -0
- data/docs/image/figure16.png +0 -0
- data/docs/image/figure17.png +0 -0
- data/docs/image/figure18.png +0 -0
- data/docs/image/figure19.png +0 -0
- data/docs/image/figure2.png +0 -0
- data/docs/image/figure20.png +0 -0
- data/docs/image/figure21.png +0 -0
- data/docs/image/figure22.png +0 -0
- data/docs/image/figure23.png +0 -0
- data/docs/image/figure24.png +0 -0
- data/docs/image/figure25.png +0 -0
- data/docs/image/figure26.png +0 -0
- data/docs/image/figure27.png +0 -0
- data/docs/image/figure28.png +0 -0
- data/docs/image/figure3.png +0 -0
- data/docs/image/figure4.png +0 -0
- data/docs/image/figure5.png +0 -0
- data/docs/image/figure6.png +0 -0
- data/docs/image/figure7.png +0 -0
- data/docs/image/figure8.png +0 -0
- data/docs/image/figure9.png +0 -0
- data/docs/image/font_demo.png +0 -0
- data/docs/image/harulogo.png +0 -0
- data/docs/image/image_demo.png +0 -0
- data/docs/image/jpfont_demo.png +0 -0
- data/docs/image/line_demo.png +0 -0
- data/docs/image/png_demo.png +0 -0
- data/docs/image/text_annot.png +0 -0
- data/docs/image/text_demo.png +0 -0
- data/docs/image/text_demo2.png +0 -0
- data/docs/image/tt_font.png +0 -0
- data/docs/image_handling.html +505 -0
- data/docs/index.html +305 -0
- data/docs/install.html +243 -0
- data/docs/outline_handling.html +229 -0
- data/docs/page_handling.html +2647 -0
- data/docs/page_operator.html +2640 -0
- data/docs/useful_links.html +203 -0
- data/examples/arc_demo.rb +82 -0
- data/examples/demo.rb +91 -0
- data/examples/encryption.rb +41 -0
- data/examples/ext_gstater_demo.rb +171 -0
- data/examples/font_demo.rb +67 -0
- data/examples/jpfont_demo.rb +122 -0
- data/examples/line_demo.rb +301 -0
- data/examples/slide_show_demo.rb +139 -0
- data/examples/text_demo2.rb +189 -0
- data/examples/ttfont_demo.rb +106 -0
- data/lib/hpdf.so +0 -0
- data/tests/arc_demo.rb +82 -0
- data/tests/demo.rb +91 -0
- data/tests/encryption.rb +41 -0
- data/tests/ext_gstater_demo.rb +171 -0
- data/tests/font_demo.rb +67 -0
- data/tests/line_demo.rb +301 -0
- data/tests/slide_show_demo.rb +139 -0
- data/tests/test_all_examples.rb +31 -0
- data/tests/text_demo2.rb +189 -0
- metadata +137 -0
@@ -0,0 +1,2640 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<title>Haru Free PDF Library</title>
|
5
|
+
<meta http-equiv="Content-Type"
|
6
|
+
content="text/html; charset=iso-8859-1">
|
7
|
+
<link href="api.css" type="text/css" rel="stylesheet">
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<div id="headcontainer">
|
11
|
+
<div class="head"><img alt="Haru Free PDF Library"
|
12
|
+
src="image/harulogo.png" style="width: 413px; height: 40px;"></div>
|
13
|
+
</div>
|
14
|
+
<div id="barcontainer">
|
15
|
+
<div class="buildbar"><a href="index.html">home</a> | <a
|
16
|
+
href="http://sourceforge.net/project/showfiles.php?group_id=83044">download</a>
|
17
|
+
|
|
18
|
+
<a href="documentation.html">documentation</a> | <a
|
19
|
+
href="examples.html">examples </a>| <a
|
20
|
+
href="http://sourceforge.net/projects/libharu/">sourceforge</a> |
|
21
|
+
<a href="http://sourceforge.net/forum/?group_id=83044">forums</a><br>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
<div id="container">
|
25
|
+
<div id="mainpage">
|
26
|
+
<div id="ccol">
|
27
|
+
<h2>Graphics <br>
|
28
|
+
</h2>
|
29
|
+
<h3><a name="HPDF_Page_SetLineWidth_"></a>HPDF_Page_SetLineWidth<br>
|
30
|
+
</h3>
|
31
|
+
<div class="bodytext1">
|
32
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
33
|
+
"apdf.h"<br>
|
34
|
+
<br>
|
35
|
+
HPDF_STATUS<br>
|
36
|
+
HPDF_Page_SetLineWidth (HPDF_Page page,<br>
|
37
|
+
|
38
|
+
HPDF_REAL line_width);<br>
|
39
|
+
<br>
|
40
|
+
</div>
|
41
|
+
<h4>Description<br>
|
42
|
+
</h4>
|
43
|
+
HPDF_Page_SetLineWidth() sets the width of the line used to stroke a
|
44
|
+
path.<br>
|
45
|
+
An application can invoke HPDF_Page_SetLineWidth() when the graphics
|
46
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
47
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
48
|
+
<br>
|
49
|
+
<h4>Parameter</h4>
|
50
|
+
<span style="font-weight: bold;">page</span>
|
51
|
+
<div class="bodytext5">The handle of a page object.<br>
|
52
|
+
<br>
|
53
|
+
</div>
|
54
|
+
<span style="font-weight: bold;">line_width</span><br>
|
55
|
+
<div class="bodytext5">The width of line.<br>
|
56
|
+
</div>
|
57
|
+
<br>
|
58
|
+
<h4>Returns</h4>
|
59
|
+
When HPDF_Page_SetLineWidth() succeed, it returns HPDF_OK, Otherwise it
|
60
|
+
returns error code and error-handler is invoked.<br>
|
61
|
+
</div>
|
62
|
+
<br>
|
63
|
+
<br>
|
64
|
+
<h3><a name="HPDF_Page_SetLineCap_"></a>HPDF_Page_SetLineCap<br>
|
65
|
+
</h3>
|
66
|
+
<div class="bodytext1">
|
67
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
68
|
+
"apdf.h"<br>
|
69
|
+
<br>
|
70
|
+
HPDF_Page_SetLineCap (HPDF_Page page,<br>
|
71
|
+
|
72
|
+
HPDF_LineCap line_cap);<br>
|
73
|
+
<br>
|
74
|
+
</div>
|
75
|
+
<h4>Description<br>
|
76
|
+
</h4>
|
77
|
+
HPDF_Page_SetLineCap() sets the shape to be used at the ends of line.<br>
|
78
|
+
An application can invoke HPDF_Page_SetLineCap() when the graphics
|
79
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
80
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
81
|
+
<br>
|
82
|
+
<h4>Parameter</h4>
|
83
|
+
<span style="font-weight: bold;">page</span>
|
84
|
+
<div class="bodytext5">The handle of a page object.<br>
|
85
|
+
<br>
|
86
|
+
</div>
|
87
|
+
<span style="font-weight: bold;">line_cap</span><br>
|
88
|
+
<div class="bodytext5">The style of line-cap.<br>
|
89
|
+
<table style="width: 100%; text-align: left;" border="1" cellpadding="2"
|
90
|
+
cellspacing="2">
|
91
|
+
<tbody>
|
92
|
+
<tr>
|
93
|
+
<td
|
94
|
+
style="vertical-align: top; background-color: rgb(204, 204, 204);">value<br>
|
95
|
+
</td>
|
96
|
+
<td
|
97
|
+
style="vertical-align: top; background-color: rgb(204, 204, 204); width: 140px;"><br>
|
98
|
+
</td>
|
99
|
+
<td
|
100
|
+
style="vertical-align: top; background-color: rgb(204, 204, 204);">description<br>
|
101
|
+
</td>
|
102
|
+
</tr>
|
103
|
+
<tr>
|
104
|
+
<td style="vertical-align: top; width: 200px;">HPDF_BUTT_END</td>
|
105
|
+
<td style="vertical-align: top; width: 140px; text-align: center;"><img
|
106
|
+
alt="HPDF_BUTT_END" src="image/figure10.png"
|
107
|
+
style="width: 120px; height: 42px;"><br>
|
108
|
+
</td>
|
109
|
+
<td style="vertical-align: top;">The line is squared off at the
|
110
|
+
endpoint of the path.<br>
|
111
|
+
</td>
|
112
|
+
</tr>
|
113
|
+
<tr>
|
114
|
+
<td style="vertical-align: top; width: 200px;">HPDF_ROUND_END</td>
|
115
|
+
<td style="vertical-align: top; width: 140px; text-align: center;"><img
|
116
|
+
alt="HPDF_ROUND_END" src="image/figure11.png"
|
117
|
+
style="width: 120px; height: 42px;"><br>
|
118
|
+
</td>
|
119
|
+
<td style="vertical-align: top;">The end of a line becomes a
|
120
|
+
semicircle whose center is the end point of the path.<br>
|
121
|
+
</td>
|
122
|
+
</tr>
|
123
|
+
<tr>
|
124
|
+
<td style="vertical-align: top; width: 200px;">HPDF_PROJECTING_SCUARE_END</td>
|
125
|
+
<td style="vertical-align: top; width: 140px; text-align: center;"><img
|
126
|
+
alt="HPDF_PROJECTING_SCUARE_END" src="image/figure12.png"
|
127
|
+
style="width: 120px; height: 42px;"><br>
|
128
|
+
</td>
|
129
|
+
<td style="vertical-align: top;">The line continues to the point
|
130
|
+
that exceeds half of the stroke width the end <br>
|
131
|
+
point. <br>
|
132
|
+
</td>
|
133
|
+
</tr>
|
134
|
+
</tbody>
|
135
|
+
</table>
|
136
|
+
<br>
|
137
|
+
</div>
|
138
|
+
<br>
|
139
|
+
<h4>Returns</h4>
|
140
|
+
When HPDF_Page_SetLineCap() succeed, it returns HPDF_OK, Otherwise it
|
141
|
+
returns error code and error-handler is invoked.<br>
|
142
|
+
</div>
|
143
|
+
<br>
|
144
|
+
<br>
|
145
|
+
<h3><a name="HPDF_Page_SetLineJoin_"></a>HPDF_Page_SetLineJoin<br>
|
146
|
+
</h3>
|
147
|
+
<div class="bodytext1">
|
148
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
149
|
+
"apdf.h"<br>
|
150
|
+
<br>
|
151
|
+
HPDF_STATUS<br>
|
152
|
+
HPDF_Page_SetLineJoin (HPDF_Page
|
153
|
+
page,<br>
|
154
|
+
|
155
|
+
HPDF_LineJoin line_join);<br>
|
156
|
+
<br>
|
157
|
+
</div>
|
158
|
+
<h4>Description<br>
|
159
|
+
</h4>
|
160
|
+
HPDF_Page_SetLineJoin() Sets the line join style in the page.<br>
|
161
|
+
An application can invoke HPDF_Page_SetLineJoin() when the graphics
|
162
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
163
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
164
|
+
<br>
|
165
|
+
<h4>Parameter</h4>
|
166
|
+
<span style="font-weight: bold;">page</span>
|
167
|
+
<div class="bodytext5">The handle of a page object.<br>
|
168
|
+
<br>
|
169
|
+
</div>
|
170
|
+
<span style="font-weight: bold;">line_join</span><br>
|
171
|
+
<div class="bodytext5">The style of line-join.<br>
|
172
|
+
<table style="width: 300px; text-align: left;" border="1"
|
173
|
+
cellpadding="2" cellspacing="2">
|
174
|
+
<tbody>
|
175
|
+
<tr>
|
176
|
+
<td
|
177
|
+
style="vertical-align: top; background-color: rgb(204, 204, 204); width: 140px;">value<br>
|
178
|
+
</td>
|
179
|
+
<td
|
180
|
+
style="vertical-align: top; background-color: rgb(204, 204, 204); width: 140px;">sample<br>
|
181
|
+
</td>
|
182
|
+
</tr>
|
183
|
+
<tr>
|
184
|
+
<td style="vertical-align: top; width: 140px;">HPDF_MITER_JOIN</td>
|
185
|
+
<td style="vertical-align: top; width: 140px; text-align: center;"><img
|
186
|
+
alt="HPDF_MITER_JOIN" src="image/figure13.png"
|
187
|
+
style="width: 131px; height: 94px;"><br>
|
188
|
+
</td>
|
189
|
+
</tr>
|
190
|
+
<tr>
|
191
|
+
<td style="vertical-align: top; width: 140px;">HPDF_ROUND_JOIN</td>
|
192
|
+
<td style="vertical-align: top; width: 140px; text-align: center;"><img
|
193
|
+
alt="HPDF_ROUND_JOIN" src="image/figure14.png"
|
194
|
+
style="width: 131px; height: 94px;"><br>
|
195
|
+
</td>
|
196
|
+
</tr>
|
197
|
+
<tr>
|
198
|
+
<td style="vertical-align: top; width: 140px;">HPDF_BEVEL_JOIN</td>
|
199
|
+
<td style="vertical-align: top; width: 140px; text-align: center;"><img
|
200
|
+
alt="HPDF_BEVEL_JOIN" src="image/figure15.png"
|
201
|
+
style="width: 131px; height: 94px;"><br>
|
202
|
+
</td>
|
203
|
+
</tr>
|
204
|
+
</tbody>
|
205
|
+
</table>
|
206
|
+
<br>
|
207
|
+
</div>
|
208
|
+
<br>
|
209
|
+
<h4>Returns</h4>
|
210
|
+
When HPDF_Page_SetLineJoin() succeed, it returns HPDF_OK, Otherwise it
|
211
|
+
returns error code and error-handler is invoked.<br>
|
212
|
+
</div>
|
213
|
+
<br>
|
214
|
+
<br>
|
215
|
+
<h3><a name="HPDF_Page_SetMiterLimit_"></a>HPDF_Page_SetMiterLimit<br>
|
216
|
+
</h3>
|
217
|
+
<br>
|
218
|
+
<br>
|
219
|
+
<h3><a name="HPDF_Page_SetDash_"></a>HPDF_Page_SetDash<br>
|
220
|
+
</h3>
|
221
|
+
<div class="bodytext1">
|
222
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
223
|
+
"apdf.h"<br>
|
224
|
+
<br>
|
225
|
+
HPDF_STATUS<br>
|
226
|
+
HPDF_Page_SetDash
|
227
|
+
(HPDF_Page
|
228
|
+
page,<br>
|
229
|
+
|
230
|
+
const HPDF_UINT16 *dash_ptn,<br>
|
231
|
+
|
232
|
+
HPDF_UINT
|
233
|
+
num_param,<br>
|
234
|
+
|
235
|
+
HPDF_UINT
|
236
|
+
phase);<br>
|
237
|
+
<br>
|
238
|
+
</div>
|
239
|
+
<h4>Description<br>
|
240
|
+
</h4>
|
241
|
+
HPDF_Page_SetDash() Sets the line dash pattern in the page.<br>
|
242
|
+
An application can invoke HPDF_Page_SetDash() when the graphics
|
243
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
244
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
245
|
+
<br>
|
246
|
+
Sample of the dash pattern.<br>
|
247
|
+
<ul>
|
248
|
+
<li>dash_ptn=NULL, num_pattern = 0, phase=0<br>
|
249
|
+
<img alt="" src="image/figure16.png"></li>
|
250
|
+
</ul>
|
251
|
+
<ul>
|
252
|
+
<li>dash_ptn=[3], num_pattern = 1, phase=1<br>
|
253
|
+
<img alt="" src="image/figure17.png"></li>
|
254
|
+
</ul>
|
255
|
+
<ul>
|
256
|
+
<li>dash_ptn=[7, 3], num_pattern = 2, phase=2<br>
|
257
|
+
<img alt="" src="image/figure18.png"></li>
|
258
|
+
</ul>
|
259
|
+
<ul>
|
260
|
+
<li>dash_ptn=[8, 7, 2, 7], num_pattern = 4, phase=0<br>
|
261
|
+
<img alt="" src="image/figure19.png"></li>
|
262
|
+
</ul>
|
263
|
+
<h4>Parameter</h4>
|
264
|
+
<span style="font-weight: bold;">page</span>
|
265
|
+
<div class="bodytext5">The handle of a page object.<br>
|
266
|
+
<br>
|
267
|
+
</div>
|
268
|
+
<span style="font-weight: bold;">dash_pattern</span><br>
|
269
|
+
<div class="bodytext5">An array of HPDF_UINT16 which specify pattern of
|
270
|
+
dashes and gaps used to stroke paths.<br>
|
271
|
+
<br>
|
272
|
+
</div>
|
273
|
+
<span style="font-weight: bold;">num_param</span><br>
|
274
|
+
<div class="bodytext5">The number of the element of the dash_pattern.
|
275
|
+
Admitted ranges are from 0 to 8. <br>
|
276
|
+
<br>
|
277
|
+
</div>
|
278
|
+
<span style="font-weight: bold;">phase</span><br>
|
279
|
+
<div class="bodytext5">The phase in which the pattern begins. <br>
|
280
|
+
</div>
|
281
|
+
<br>
|
282
|
+
<h4>Returns</h4>
|
283
|
+
When HPDF_Page_SetDash() succeed, it returns HPDF_OK, Otherwise it
|
284
|
+
returns error code and error-handler is invoked.<br>
|
285
|
+
</div>
|
286
|
+
<br>
|
287
|
+
<h3><a name="HPDF_Page_SetFlat_"></a>HPDF_Page_<br>
|
288
|
+
</h3>
|
289
|
+
<br>
|
290
|
+
<h3><a name="HPDF_Page_SetExtGState"></a>HPDF_Page_SetExtGState</h3>
|
291
|
+
<div class="bodytext1">
|
292
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
293
|
+
"apdf.h"<br>
|
294
|
+
<br>
|
295
|
+
HPDF_STATUS<br>
|
296
|
+
HPDF_Page_SetExtGState
|
297
|
+
(HPDF_Page page,<br>
|
298
|
+
|
299
|
+
HPDF_ExtGState ext_gstate);<br>
|
300
|
+
<br>
|
301
|
+
</div>
|
302
|
+
<h4>Description<br>
|
303
|
+
</h4>
|
304
|
+
HPDF_Page_SetExtGState() applys the graphics state to the page.<br>
|
305
|
+
<br>
|
306
|
+
An application can invoke HPDF_Page_GSave() when the graphics
|
307
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION.<br>
|
308
|
+
<br>
|
309
|
+
<h4>Parameter</h4>
|
310
|
+
<span style="font-weight: bold;">page</span>
|
311
|
+
<div class="bodytext5">The handle of a page object.<br>
|
312
|
+
</div>
|
313
|
+
<span style="font-weight: bold;">ext_gstate</span><br>
|
314
|
+
<div class="bodytext5">The handle of a extended graphics state object.<br>
|
315
|
+
</div>
|
316
|
+
<br>
|
317
|
+
<h4>Returns</h4>
|
318
|
+
When HPDF_Page_SetExtGState() succeed, it returns HPDF_OK, Otherwise it
|
319
|
+
returns error code and error-handler is invoked.<br>
|
320
|
+
</div>
|
321
|
+
<br>
|
322
|
+
<h3><a name="HPDF_Page_GSave_"></a>HPDF_Page_GSave<br>
|
323
|
+
</h3>
|
324
|
+
<div class="bodytext1">
|
325
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
326
|
+
"apdf.h"<br>
|
327
|
+
<br>
|
328
|
+
HPDF_STATUS<br>
|
329
|
+
HPDF_Page_GSave (HPDF_Page page);<br>
|
330
|
+
<br>
|
331
|
+
</div>
|
332
|
+
<h4>Description<br>
|
333
|
+
</h4>
|
334
|
+
HPDF_Page_GSave() saves the page's current graphics parameter to the
|
335
|
+
stack. An application can invoke HPDF_Page_GSave() up to 28 and can
|
336
|
+
restore the saved parameter by invoking HPDF_Page_GRestore().<br>
|
337
|
+
<br>
|
338
|
+
The parameters that are saved by HPDF_Page_GSave() is as follows.<br>
|
339
|
+
<ul>
|
340
|
+
<li>Transformation Matrix</li>
|
341
|
+
<li> Line Width</li>
|
342
|
+
<li>Line Cap Style</li>
|
343
|
+
<li>Line Join Style</li>
|
344
|
+
<li>Miter Limit</li>
|
345
|
+
<li>Dash Mode</li>
|
346
|
+
<li>Flatness</li>
|
347
|
+
<li>Character Spacing</li>
|
348
|
+
<li>Word Spacing</li>
|
349
|
+
<li>Horizontal Scalling</li>
|
350
|
+
<li>Text Leading</li>
|
351
|
+
<li>Rendering Mode</li>
|
352
|
+
<li>Text Rise</li>
|
353
|
+
<li>Filling Color</li>
|
354
|
+
<li>Stroking Color</li>
|
355
|
+
<li>Font</li>
|
356
|
+
<li>Font Size</li>
|
357
|
+
</ul>
|
358
|
+
An application can invoke HPDF_Page_GSave() when the graphics
|
359
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION.<br>
|
360
|
+
<br>
|
361
|
+
<h4>Parameter</h4>
|
362
|
+
<span style="font-weight: bold;">page</span>
|
363
|
+
<div class="bodytext5">The handle of a page object.<br>
|
364
|
+
</div>
|
365
|
+
<br>
|
366
|
+
<h4>Returns</h4>
|
367
|
+
When HPDF_Page_GSave() succeed, it returns HPDF_OK, Otherwise it
|
368
|
+
returns error code and error-handler is invoked.<br>
|
369
|
+
</div>
|
370
|
+
<br>
|
371
|
+
<br>
|
372
|
+
<h3><a name="HPDF_Page_GRestore_"></a>HPDF_Page_GRestore<br>
|
373
|
+
</h3>
|
374
|
+
<div class="bodytext1">
|
375
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
376
|
+
"apdf.h"<br>
|
377
|
+
<br>
|
378
|
+
HPDF_STATUS<br>
|
379
|
+
HPDF_Page_GRestore (HPDF_Page page);<br>
|
380
|
+
<br>
|
381
|
+
</div>
|
382
|
+
<h4>Description<br>
|
383
|
+
</h4>
|
384
|
+
HPDF_Page_GRestore() restore the graphics state which is saved by
|
385
|
+
HPDF_Page_GSave().<br>
|
386
|
+
An application can invoke HPDF_Page_GSave() when the graphics
|
387
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION.<br>
|
388
|
+
<br>
|
389
|
+
<h4>Parameter</h4>
|
390
|
+
<span style="font-weight: bold;">page</span>
|
391
|
+
<div class="bodytext5">The handle of a page object.<br>
|
392
|
+
</div>
|
393
|
+
<br>
|
394
|
+
<h4>Returns</h4>
|
395
|
+
When HPDF_Page_GRestore() succeed, it returns HPDF_OK, Otherwise it
|
396
|
+
returns error code and error-handler is invoked.<br>
|
397
|
+
</div>
|
398
|
+
<br>
|
399
|
+
<br>
|
400
|
+
<h3><a name="HPDF_Page_Concat_"></a>HPDF_Page_Concat<br>
|
401
|
+
</h3>
|
402
|
+
<div class="bodytext1">
|
403
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
404
|
+
"apdf.h"<br>
|
405
|
+
<br>
|
406
|
+
HPDF_STATUS<br>
|
407
|
+
HPDF_Page_Concat (HPDF_Page page,<br>
|
408
|
+
|
409
|
+
HPDF_REAL a,<br>
|
410
|
+
|
411
|
+
HPDF_REAL b,<br>
|
412
|
+
|
413
|
+
HPDF_REAL c,<br>
|
414
|
+
|
415
|
+
HPDF_REAL d,<br>
|
416
|
+
|
417
|
+
HPDF_REAL x,<br>
|
418
|
+
|
419
|
+
HPDF_REAL y);<br>
|
420
|
+
<br>
|
421
|
+
</div>
|
422
|
+
<h4>Description<br>
|
423
|
+
</h4>
|
424
|
+
HPDF_Page_Concat() concatenates the page's current transformation
|
425
|
+
matrix and specified matrix.<br>
|
426
|
+
For example, if you want to rotate the coordinate system of the page by
|
427
|
+
45 degrees, use HPDF_Page_Concat() as follows.<br>
|
428
|
+
<br>
|
429
|
+
<div class="bodycode"> float rad1 = 45 / 180 * 3.141592;<br>
|
430
|
+
HPDF_Page_Concat (page, cos(rad1), sin(rad1), -sin(rad1), <br>
|
431
|
+
cos(rad1), 220,
|
432
|
+
350);
|
433
|
+
</div>
|
434
|
+
<br>
|
435
|
+
Additionally to change the coordinate system of the page to 300dpi, use
|
436
|
+
HPDF_Page_Concat() as follows.<br>
|
437
|
+
<div class="bodycode"> HPDF_Page_Concat (page, 72.0f / 300.0f, 0,
|
438
|
+
0, 72.0f / 300.0f, 0, 0);
|
439
|
+
</div>
|
440
|
+
<br>
|
441
|
+
Invoke HPDF_Page_GSave() before HPDF_Page_Concat(). Then the change by
|
442
|
+
HPDF_Page_Concat() can be restored by invoking HPDF_Page_GRestore().<br>
|
443
|
+
<div class="bodycode"> /* save the current graphics states */<br>
|
444
|
+
HPDF_Page_GSave (page);<br>
|
445
|
+
<br>
|
446
|
+
/* concatenate the transformation matrix */<br>
|
447
|
+
HPDF_Page_Concat (page, 72.0f / 300.0f, 0, 0, 72.0f / 300.0f, 0,
|
448
|
+
0);<br>
|
449
|
+
<br>
|
450
|
+
/* show text on the translated coordinates */<br>
|
451
|
+
HPDF_Page_BeginText (page);<br>
|
452
|
+
HPDF_Page_MoveTextPos (page, 50, 100);<br>
|
453
|
+
HPDF_Page_ShoeText (page, "Text on the translated coordinates");<br>
|
454
|
+
HPDF_Page_EndText (page);<br>
|
455
|
+
<br>
|
456
|
+
/* restore the graphics states */<br>
|
457
|
+
HPDF_Page_GRestore (page);<br>
|
458
|
+
</div>
|
459
|
+
<br>
|
460
|
+
An application can invoke HPDF_Page_GSave() when the graphics
|
461
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION.<br>
|
462
|
+
<br>
|
463
|
+
<h4>Parameter</h4>
|
464
|
+
<span style="font-weight: bold;">page</span>
|
465
|
+
<div class="bodytext5">The handle of a page object.<br>
|
466
|
+
<br>
|
467
|
+
</div>
|
468
|
+
<span style="font-weight: bold;">a, b, c, d, x, y</span><br>
|
469
|
+
<div class="bodytext5">The transformation matrix to concatenate.<br>
|
470
|
+
<br>
|
471
|
+
</div>
|
472
|
+
<br>
|
473
|
+
<h4>Returns</h4>
|
474
|
+
When HPDF_Page_Concat() succeed, it returns HPDF_OK, Otherwise it
|
475
|
+
returns error code and error-handler is invoked.<br>
|
476
|
+
</div>
|
477
|
+
<br>
|
478
|
+
<br>
|
479
|
+
<h3><a name="HPDF_Page_MoveTo_"></a>HPDF_Page_MoveTo<br>
|
480
|
+
</h3>
|
481
|
+
<div class="bodytext1">
|
482
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
483
|
+
"apdf.h"<br>
|
484
|
+
<br>
|
485
|
+
HPDF_STATUS<br>
|
486
|
+
HPDF_Page_MoveTo (HPDF_Page page,<br>
|
487
|
+
|
488
|
+
HPDF_REAL x,<br>
|
489
|
+
|
490
|
+
HPDF_REAL y);<br>
|
491
|
+
<br>
|
492
|
+
</div>
|
493
|
+
<h4>Description<br>
|
494
|
+
</h4>
|
495
|
+
HPDF_Page_MoveTo() starts a new subpath and move the current point for
|
496
|
+
drawing path,
|
497
|
+
HPDF_Page_MoveTo() sets the start point for the path to the point (x,
|
498
|
+
y) and changes the graphics mode to
|
499
|
+
HPDF_GMODE_PATH_OBJECT.<br>
|
500
|
+
An application can invoke HPDF_Page_MoveTo() when the graphics
|
501
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
502
|
+
HPDF_GMODE_PATH_OBJECT.<br>
|
503
|
+
<br>
|
504
|
+
<h4>Parameter</h4>
|
505
|
+
<span style="font-weight: bold;">page</span>
|
506
|
+
<div class="bodytext5">The handle of a page object.<br>
|
507
|
+
<br>
|
508
|
+
</div>
|
509
|
+
<span style="font-weight: bold;">x, y</span><br>
|
510
|
+
<div class="bodytext5">The start point for drawing path<br>
|
511
|
+
<br>
|
512
|
+
</div>
|
513
|
+
<br>
|
514
|
+
<h4>Returns</h4>
|
515
|
+
When HPDF_Page_MoveTo() succeed, it returns HPDF_OK, Otherwise it
|
516
|
+
returns error code and error-handler is invoked.<br>
|
517
|
+
</div>
|
518
|
+
<br>
|
519
|
+
<br>
|
520
|
+
<h3><a name="HPDF_Page_LineTo_"></a>HPDF_Page_LineTo<br>
|
521
|
+
</h3>
|
522
|
+
<div class="bodytext1">
|
523
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
524
|
+
"apdf.h"<br>
|
525
|
+
<br>
|
526
|
+
HPDF_STATUS<br>
|
527
|
+
HPDF_Page_LineTo (HPDF_Page page,<br>
|
528
|
+
|
529
|
+
HPDF_REAL x,<br>
|
530
|
+
|
531
|
+
HPDF_REAL y);<br>
|
532
|
+
<br>
|
533
|
+
</div>
|
534
|
+
<h4>Description<br>
|
535
|
+
</h4>
|
536
|
+
HPDF_Page_LineTo() appends a path from the current point to the
|
537
|
+
specified
|
538
|
+
point.<br>
|
539
|
+
An application can invoke HPDF_Page_LineTo() when the graphics
|
540
|
+
mode of the page is in HPDF_GMODE_PATH_OBJECT.<br>
|
541
|
+
<br>
|
542
|
+
<h4>Parameter</h4>
|
543
|
+
<span style="font-weight: bold;">page</span>
|
544
|
+
<div class="bodytext5">The handle of a page object.<br>
|
545
|
+
<br>
|
546
|
+
</div>
|
547
|
+
<span style="font-weight: bold;">x, y</span><br>
|
548
|
+
<div class="bodytext5">The end point of the path<br>
|
549
|
+
<br>
|
550
|
+
</div>
|
551
|
+
<br>
|
552
|
+
<h4>Returns</h4>
|
553
|
+
When HPDF_Page_LineTo() succeed, it returns HPDF_OK, Otherwise it
|
554
|
+
returns error code and error-handler is invoked.<br>
|
555
|
+
</div>
|
556
|
+
<br>
|
557
|
+
<br>
|
558
|
+
<h3><a name="HPDF_Page_CurveTo_"></a>HPDF_Page_CurveTo<br>
|
559
|
+
</h3>
|
560
|
+
<div class="bodytext1">
|
561
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
562
|
+
"apdf.h"<br>
|
563
|
+
<br>
|
564
|
+
HPDF_STATUS<br>
|
565
|
+
HPDF_Page_CurveTo (HPDF_Page page,<br>
|
566
|
+
|
567
|
+
HPDF_REAL x1,<br>
|
568
|
+
|
569
|
+
HPDF_REAL y1,<br>
|
570
|
+
|
571
|
+
HPDF_REAL x2,<br>
|
572
|
+
|
573
|
+
HPDF_REAL y2,<br>
|
574
|
+
|
575
|
+
HPDF_REAL x3,<br>
|
576
|
+
|
577
|
+
HPDF_REAL y3);<br>
|
578
|
+
<br>
|
579
|
+
</div>
|
580
|
+
<h4>Description<br>
|
581
|
+
</h4>
|
582
|
+
HPDF_Page_CurveTo() appends a Bézier curve to the current path
|
583
|
+
using two spesified points.<br>
|
584
|
+
The point (x1, y1) and the point (x2, y2) are used as the control
|
585
|
+
points for a Bézier curve and current point is moved to the
|
586
|
+
point (x3,
|
587
|
+
y3)<br>
|
588
|
+
An application can invoke HPDF_Page_CurveTo() when the graphics
|
589
|
+
mode of the page is in HPDF_GMODE_PATH_OBJECT.<br>
|
590
|
+
<img alt="" src="image/figure20.png"
|
591
|
+
style="width: 259px; height: 198px;"><br>
|
592
|
+
<br>
|
593
|
+
<h4>Parameter</h4>
|
594
|
+
<span style="font-weight: bold;">page</span>
|
595
|
+
<div class="bodytext5">The handle of a page object.<br>
|
596
|
+
<br>
|
597
|
+
</div>
|
598
|
+
<span style="font-weight: bold;">x1, y1, x2, y2, x3, y3</span><br>
|
599
|
+
<div class="bodytext5">The control points for a Bézier curve.<br>
|
600
|
+
</div>
|
601
|
+
<br>
|
602
|
+
<h4>Returns</h4>
|
603
|
+
When HPDF_Page_CurveTo() succeed, it returns HPDF_OK, Otherwise it
|
604
|
+
returns error code and error-handler is invoked.<br>
|
605
|
+
</div>
|
606
|
+
<br>
|
607
|
+
<br>
|
608
|
+
<h3><a name="HPDF_Page_CurveTo2_"></a>HPDF_Page_CurveTo2<br>
|
609
|
+
</h3>
|
610
|
+
<div class="bodytext1">
|
611
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
612
|
+
"apdf.h"<br>
|
613
|
+
<br>
|
614
|
+
HPDF_STATUS<br>
|
615
|
+
HPDF_Page_CurveTo2 (HPDF_Page page,<br>
|
616
|
+
|
617
|
+
HPDF_REAL x2,<br>
|
618
|
+
|
619
|
+
HPDF_REAL y2,<br>
|
620
|
+
|
621
|
+
HPDF_REAL x3,<br>
|
622
|
+
|
623
|
+
HPDF_REAL y3);<br>
|
624
|
+
<br>
|
625
|
+
</div>
|
626
|
+
<h4>Description<br>
|
627
|
+
</h4>
|
628
|
+
HPDF_Page_CurveTo2() appends a Bézier curve to the current path
|
629
|
+
using two spesified points.<br>
|
630
|
+
The current point and the point (x2, y2) are used as the control points
|
631
|
+
for a Bézier curve and current point is moved to the point (x3,
|
632
|
+
y3)<br>
|
633
|
+
An application can invoke HPDF_Page_CurveTo3() when the graphics
|
634
|
+
mode of the page is in HPDF_GMODE_PATH_OBJECT.<br>
|
635
|
+
<br>
|
636
|
+
<img alt="" src="image/figure21.png"
|
637
|
+
style="width: 251px; height: 140px;"><br>
|
638
|
+
<br>
|
639
|
+
<h4>Parameter</h4>
|
640
|
+
<span style="font-weight: bold;">page</span>
|
641
|
+
<div class="bodytext5">The handle of a page object.<br>
|
642
|
+
<br>
|
643
|
+
</div>
|
644
|
+
<span style="font-weight: bold;">x2, y2, x3, y3</span><br>
|
645
|
+
<div class="bodytext5">The control points for a Bézier curve.<br>
|
646
|
+
</div>
|
647
|
+
<br>
|
648
|
+
<h4>Returns</h4>
|
649
|
+
When HPDF_Page_CurveTo3() succeed, it returns HPDF_OK, Otherwise it
|
650
|
+
returns error code and error-handler is invoked.<br>
|
651
|
+
</div>
|
652
|
+
<br>
|
653
|
+
<br>
|
654
|
+
<h3><a name="HPDF_Page_CurveTo3_"></a>HPDF_Page_CurveTo3<br>
|
655
|
+
</h3>
|
656
|
+
<div class="bodytext1">
|
657
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
658
|
+
"apdf.h"<br>
|
659
|
+
<br>
|
660
|
+
HPDF_STATUS<br>
|
661
|
+
HPDF_Page_CurveTo3 (HPDF_Page page,<br>
|
662
|
+
|
663
|
+
HPDF_REAL x1,<br>
|
664
|
+
|
665
|
+
HPDF_REAL y1,<br>
|
666
|
+
|
667
|
+
HPDF_REAL x3,<br>
|
668
|
+
|
669
|
+
HPDF_REAL y3);<br>
|
670
|
+
<br>
|
671
|
+
</div>
|
672
|
+
<h4>Description<br>
|
673
|
+
</h4>
|
674
|
+
HPDF_Page_CurveTo3() appends a Bézier curve to the current path
|
675
|
+
using two spesified points.<br>
|
676
|
+
The point (x1, y1) and the point (x3, y3) are used as the control
|
677
|
+
points
|
678
|
+
for a Bézier curve and current point is moved to the point (x3,
|
679
|
+
y3)<br>
|
680
|
+
An application can invoke HPDF_Page_CurveTo2() when the graphics
|
681
|
+
mode of the page is in HPDF_GMODE_PATH_OBJECT.<br>
|
682
|
+
<br>
|
683
|
+
<img alt="" src="image/figure22.png"
|
684
|
+
style="width: 247px; height: 133px;"><br>
|
685
|
+
<br>
|
686
|
+
<h4>Parameter</h4>
|
687
|
+
<span style="font-weight: bold;">page</span>
|
688
|
+
<div class="bodytext5">The handle of a page object.<br>
|
689
|
+
<br>
|
690
|
+
</div>
|
691
|
+
<span style="font-weight: bold;">x1, y1, x3, y3</span><br>
|
692
|
+
<div class="bodytext5">The control points for a Bézier curve.<br>
|
693
|
+
</div>
|
694
|
+
<br>
|
695
|
+
<h4>Returns</h4>
|
696
|
+
When HPDF_Page_CurveTo3() succeed, it returns HPDF_OK, Otherwise it
|
697
|
+
returns error code and error-handler is invoked.<br>
|
698
|
+
</div>
|
699
|
+
<br>
|
700
|
+
<br>
|
701
|
+
<h3><a name="HPDF_Page_ClosePath_"></a>HPDF_Page_ClosePath<br>
|
702
|
+
</h3>
|
703
|
+
<div class="bodytext1">
|
704
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
705
|
+
"apdf.h"<br>
|
706
|
+
<br>
|
707
|
+
HPDF_STATUS<br>
|
708
|
+
HPDF_Page_ClosePath (HPDF_Page page);<br>
|
709
|
+
<br>
|
710
|
+
</div>
|
711
|
+
<h4>Description<br>
|
712
|
+
</h4>
|
713
|
+
HPDF_Page_ClosePath() appends a strait line from the current point to
|
714
|
+
the start point of sub path.<br>
|
715
|
+
The current point is moved to the start point of sub path. <br>
|
716
|
+
An application can invoke HPDF_Page_CurveTo2() when the graphics
|
717
|
+
mode of the page is in HPDF_GMODE_PATH_OBJECT.<br>
|
718
|
+
<br>
|
719
|
+
<h4>Parameter</h4>
|
720
|
+
<span style="font-weight: bold;">page</span>
|
721
|
+
<div class="bodytext5">The handle of a page object.<br>
|
722
|
+
</div>
|
723
|
+
<br>
|
724
|
+
<h4>Returns</h4>
|
725
|
+
When HPDF_Page_ClosePath() succeed, it returns HPDF_OK, Otherwise it
|
726
|
+
returns error code and error-handler is invoked.<br>
|
727
|
+
</div>
|
728
|
+
<br>
|
729
|
+
<br>
|
730
|
+
<h3><a name="HPDF_Page_Rectangle_"></a>HPDF_Page_Rectangle<br>
|
731
|
+
</h3>
|
732
|
+
<div class="bodytext1">
|
733
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
734
|
+
"apdf.h"<br>
|
735
|
+
<br>
|
736
|
+
HPDF_STATUS<br>
|
737
|
+
HPDF_Page_Rectangle (HPDF_Page page,<br>
|
738
|
+
|
739
|
+
HPDF_REAL x,<br>
|
740
|
+
|
741
|
+
HPDF_REAL y,<br>
|
742
|
+
|
743
|
+
HPDF_REAL width,<br>
|
744
|
+
|
745
|
+
HPDF_REAL height);<br>
|
746
|
+
<br>
|
747
|
+
</div>
|
748
|
+
<h4>Description<br>
|
749
|
+
</h4>
|
750
|
+
HPDF_Page_Rectangle() appends a rectangle to the current path.<br>
|
751
|
+
An application can invoke HPDF_Page_Rectangle() when the graphics
|
752
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
753
|
+
HPDF_GMODE_PATH_OBJECT.<br>
|
754
|
+
<br>
|
755
|
+
<h4>Parameter</h4>
|
756
|
+
<span style="font-weight: bold;">page</span>
|
757
|
+
<div class="bodytext5">The handle of a page object.<br>
|
758
|
+
<br>
|
759
|
+
</div>
|
760
|
+
<span style="font-weight: bold;">x, y<br>
|
761
|
+
</span>
|
762
|
+
<div class="bodytext5">The lower-left point of the rectangle.<br>
|
763
|
+
<br>
|
764
|
+
</div>
|
765
|
+
<span style="font-weight: bold;">width<br>
|
766
|
+
</span>
|
767
|
+
<div class="bodytext5">The width of the rectangle.<br>
|
768
|
+
<br>
|
769
|
+
</div>
|
770
|
+
<span style="font-weight: bold;">height<br>
|
771
|
+
</span>
|
772
|
+
<div class="bodytext5">The height of the rectangle.<br>
|
773
|
+
</div>
|
774
|
+
<br>
|
775
|
+
<h4>Returns</h4>
|
776
|
+
When HPDF_Page_Rectangle() succeed, it returns HPDF_OK, Otherwise it
|
777
|
+
returns error code and error-handler is invoked.<br>
|
778
|
+
</div>
|
779
|
+
<br>
|
780
|
+
<br>
|
781
|
+
<h3><a name="HPDF_Page_Stroke_"></a>HPDF_Page_Stroke<br>
|
782
|
+
</h3>
|
783
|
+
<div class="bodytext1">
|
784
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
785
|
+
"apdf.h"<br>
|
786
|
+
<br>
|
787
|
+
HPDF_STATUS<br>
|
788
|
+
HPDF_Page_Stroke (HPDF_Page page);<br>
|
789
|
+
<br>
|
790
|
+
</div>
|
791
|
+
<h4>Description<br>
|
792
|
+
</h4>
|
793
|
+
HPDF_Page_Stroke() paints the current path.<br>
|
794
|
+
An application can invoke HPDF_Page_Stroke() when the graphics
|
795
|
+
mode of the page is in HPDF_GMODE_PATH_OBJECT. And it changes the
|
796
|
+
graphics mode to HPDF_GMODE_PAGE_DESCRIPTION.<br>
|
797
|
+
<br>
|
798
|
+
<h4>Parameter</h4>
|
799
|
+
<span style="font-weight: bold;">page</span>
|
800
|
+
<div class="bodytext5">The handle of a page object.<br>
|
801
|
+
</div>
|
802
|
+
<br>
|
803
|
+
<h4>Returns</h4>
|
804
|
+
When HPDF_Page_Stroke() succeed, it returns HPDF_OK, Otherwise it
|
805
|
+
returns error code and error-handler is invoked.<br>
|
806
|
+
</div>
|
807
|
+
<br>
|
808
|
+
<br>
|
809
|
+
<h3><a name="HPDF_Page_ClosePathStroke_"></a>HPDF_Page_ClosePathStroke<br>
|
810
|
+
</h3>
|
811
|
+
<div class="bodytext1">
|
812
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
813
|
+
"apdf.h"<br>
|
814
|
+
<br>
|
815
|
+
HPDF_STATUS<br>
|
816
|
+
HPDF_Page_ClosePathStroke (HPDF_Page page);<br>
|
817
|
+
<br>
|
818
|
+
</div>
|
819
|
+
<h4>Description<br>
|
820
|
+
</h4>
|
821
|
+
HPDF_Page_ClosePathStroke() closes the current path, then it paints the
|
822
|
+
path.<br>
|
823
|
+
An application can invoke HPDF_Page_ClosePathStroke() when the graphics
|
824
|
+
mode of the page is in HPDF_GMODE_PATH_OBJECT. And it changes the
|
825
|
+
graphics mode to HPDF_GMODE_PAGE_DESCRIPTION.<br>
|
826
|
+
<br>
|
827
|
+
<h4>Parameter</h4>
|
828
|
+
<span style="font-weight: bold;">page</span>
|
829
|
+
<div class="bodytext5">The handle of a page object.<br>
|
830
|
+
</div>
|
831
|
+
<br>
|
832
|
+
<h4>Returns</h4>
|
833
|
+
When HPDF_Page_ClosePathStroke() succeed, it returns HPDF_OK, Otherwise
|
834
|
+
it
|
835
|
+
returns error code and error-handler is invoked.<br>
|
836
|
+
</div>
|
837
|
+
<br>
|
838
|
+
<br>
|
839
|
+
<h3><a name="HPDF_Page_Fill_"></a>HPDF_Page_Fill<br>
|
840
|
+
</h3>
|
841
|
+
<div class="bodytext1">
|
842
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
843
|
+
"apdf.h"<br>
|
844
|
+
<br>
|
845
|
+
HPDF_STATUS<br>
|
846
|
+
HPDF_Page_Fill(HPDF_Page page);<br>
|
847
|
+
<br>
|
848
|
+
</div>
|
849
|
+
<h4>Description<br>
|
850
|
+
</h4>
|
851
|
+
HPDF_Page_Fill() fills the current path using the nonzero winding
|
852
|
+
number rule.<br>
|
853
|
+
An application can invoke HPDF_Page_Fill() when the graphics
|
854
|
+
mode of the page is in HPDF_GMODE_PATH_OBJECT. And it changes the
|
855
|
+
graphics mode to HPDF_GMODE_PAGE_DESCRIPTION.<br>
|
856
|
+
<br>
|
857
|
+
<h4>Parameter</h4>
|
858
|
+
<span style="font-weight: bold;">page</span>
|
859
|
+
<div class="bodytext5">The handle of a page object.<br>
|
860
|
+
</div>
|
861
|
+
<br>
|
862
|
+
<h4>Returns</h4>
|
863
|
+
When HPDF_Page_Fill() succeed, it returns HPDF_OK, Otherwise it
|
864
|
+
returns error code and error-handler is invoked.<br>
|
865
|
+
</div>
|
866
|
+
<br>
|
867
|
+
<br>
|
868
|
+
<h3><a name="HPDF_Page_Eofill_"></a>HPDF_Page_Eofill<br>
|
869
|
+
</h3>
|
870
|
+
<div class="bodytext1">
|
871
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
872
|
+
"apdf.h"<br>
|
873
|
+
<br>
|
874
|
+
HPDF_STATUS<br>
|
875
|
+
HPDF_Page_Eofill(HPDF_Page page);<br>
|
876
|
+
<br>
|
877
|
+
</div>
|
878
|
+
<h4>Description<br>
|
879
|
+
</h4>
|
880
|
+
HPDF_Page_Eofill() fills the current path using the even-odd rule.<br>
|
881
|
+
An application can invoke HPDF_Page_Eofill() when the graphics
|
882
|
+
mode of the page is in HPDF_GMODE_PATH_OBJECT. And it changes the
|
883
|
+
graphics mode to HPDF_GMODE_PAGE_DESCRIPTION.<br>
|
884
|
+
<br>
|
885
|
+
<h4>Parameter</h4>
|
886
|
+
<span style="font-weight: bold;">page</span>
|
887
|
+
<div class="bodytext5">The handle of a page object.<br>
|
888
|
+
</div>
|
889
|
+
<br>
|
890
|
+
<h4>Returns</h4>
|
891
|
+
When HPDF_Page_Eofill() succeed, it returns HPDF_OK, Otherwise it
|
892
|
+
returns error code and error-handler is invoked.<br>
|
893
|
+
</div>
|
894
|
+
<br>
|
895
|
+
<br>
|
896
|
+
<h3><a name="HPDF_Page_FillStroke_"></a>HPDF_Page_FillStroke<br>
|
897
|
+
</h3>
|
898
|
+
<div class="bodytext1">
|
899
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
900
|
+
"apdf.h"<br>
|
901
|
+
<br>
|
902
|
+
HPDF_STATUS<br>
|
903
|
+
HPDF_Page_FillStroke(HPDF_Page page);<br>
|
904
|
+
<br>
|
905
|
+
</div>
|
906
|
+
<h4>Description<br>
|
907
|
+
</h4>
|
908
|
+
HPDF_Page_FillStroke() fills the current path using the nonzero winding
|
909
|
+
number rule, then it paints the
|
910
|
+
path. <br>
|
911
|
+
An application can invoke HPDF_Page_FillStroke() when the graphics
|
912
|
+
mode of the page is in HPDF_GMODE_PATH_OBJECT. And it changes the
|
913
|
+
graphics mode to HPDF_GMODE_PAGE_DESCRIPTION.<br>
|
914
|
+
<br>
|
915
|
+
<h4>Parameter</h4>
|
916
|
+
<span style="font-weight: bold;">page</span>
|
917
|
+
<div class="bodytext5">The handle of a page object.<br>
|
918
|
+
</div>
|
919
|
+
<br>
|
920
|
+
<h4>Returns</h4>
|
921
|
+
When HPDF_Page_FillStroke() succeed, it returns HPDF_OK, Otherwise it
|
922
|
+
returns error code and error-handler is invoked.<br>
|
923
|
+
</div>
|
924
|
+
<br>
|
925
|
+
<br>
|
926
|
+
<h3><a name="HPDF_Page_EofillStroke_"></a>HPDF_Page_EofillStroke<br>
|
927
|
+
</h3>
|
928
|
+
<div class="bodytext1">
|
929
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
930
|
+
"apdf.h"<br>
|
931
|
+
<br>
|
932
|
+
HPDF_STATUS<br>
|
933
|
+
HPDF_Page_EofillStroke(HPDF_Page page);<br>
|
934
|
+
<br>
|
935
|
+
</div>
|
936
|
+
<h4>Description<br>
|
937
|
+
</h4>
|
938
|
+
HPDF_Page_EofillStroke() fills the current path using the even-odd
|
939
|
+
rule, then it paints the
|
940
|
+
path. <br>
|
941
|
+
An application can invoke HPDF_Page_EofillStroke() when the graphics
|
942
|
+
mode of the page is in HPDF_GMODE_PATH_OBJECT. And it changes the
|
943
|
+
graphics mode to HPDF_GMODE_PAGE_DESCRIPTION.<br>
|
944
|
+
<br>
|
945
|
+
<h4>Parameter</h4>
|
946
|
+
<span style="font-weight: bold;">page</span>
|
947
|
+
<div class="bodytext5">The handle of a page object.<br>
|
948
|
+
</div>
|
949
|
+
<br>
|
950
|
+
<h4>Returns</h4>
|
951
|
+
When HPDF_Page_EofillStroke() succeed, it returns HPDF_OK, Otherwise it
|
952
|
+
returns error code and error-handler is invoked.<br>
|
953
|
+
</div>
|
954
|
+
<br>
|
955
|
+
<br>
|
956
|
+
<h3><a name="HPDF_Page_ClosePathFillStroke_"></a>HPDF_Page_ClosePathFillStroke<br>
|
957
|
+
</h3>
|
958
|
+
<div class="bodytext1">
|
959
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
960
|
+
"apdf.h"<br>
|
961
|
+
<br>
|
962
|
+
HPDF_STATUS<br>
|
963
|
+
HPDF_Page_ClosePathFillStroke(HPDF_Page page);<br>
|
964
|
+
<br>
|
965
|
+
</div>
|
966
|
+
<h4>Description<br>
|
967
|
+
</h4>
|
968
|
+
HPDF_Page_ClosePathFillStroke() closes the current path, fills the
|
969
|
+
current path using the nonzero winding
|
970
|
+
number rule, then it paints the
|
971
|
+
path. <br>
|
972
|
+
An application can invoke HPDF_Page_ClosePathFillStroke() when the
|
973
|
+
graphics
|
974
|
+
mode of the page is in HPDF_GMODE_PATH_OBJECT. And it changes the
|
975
|
+
graphics mode to HPDF_GMODE_PAGE_DESCRIPTION.<br>
|
976
|
+
<br>
|
977
|
+
<h4>Parameter</h4>
|
978
|
+
<span style="font-weight: bold;">page</span>
|
979
|
+
<div class="bodytext5">The handle of a page object.<br>
|
980
|
+
</div>
|
981
|
+
<br>
|
982
|
+
<h4>Returns</h4>
|
983
|
+
When HPDF_Page_ClosePathFillStroke() succeed, it returns HPDF_OK,
|
984
|
+
Otherwise it
|
985
|
+
returns error code and error-handler is invoked.<br>
|
986
|
+
<br>
|
987
|
+
<br>
|
988
|
+
</div>
|
989
|
+
<h3><a name="HPDF_Page_ClosePathEofillStroke_"></a>HPDF_Page_ClosePathEofillStroke<br>
|
990
|
+
</h3>
|
991
|
+
<div class="bodytext1">
|
992
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
993
|
+
"apdf.h"<br>
|
994
|
+
<br>
|
995
|
+
HPDF_STATUS<br>
|
996
|
+
HPDF_Page_ClosePathEoillStroke(HPDF_Page page);<br>
|
997
|
+
<br>
|
998
|
+
</div>
|
999
|
+
<h4>Description<br>
|
1000
|
+
</h4>
|
1001
|
+
HPDF_Page_ClosePathEofillStroke() closes the current path, fills the
|
1002
|
+
current path using the even-odd rule, then it paints the
|
1003
|
+
path. <br>
|
1004
|
+
An application can invoke HPDF_Page_ClosePathEofillStroke() when the
|
1005
|
+
graphics
|
1006
|
+
mode of the page is in HPDF_GMODE_PATH_OBJECT. And it changes the
|
1007
|
+
graphics mode to HPDF_GMODE_PAGE_DESCRIPTION.<br>
|
1008
|
+
<br>
|
1009
|
+
<h4>Parameter</h4>
|
1010
|
+
<span style="font-weight: bold;">page</span>
|
1011
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1012
|
+
</div>
|
1013
|
+
<br>
|
1014
|
+
<h4>Returns</h4>
|
1015
|
+
When HPDF_Page_ClosePathEofillStroke() succeed, it returns HPDF_OK,
|
1016
|
+
Otherwise it
|
1017
|
+
returns error code and error-handler is invoked.<br>
|
1018
|
+
</div>
|
1019
|
+
<br>
|
1020
|
+
<br>
|
1021
|
+
<h3><a name="HPDF_Page_EndPath_"></a>HPDF_Page_EndPath<br>
|
1022
|
+
</h3>
|
1023
|
+
<div class="bodytext1">
|
1024
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1025
|
+
"apdf.h"<br>
|
1026
|
+
<br>
|
1027
|
+
HPDF_STATUS<br>
|
1028
|
+
HPDF_Page_EndPath(HPDF_Page page);<br>
|
1029
|
+
<br>
|
1030
|
+
</div>
|
1031
|
+
<h4>Description<br>
|
1032
|
+
</h4>
|
1033
|
+
HPDF_Page_EndPath() ends the path object without filling and painting
|
1034
|
+
operation.<br>
|
1035
|
+
An application can invoke HPDF_Page_EndPath() when the graphics
|
1036
|
+
mode of the page is in HPDF_GMODE_PATH_OBJECT. And it changes the
|
1037
|
+
graphics mode to HPDF_GMODE_PAGE_DESCRIPTION.<br>
|
1038
|
+
<br>
|
1039
|
+
<h4>Parameter</h4>
|
1040
|
+
<span style="font-weight: bold;">page</span>
|
1041
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1042
|
+
</div>
|
1043
|
+
<br>
|
1044
|
+
<h4>Returns</h4>
|
1045
|
+
When HPDF_Page_EndPath() succeed, it returns HPDF_OK, Otherwise it
|
1046
|
+
returns error code and error-handler is invoked.<br>
|
1047
|
+
</div>
|
1048
|
+
<br>
|
1049
|
+
<br>
|
1050
|
+
<h3><a name="HPDF_Page_Clip_"></a>HPDF_Page_Clip<br>
|
1051
|
+
</h3>
|
1052
|
+
<br>
|
1053
|
+
<br>
|
1054
|
+
<br>
|
1055
|
+
<br>
|
1056
|
+
<h3><a name="HPDF_Page_Eoclip_"></a>HPDF_Page_Eoclip<br>
|
1057
|
+
</h3>
|
1058
|
+
<br>
|
1059
|
+
<br>
|
1060
|
+
<h3><a name="HPDF_Page_BeginText_"></a>HPDF_Page_BeginText<br>
|
1061
|
+
</h3>
|
1062
|
+
<div class="bodytext1">
|
1063
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1064
|
+
"apdf.h"<br>
|
1065
|
+
<br>
|
1066
|
+
HPDF_STATUS<br>
|
1067
|
+
HPDF_Page_BeginText(HPDF_Page page);<br>
|
1068
|
+
<br>
|
1069
|
+
</div>
|
1070
|
+
<h4>Description<br>
|
1071
|
+
</h4>
|
1072
|
+
HPDF_Page_BeginText() begins a text object and sets the current text
|
1073
|
+
position to the point (0, 0).<br>
|
1074
|
+
An application can invoke HPDF_Page_BeginText() when the graphics
|
1075
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION. And it changes the
|
1076
|
+
graphics mode to HPDF_GMODE_TEXT_OBJECT.<br>
|
1077
|
+
<br>
|
1078
|
+
<h4>Parameter</h4>
|
1079
|
+
<span style="font-weight: bold;">page</span>
|
1080
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1081
|
+
</div>
|
1082
|
+
<br>
|
1083
|
+
<h4>Returns</h4>
|
1084
|
+
When HPDF_Page_BeginText() succeed, it returns HPDF_OK, Otherwise it
|
1085
|
+
returns error code and error-handler is invoked.<br>
|
1086
|
+
</div>
|
1087
|
+
<br>
|
1088
|
+
<br>
|
1089
|
+
<h3><a name="HPDF_Page_EndText_"></a>HPDF_Page_EndText<br>
|
1090
|
+
</h3>
|
1091
|
+
<div class="bodytext1">
|
1092
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1093
|
+
"apdf.h"<br>
|
1094
|
+
<br>
|
1095
|
+
HPDF_STATUS<br>
|
1096
|
+
HPDF_Page_EndText(HPDF_Page page);<br>
|
1097
|
+
<br>
|
1098
|
+
</div>
|
1099
|
+
<h4>Description<br>
|
1100
|
+
</h4>
|
1101
|
+
HPDF_Page_EndText() ends a text object.<br>
|
1102
|
+
An application can invoke HPDF_Page_EndText() when the graphics
|
1103
|
+
mode of the page is in HPDF_GMODE_TEXT_OBJECT. And it changes the
|
1104
|
+
graphics mode to HPDF_GMODE_PAGE_DESCRIPTION.<br>
|
1105
|
+
<br>
|
1106
|
+
<h4>Parameter</h4>
|
1107
|
+
<span style="font-weight: bold;">page</span>
|
1108
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1109
|
+
</div>
|
1110
|
+
<br>
|
1111
|
+
<h4>Returns</h4>
|
1112
|
+
When HPDF_Page_EndText() succeed, it returns HPDF_OK, Otherwise it
|
1113
|
+
returns error code and error-handler is invoked.<br>
|
1114
|
+
</div>
|
1115
|
+
<br>
|
1116
|
+
<br>
|
1117
|
+
<h3><a name="HPDF_Page_SetCharSpace_"></a>HPDF_Page_SetCharSpace<br>
|
1118
|
+
</h3>
|
1119
|
+
<div class="bodytext1">
|
1120
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1121
|
+
"apdf.h"<br>
|
1122
|
+
<br>
|
1123
|
+
HPDF_STATUS<br>
|
1124
|
+
HPDF_Page_SetCharSpace (HPDF_Page page,<br>
|
1125
|
+
|
1126
|
+
HPDF_REAL value);<br>
|
1127
|
+
<br>
|
1128
|
+
</div>
|
1129
|
+
<h4>Description<br>
|
1130
|
+
</h4>
|
1131
|
+
HPDF_Page_SetCharSpace() sets the character spacing for text showing.<br>
|
1132
|
+
The initial value of character spacing is 0.<br>
|
1133
|
+
An application can invoke HPDF_Page_SetCharSpace() when the graphics
|
1134
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1135
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
1136
|
+
<br>
|
1137
|
+
<h4>Parameter</h4>
|
1138
|
+
<span style="font-weight: bold;">page</span>
|
1139
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1140
|
+
<br>
|
1141
|
+
</div>
|
1142
|
+
<span style="font-weight: bold;">value<br>
|
1143
|
+
</span>
|
1144
|
+
<div class="bodytext5">The value of character spacing.<br>
|
1145
|
+
</div>
|
1146
|
+
<br>
|
1147
|
+
<h4>Returns</h4>
|
1148
|
+
When HPDF_Page_SetCharSpace() succeed, it returns HPDF_OK, Otherwise it
|
1149
|
+
returns error code and error-handler is invoked.<br>
|
1150
|
+
<br>
|
1151
|
+
</div>
|
1152
|
+
<br>
|
1153
|
+
<h3><a name="HPDF_Page_SetWordSpace_"></a>HPDF_Page_SetWordSpace<br>
|
1154
|
+
</h3>
|
1155
|
+
<div class="bodytext1">
|
1156
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1157
|
+
"apdf.h"<br>
|
1158
|
+
<br>
|
1159
|
+
HPDF_STATUS<br>
|
1160
|
+
HPDF_Page_SetWordSpace (HPDF_Page page,<br>
|
1161
|
+
|
1162
|
+
HPDF_REAL value);<br>
|
1163
|
+
<br>
|
1164
|
+
</div>
|
1165
|
+
<h4>Description<br>
|
1166
|
+
</h4>
|
1167
|
+
HPDF_Page_SetWordSpace() sets the word spacing for text showing.<br>
|
1168
|
+
The initial value of word spacing is 0.<br>
|
1169
|
+
An application can invoke HPDF_Page_SetWordSpace() when the graphics
|
1170
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1171
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
1172
|
+
<br>
|
1173
|
+
<h4>Parameter</h4>
|
1174
|
+
<span style="font-weight: bold;">page</span>
|
1175
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1176
|
+
<br>
|
1177
|
+
</div>
|
1178
|
+
<span style="font-weight: bold;">value<br>
|
1179
|
+
</span>
|
1180
|
+
<div class="bodytext5">The value of word spacing.<br>
|
1181
|
+
</div>
|
1182
|
+
<br>
|
1183
|
+
<h4>Returns</h4>
|
1184
|
+
When HPDF_Page_SetWordSpace() succeed, it returns HPDF_OK, Otherwise it
|
1185
|
+
returns error code and error-handler is invoked.<br>
|
1186
|
+
<br>
|
1187
|
+
</div>
|
1188
|
+
<br>
|
1189
|
+
<h3><a name="HPDF_Page_SetHorizontalScalling_"></a>HPDF_Page_SetHorizontalScalling<br>
|
1190
|
+
</h3>
|
1191
|
+
<div class="bodytext1">
|
1192
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1193
|
+
"apdf.h"<br>
|
1194
|
+
<br>
|
1195
|
+
HPDF_STATUS<br>
|
1196
|
+
HPDF_Page_SetHorizontalScalling (HPDF_Page page,<br>
|
1197
|
+
|
1198
|
+
|
1199
|
+
HPDF_REAL value);<br>
|
1200
|
+
<br>
|
1201
|
+
</div>
|
1202
|
+
<h4>Description<br>
|
1203
|
+
</h4>
|
1204
|
+
HPDF_Page_SetHorizontalScalling() sets the horizontal scalling for text
|
1205
|
+
showing.<br>
|
1206
|
+
The initial value of horizontal scalling is 100.<br>
|
1207
|
+
An application can invoke HPDF_Page_SetHorizontalScalling() when the
|
1208
|
+
graphics
|
1209
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1210
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
1211
|
+
<br>
|
1212
|
+
<h4>Parameter</h4>
|
1213
|
+
<span style="font-weight: bold;">page</span>
|
1214
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1215
|
+
<br>
|
1216
|
+
</div>
|
1217
|
+
<span style="font-weight: bold;">value
|
1218
|
+
</span>
|
1219
|
+
<div class="bodytext5">The value of horizontal scalling.<br>
|
1220
|
+
</div>
|
1221
|
+
<br>
|
1222
|
+
<h4>Returns</h4>
|
1223
|
+
When HPDF_Page_SetHorizontalScalling() succeed, it returns HPDF_OK,
|
1224
|
+
Otherwise it
|
1225
|
+
returns error code and error-handler is invoked.<br>
|
1226
|
+
<br>
|
1227
|
+
</div>
|
1228
|
+
<br>
|
1229
|
+
<h3><a name="HPDF_Page_SetTextLeading_"></a>HPDF_Page_SetTextLeading<br>
|
1230
|
+
</h3>
|
1231
|
+
<div class="bodytext1">
|
1232
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1233
|
+
"apdf.h"<br>
|
1234
|
+
<br>
|
1235
|
+
HPDF_STATUS<br>
|
1236
|
+
HPDF_Page_SetTextLeading (HPDF_Page page,<br>
|
1237
|
+
|
1238
|
+
|
1239
|
+
HPDF_REAL value);<br>
|
1240
|
+
<br>
|
1241
|
+
</div>
|
1242
|
+
<h4>Description<br>
|
1243
|
+
</h4>
|
1244
|
+
HPDF_Page_SetTextLeading() sets the text leading (line spacing) for
|
1245
|
+
text showing.<br>
|
1246
|
+
The initial value of leading is 0.<br>
|
1247
|
+
An application can invoke HPDF_Page_SetTextLeading() when the graphics
|
1248
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1249
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
1250
|
+
<br>
|
1251
|
+
<h4>Parameter</h4>
|
1252
|
+
<span style="font-weight: bold;">page</span>
|
1253
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1254
|
+
<br>
|
1255
|
+
</div>
|
1256
|
+
<span style="font-weight: bold;">value
|
1257
|
+
</span>
|
1258
|
+
<div class="bodytext5">The value of text leading.<br>
|
1259
|
+
</div>
|
1260
|
+
<br>
|
1261
|
+
<h4>Returns</h4>
|
1262
|
+
When HPDF_Page_SetTextLeading() succeed, it returns HPDF_OK, Otherwise
|
1263
|
+
it
|
1264
|
+
returns error code and error-handler is invoked.<br>
|
1265
|
+
<br>
|
1266
|
+
</div>
|
1267
|
+
<br>
|
1268
|
+
<h3><a name="HPDF_Page_SetFontAndSize_"></a>HPDF_Page_SetFontAndSize<br>
|
1269
|
+
</h3>
|
1270
|
+
<div class="bodytext1">
|
1271
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1272
|
+
"apdf.h"<br>
|
1273
|
+
<br>
|
1274
|
+
HPDF_STATUS<br>
|
1275
|
+
HPDF_Page_SetFontAndSize (HPDF_Page page,<br>
|
1276
|
+
|
1277
|
+
HPDF_Font font,<br>
|
1278
|
+
|
1279
|
+
HPDF_REAL size);<br>
|
1280
|
+
<br>
|
1281
|
+
</div>
|
1282
|
+
<h4>Description<br>
|
1283
|
+
</h4>
|
1284
|
+
HPDF_Page_SetFontAndSize() sets the type of font and size leading.<br>
|
1285
|
+
An application can invoke HPDF_Page_SetFontAndSize() when the graphics
|
1286
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1287
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
1288
|
+
<br>
|
1289
|
+
<h4>Parameter</h4>
|
1290
|
+
<span style="font-weight: bold;">page</span>
|
1291
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1292
|
+
<br>
|
1293
|
+
</div>
|
1294
|
+
<span style="font-weight: bold;">font</span>
|
1295
|
+
<div class="bodytext5">The handle of a font object.<br>
|
1296
|
+
<br>
|
1297
|
+
</div>
|
1298
|
+
<span style="font-weight: bold;">size</span><br>
|
1299
|
+
<div class="bodytext5">The size of a font.<br>
|
1300
|
+
</div>
|
1301
|
+
<br>
|
1302
|
+
<h4>Returns</h4>
|
1303
|
+
When HPDF_Page_SetFontAndSize() succeed, it returns HPDF_OK, Otherwise
|
1304
|
+
it
|
1305
|
+
returns error code and error-handler is invoked.<br>
|
1306
|
+
<br>
|
1307
|
+
</div>
|
1308
|
+
<br>
|
1309
|
+
<h3><a name="HPDF_Page_SetTextRenderingMode_"></a>HPDF_Page_SetTextRenderingMode<br>
|
1310
|
+
</h3>
|
1311
|
+
<div class="bodytext1">
|
1312
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1313
|
+
"apdf.h"<br>
|
1314
|
+
<br>
|
1315
|
+
HPDF_STATUS<br>
|
1316
|
+
HPDF_Page_SetTextRenderingMode
|
1317
|
+
(HPDF_Page
|
1318
|
+
page,<br>
|
1319
|
+
|
1320
|
+
HPDF_TextRenderingMode mode);<br>
|
1321
|
+
<br>
|
1322
|
+
</div>
|
1323
|
+
<h4>Description<br>
|
1324
|
+
</h4>
|
1325
|
+
HPDF_Page_SetTextRenderingMode() sets the text rendering mode.<br>
|
1326
|
+
The initial value of text rendering mode is HPDF_FILL.<br>
|
1327
|
+
An application can invoke HPDF_Page_SetTextRenderingMode() when the
|
1328
|
+
graphics
|
1329
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1330
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
1331
|
+
<br>
|
1332
|
+
<h4>Parameter</h4>
|
1333
|
+
<span style="font-weight: bold;">page</span>
|
1334
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1335
|
+
<br>
|
1336
|
+
</div>
|
1337
|
+
<span style="font-weight: bold;">mode</span>
|
1338
|
+
<div class="bodytext5">The text rendering mode (one of the following
|
1339
|
+
values)<br>
|
1340
|
+
<table style="width: 400px; text-align: left;" border="1"
|
1341
|
+
cellpadding="1" cellspacing="1">
|
1342
|
+
<tbody>
|
1343
|
+
<tr>
|
1344
|
+
<td
|
1345
|
+
style="vertical-align: top; background-color: rgb(204, 204, 204);">VALUE<br>
|
1346
|
+
</td>
|
1347
|
+
<td
|
1348
|
+
style="vertical-align: top; background-color: rgb(204, 204, 204);">SAMPLE<br>
|
1349
|
+
</td>
|
1350
|
+
</tr>
|
1351
|
+
<tr>
|
1352
|
+
<td style="vertical-align: top; width: 200px;">HPDF_FILL<br>
|
1353
|
+
</td>
|
1354
|
+
<td style="vertical-align: top;"><img alt=""
|
1355
|
+
src="image/figure23.png" style="width: 239px; height: 37px;"><br>
|
1356
|
+
</td>
|
1357
|
+
</tr>
|
1358
|
+
<tr>
|
1359
|
+
<td style="vertical-align: top; width: 200px;">HPDF_STROKE<br>
|
1360
|
+
</td>
|
1361
|
+
<td style="vertical-align: top;"><img alt=""
|
1362
|
+
src="image/figure24.png" style="width: 239px; height: 37px;"></td>
|
1363
|
+
</tr>
|
1364
|
+
<tr>
|
1365
|
+
<td style="vertical-align: top; width: 200px;">HPDF_FILL_THEN_STROKE<br>
|
1366
|
+
</td>
|
1367
|
+
<td style="vertical-align: top;"><img alt=""
|
1368
|
+
src="image/figure25.png" style="width: 239px; height: 37px;"></td>
|
1369
|
+
</tr>
|
1370
|
+
<tr>
|
1371
|
+
<td style="vertical-align: top; width: 200px;">HPDF_INVISIBLE<br>
|
1372
|
+
</td>
|
1373
|
+
<td style="vertical-align: top;"><br>
|
1374
|
+
<br>
|
1375
|
+
</td>
|
1376
|
+
</tr>
|
1377
|
+
<tr>
|
1378
|
+
<td style="vertical-align: top; width: 200px;">HPDF_FILL_CLIPPING<br>
|
1379
|
+
</td>
|
1380
|
+
<td style="vertical-align: top;"><img alt=""
|
1381
|
+
src="image/figure26.png" style="width: 239px; height: 37px;"></td>
|
1382
|
+
</tr>
|
1383
|
+
<tr>
|
1384
|
+
<td style="vertical-align: top; width: 200px;">HPDF_STROKE_CLIPPING<br>
|
1385
|
+
</td>
|
1386
|
+
<td style="vertical-align: top;"><img alt=""
|
1387
|
+
src="image/figure27.png" style="width: 239px; height: 37px;"></td>
|
1388
|
+
</tr>
|
1389
|
+
<tr>
|
1390
|
+
<td style="vertical-align: top; width: 200px;">HPDF_FILL_STROKE_CLIPPING<br>
|
1391
|
+
</td>
|
1392
|
+
<td style="vertical-align: top;"><img alt=""
|
1393
|
+
src="image/figure28.png" style="width: 239px; height: 37px;"></td>
|
1394
|
+
</tr>
|
1395
|
+
<tr>
|
1396
|
+
<td style="vertical-align: top; width: 200px;">HPDF_CLIPPING<br>
|
1397
|
+
</td>
|
1398
|
+
<td style="vertical-align: top;"><br>
|
1399
|
+
<br>
|
1400
|
+
</td>
|
1401
|
+
</tr>
|
1402
|
+
</tbody>
|
1403
|
+
</table>
|
1404
|
+
<br>
|
1405
|
+
</div>
|
1406
|
+
<br>
|
1407
|
+
<h4>Returns</h4>
|
1408
|
+
When HPDF_Page_SetTextRenderingMode() succeed, it returns HPDF_OK,
|
1409
|
+
Otherwise it
|
1410
|
+
returns error code and error-handler is invoked.<br>
|
1411
|
+
<br>
|
1412
|
+
</div>
|
1413
|
+
<br>
|
1414
|
+
<h3><a name="HPDF_Page_SetTextRise_"></a>HPDF_Page_SetTextRise<br>
|
1415
|
+
</h3>
|
1416
|
+
<br>
|
1417
|
+
<br>
|
1418
|
+
<h3><a name="HPDF_Page_MoveTextPos_"></a>HPDF_Page_MoveTextPos<br>
|
1419
|
+
</h3>
|
1420
|
+
<div class="bodytext1">
|
1421
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1422
|
+
"apdf.h"<br>
|
1423
|
+
<br>
|
1424
|
+
HPDF_STATUS<br>
|
1425
|
+
HPDF_Page_MoveTextPos (HPDF_Page page,<br>
|
1426
|
+
|
1427
|
+
HPDF_REAL x,<br>
|
1428
|
+
|
1429
|
+
HPDF_REAL y);<br>
|
1430
|
+
<br>
|
1431
|
+
</div>
|
1432
|
+
<h4>Description<br>
|
1433
|
+
</h4>
|
1434
|
+
HPDF_Page_MoveTextPos() moves the current text position to the start of
|
1435
|
+
the next line with using specified offset values. If the start position
|
1436
|
+
of the current line is (x1, y1), the start of the next line is (x1 + x,
|
1437
|
+
y1 + y). <br>
|
1438
|
+
An application can invoke HPDF_MoveTextPos() when the
|
1439
|
+
graphics
|
1440
|
+
mode of the page is in HPDF_GMODE_TEXT_OBJECT.<br>
|
1441
|
+
<br>
|
1442
|
+
<h4>Parameter</h4>
|
1443
|
+
<span style="font-weight: bold;">page</span>
|
1444
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1445
|
+
<br>
|
1446
|
+
</div>
|
1447
|
+
<span style="font-weight: bold;">xpos, ypos</span><br>
|
1448
|
+
<div class="bodytext5">The offset of the start of the next line.<br>
|
1449
|
+
<br>
|
1450
|
+
</div>
|
1451
|
+
<span style="font-weight: bold;">text</span><br>
|
1452
|
+
<div class="bodytext5">The text to show.<br>
|
1453
|
+
</div>
|
1454
|
+
<br>
|
1455
|
+
<h4>Returns</h4>
|
1456
|
+
When HPDF_Page_MoveTextPos() succeed, it returns HPDF_OK,
|
1457
|
+
Otherwise it
|
1458
|
+
returns error code and error-handler is invoked.<br>
|
1459
|
+
<br>
|
1460
|
+
</div>
|
1461
|
+
<br>
|
1462
|
+
<h3><a name="HPDF_Page_MoveTextPos2_"></a>HPDF_Page_MoveTextPos2<br>
|
1463
|
+
</h3>
|
1464
|
+
<div class="bodytext1">
|
1465
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1466
|
+
"apdf.h"<br>
|
1467
|
+
<br>
|
1468
|
+
HPDF_STATUS<br>
|
1469
|
+
HPDF_Page_MoveTextPos2 (HPDF_Page page,<br>
|
1470
|
+
|
1471
|
+
HPDF_REAL x,<br>
|
1472
|
+
|
1473
|
+
HPDF_REAL y);<br>
|
1474
|
+
<br>
|
1475
|
+
</div>
|
1476
|
+
<h4>Description<br>
|
1477
|
+
</h4>
|
1478
|
+
HPDF_Page_MoveTextPos2() moves the current text position to the start
|
1479
|
+
of the next line with using specified offset values, and sets the
|
1480
|
+
text-leading to -y. If the
|
1481
|
+
start position of the current line is (x1, y1), the start of the next
|
1482
|
+
line is (x1 + x, y1 + y). <br>
|
1483
|
+
An application can invoke HPDF_MoveTextPos2() when the
|
1484
|
+
graphics
|
1485
|
+
mode of the page is in HPDF_GMODE_TEXT_OBJECT.<br>
|
1486
|
+
<br>
|
1487
|
+
<h4>Parameter</h4>
|
1488
|
+
<span style="font-weight: bold;">page</span>
|
1489
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1490
|
+
<br>
|
1491
|
+
</div>
|
1492
|
+
<span style="font-weight: bold;">xpos, ypos</span><br>
|
1493
|
+
<div class="bodytext5">The offset of the start of the next line.<br>
|
1494
|
+
<br>
|
1495
|
+
</div>
|
1496
|
+
<span style="font-weight: bold;">text</span><br>
|
1497
|
+
<div class="bodytext5">The text to show.<br>
|
1498
|
+
</div>
|
1499
|
+
<br>
|
1500
|
+
<h4>Returns</h4>
|
1501
|
+
When HPDF_Page_MoveTextPos2() succeed, it returns HPDF_OK,
|
1502
|
+
Otherwise it
|
1503
|
+
returns error code and error-handler is invoked.<br>
|
1504
|
+
<br>
|
1505
|
+
</div>
|
1506
|
+
<br>
|
1507
|
+
<h3><a name="HPDF_Page_SetTextMatrix_"></a>HPDF_Page_SetTextMatrix<br>
|
1508
|
+
</h3>
|
1509
|
+
<br>
|
1510
|
+
<br>
|
1511
|
+
<h3><a name="HPDF_Page_MoveToNextLine_"></a>HPDF_Page_MoveToNextLine<br>
|
1512
|
+
</h3>
|
1513
|
+
<div class="bodytext1">
|
1514
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1515
|
+
"apdf.h"<br>
|
1516
|
+
<br>
|
1517
|
+
HPDF_STATUS<br>
|
1518
|
+
HPDF_Page_MoveToNextLine (HPDF_Page page);<br>
|
1519
|
+
<br>
|
1520
|
+
</div>
|
1521
|
+
<h4>Description<br>
|
1522
|
+
</h4>
|
1523
|
+
HPDF_Page_MoveTextPos2() moves the current text position to the
|
1524
|
+
start of the next line. If the
|
1525
|
+
start position of the current line is (x1, y1), the start of the next
|
1526
|
+
line is (x1, y1 - <span style="font-style: italic;">text leading</span>).<br>
|
1527
|
+
An application can invoke HPDF_MoveTextPos2() when the
|
1528
|
+
graphics
|
1529
|
+
mode of the page is in HPDF_GMODE_TEXT_OBJECT.<br>
|
1530
|
+
<br>
|
1531
|
+
<div class="bodynote">NOTE:
|
1532
|
+
<br>
|
1533
|
+
Since the default value of Text Leading is 0, an application have
|
1534
|
+
to invoke HPDF_Page_SetTextLeading() before HPDF_Page_MoveTextPos2() to
|
1535
|
+
set text leading. </div>
|
1536
|
+
<br>
|
1537
|
+
<h4>Parameter</h4>
|
1538
|
+
<span style="font-weight: bold;">page</span>
|
1539
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1540
|
+
<br>
|
1541
|
+
</div>
|
1542
|
+
<span style="font-weight: bold;">xpos, ypos</span><br>
|
1543
|
+
<div class="bodytext5">The offset of the start of the next line.<br>
|
1544
|
+
<br>
|
1545
|
+
</div>
|
1546
|
+
<span style="font-weight: bold;">text</span><br>
|
1547
|
+
<div class="bodytext5">The text to show.<br>
|
1548
|
+
</div>
|
1549
|
+
<br>
|
1550
|
+
<h4>Returns</h4>
|
1551
|
+
When HPDF_Page_MoveTextPos2() succeed, it returns HPDF_OK,
|
1552
|
+
Otherwise it
|
1553
|
+
returns error code and error-handler is invoked.<br>
|
1554
|
+
<br>
|
1555
|
+
</div>
|
1556
|
+
<br>
|
1557
|
+
<h3><a name="HPDF_Page_ShowText_"></a>HPDF_Page_ShowText<br>
|
1558
|
+
</h3>
|
1559
|
+
<div class="bodytext1">
|
1560
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1561
|
+
"apdf.h"<br>
|
1562
|
+
<br>
|
1563
|
+
HPDF_STATUS<br>
|
1564
|
+
HPDF_Page_ShowText (HPDF_Page page,<br>
|
1565
|
+
|
1566
|
+
<span style="font-weight: bold;">const </span>char *text)<br>
|
1567
|
+
<br>
|
1568
|
+
</div>
|
1569
|
+
<h4>Description<br>
|
1570
|
+
</h4>
|
1571
|
+
HPDF_Page_ShowText() prints the text at the current position on the
|
1572
|
+
page.<br>
|
1573
|
+
An application can invoke HPDF_Page_ShowText() when the
|
1574
|
+
graphics
|
1575
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1576
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
1577
|
+
<br>
|
1578
|
+
<h4>Parameter</h4>
|
1579
|
+
<span style="font-weight: bold;">page</span>
|
1580
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1581
|
+
<br>
|
1582
|
+
</div>
|
1583
|
+
<span style="font-weight: bold;">text</span><br>
|
1584
|
+
<div class="bodytext5">The text to print.<br>
|
1585
|
+
</div>
|
1586
|
+
<br>
|
1587
|
+
<h4>Returns</h4>
|
1588
|
+
When HPDF_Page_ShowText() succeed, it returns HPDF_OK,
|
1589
|
+
Otherwise it
|
1590
|
+
returns error code and error-handler is invoked.<br>
|
1591
|
+
<br>
|
1592
|
+
</div>
|
1593
|
+
<br>
|
1594
|
+
<h3><a name="HPDF_Page_ShowTextNextLine_"></a>HPDF_Page_ShowTextNextLine<br>
|
1595
|
+
</h3>
|
1596
|
+
<div class="bodytext1">
|
1597
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1598
|
+
"apdf.h"<br>
|
1599
|
+
<br>
|
1600
|
+
HPDF_STATUS<br>
|
1601
|
+
HPDF_Page_ShowTextNextLine (HPDF_Page page,<br>
|
1602
|
+
|
1603
|
+
<span style="font-weight: bold;">const </span>char *text)<br>
|
1604
|
+
<br>
|
1605
|
+
</div>
|
1606
|
+
<h4>Description<br>
|
1607
|
+
</h4>
|
1608
|
+
HPDF_Page_ShowTextNextLine() moves the current text position to the
|
1609
|
+
start of the next line, then prints the text at the current position on
|
1610
|
+
the page.<br>
|
1611
|
+
An application can invoke HPDF_Page_ShowTextNextLine() when the
|
1612
|
+
graphics
|
1613
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1614
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
1615
|
+
<br>
|
1616
|
+
<h4>Parameter</h4>
|
1617
|
+
<span style="font-weight: bold;">page</span>
|
1618
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1619
|
+
<br>
|
1620
|
+
</div>
|
1621
|
+
<span style="font-weight: bold;">text</span><br>
|
1622
|
+
<div class="bodytext5">The text to print.<br>
|
1623
|
+
</div>
|
1624
|
+
<br>
|
1625
|
+
<h4>Returns</h4>
|
1626
|
+
When HPDF_Page_ShowTextNextLine() succeed, it returns HPDF_OK,
|
1627
|
+
Otherwise it
|
1628
|
+
returns error code and error-handler is invoked.<br>
|
1629
|
+
<br>
|
1630
|
+
</div>
|
1631
|
+
<br>
|
1632
|
+
<h3><a name="HPDF_Page_ShowTextNextLineEx_"></a>HPDF_Page_ShowTextNextLineEx<br>
|
1633
|
+
</h3>
|
1634
|
+
<div class="bodytext1">
|
1635
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1636
|
+
"apdf.h"<br>
|
1637
|
+
<br>
|
1638
|
+
HPDF_STATUS<br>
|
1639
|
+
HPDF_Page_ShowTextNextLineEx (HPDF_Page page,<br>
|
1640
|
+
|
1641
|
+
HPDF_REAL word_space,<br>
|
1642
|
+
|
1643
|
+
HPDF_REAL char_space,<br>
|
1644
|
+
|
1645
|
+
<span style="font-weight: bold;">const </span>char *text)<br>
|
1646
|
+
<br>
|
1647
|
+
</div>
|
1648
|
+
<h4>Description<br>
|
1649
|
+
</h4>
|
1650
|
+
HPDF_Page_ShowTextNextLineEx() moves the current text position to
|
1651
|
+
the start of the next line, then sets the word spacing, character
|
1652
|
+
spacing and prints the text at the current
|
1653
|
+
position on the page.<br>
|
1654
|
+
An application can invoke HPDF_Page_ShowTextNextLine() when the
|
1655
|
+
graphics
|
1656
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1657
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
1658
|
+
<br>
|
1659
|
+
<h4>Parameter</h4>
|
1660
|
+
<span style="font-weight: bold;">page</span>
|
1661
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1662
|
+
<br>
|
1663
|
+
</div>
|
1664
|
+
<span style="font-weight: bold;">text</span><br>
|
1665
|
+
<div class="bodytext5">The text to print.<br>
|
1666
|
+
</div>
|
1667
|
+
<br>
|
1668
|
+
<h4>Returns</h4>
|
1669
|
+
When HPDF_Page_ShowTextNextLine() succeed, it returns HPDF_OK,
|
1670
|
+
Otherwise it
|
1671
|
+
returns error code and error-handler is invoked.<br>
|
1672
|
+
<br>
|
1673
|
+
</div>
|
1674
|
+
<br>
|
1675
|
+
<h3><a name="HPDF_Page_SetGrayFill_"></a>HPDF_Page_SetGrayFill<br>
|
1676
|
+
</h3>
|
1677
|
+
<div class="bodytext1">
|
1678
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1679
|
+
"apdf.h"<br>
|
1680
|
+
<br>
|
1681
|
+
HPDF_STATUS<br>
|
1682
|
+
HPDF_Page_SetGrayFill (HPDF_Page page,<br>
|
1683
|
+
|
1684
|
+
HPDF_REAL gray);<br>
|
1685
|
+
<br>
|
1686
|
+
</div>
|
1687
|
+
<h4>Description<br>
|
1688
|
+
</h4>
|
1689
|
+
HPDF_Page_SetGrayFill() sets the filling color.<br>
|
1690
|
+
An application can invoke HPDF_Page_SetGrayFill() when the
|
1691
|
+
graphics
|
1692
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1693
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
1694
|
+
<br>
|
1695
|
+
<h4>Parameter</h4>
|
1696
|
+
<span style="font-weight: bold;">page</span>
|
1697
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1698
|
+
<br>
|
1699
|
+
</div>
|
1700
|
+
<span style="font-weight: bold;">value</span><br>
|
1701
|
+
<div class="bodytext5">The value of the gray level between 0 and 1.<br>
|
1702
|
+
</div>
|
1703
|
+
<br>
|
1704
|
+
<h4>Returns</h4>
|
1705
|
+
When HPDF_Page_SetGrayFill() succeed, it returns HPDF_OK,
|
1706
|
+
Otherwise it
|
1707
|
+
returns error code and error-handler is invoked.<br>
|
1708
|
+
</div>
|
1709
|
+
<br>
|
1710
|
+
<br>
|
1711
|
+
<h3><a name="HPDF_Page_SetGrayStroke_"></a>HPDF_Page_SetGrayStroke<br>
|
1712
|
+
</h3>
|
1713
|
+
<div class="bodytext1">
|
1714
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1715
|
+
"apdf.h"<br>
|
1716
|
+
<br>
|
1717
|
+
HPDF_STATUS<br>
|
1718
|
+
HPDF_Page_SetGrayStroke (HPDF_Page page,<br>
|
1719
|
+
|
1720
|
+
HPDF_REAL gray);<br>
|
1721
|
+
<br>
|
1722
|
+
</div>
|
1723
|
+
<h4>Description<br>
|
1724
|
+
</h4>
|
1725
|
+
HPDF_Page_SetGrayStroke() sets the stroking color.<br>
|
1726
|
+
An application can invoke HPDF_Page_SetGrayStroke() when the
|
1727
|
+
graphics
|
1728
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1729
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
1730
|
+
<br>
|
1731
|
+
<h4>Parameter</h4>
|
1732
|
+
<span style="font-weight: bold;">page</span>
|
1733
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1734
|
+
<br>
|
1735
|
+
</div>
|
1736
|
+
<span style="font-weight: bold;">value</span><br>
|
1737
|
+
<div class="bodytext5">The value of the gray level between 0 and 1.<br>
|
1738
|
+
</div>
|
1739
|
+
<br>
|
1740
|
+
<h4>Returns</h4>
|
1741
|
+
When HPDF_Page_SetGrayStroke() succeed, it returns HPDF_OK,
|
1742
|
+
Otherwise it
|
1743
|
+
returns error code and error-handler is invoked.<br>
|
1744
|
+
</div>
|
1745
|
+
<br>
|
1746
|
+
<br>
|
1747
|
+
<h3><a name="HPDF_Page_SetRGBFill_"></a>HPDF_Page_SetRGBFill<br>
|
1748
|
+
</h3>
|
1749
|
+
<div class="bodytext1">
|
1750
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1751
|
+
"apdf.h"<br>
|
1752
|
+
<br>
|
1753
|
+
HPDF_STATUS<br>
|
1754
|
+
HPDF_Page_SetRGBFill (HPDF_Page page,<br>
|
1755
|
+
|
1756
|
+
HPDF_REAL r,<br>
|
1757
|
+
|
1758
|
+
HPDF_REAL g,<br>
|
1759
|
+
|
1760
|
+
HPDF_REAL b)<br>
|
1761
|
+
<br>
|
1762
|
+
</div>
|
1763
|
+
<h4>Description<br>
|
1764
|
+
</h4>
|
1765
|
+
HPDF_Page_SetRGBFill() sets the filling color.<br>
|
1766
|
+
An application can invoke HPDF_Page_SetRGBFill() when the
|
1767
|
+
graphics
|
1768
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1769
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
1770
|
+
<br>
|
1771
|
+
<h4>Parameter</h4>
|
1772
|
+
<span style="font-weight: bold;">page</span>
|
1773
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1774
|
+
<br>
|
1775
|
+
</div>
|
1776
|
+
<span style="font-weight: bold;">r, g, b</span><br>
|
1777
|
+
<div class="bodytext5">The level of each color element. They must be
|
1778
|
+
between 0 and 1. (See "<a href="graphics.html#Colors">Colors</a>")
|
1779
|
+
</div>
|
1780
|
+
<br>
|
1781
|
+
<h4>Returns</h4>
|
1782
|
+
When HPDF_Page_SetRGBFill() succeed, it returns HPDF_OK,
|
1783
|
+
Otherwise it
|
1784
|
+
returns error code and error-handler is invoked.<br>
|
1785
|
+
</div>
|
1786
|
+
<br>
|
1787
|
+
<br>
|
1788
|
+
<h3><a name="HPDF_Page_SetRGBStroke_"></a>HPDF_Page_SetRGBStroke<br>
|
1789
|
+
</h3>
|
1790
|
+
<div class="bodytext1">
|
1791
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1792
|
+
"apdf.h"<br>
|
1793
|
+
<br>
|
1794
|
+
HPDF_STATUS<br>
|
1795
|
+
HPDF_Page_SetRGBStroke (HPDF_Page page,<br>
|
1796
|
+
|
1797
|
+
HPDF_REAL r,<br>
|
1798
|
+
|
1799
|
+
HPDF_REAL g,<br>
|
1800
|
+
|
1801
|
+
HPDF_REAL b)<br>
|
1802
|
+
<br>
|
1803
|
+
</div>
|
1804
|
+
<h4>Description<br>
|
1805
|
+
</h4>
|
1806
|
+
HPDF_Page_SetRGBStroke() sets the stroking color.<br>
|
1807
|
+
An application can invoke HPDF_Page_SetRGBStroke() when the
|
1808
|
+
graphics
|
1809
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1810
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
1811
|
+
<br>
|
1812
|
+
<h4>Parameter</h4>
|
1813
|
+
<span style="font-weight: bold;">page</span>
|
1814
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1815
|
+
<br>
|
1816
|
+
</div>
|
1817
|
+
<span style="font-weight: bold;">r, g, b</span><br>
|
1818
|
+
<div class="bodytext5">The level of each color element. They must be
|
1819
|
+
between 0 and 1. (See "<a href="graphics.html#Colors">Colors</a>")
|
1820
|
+
</div>
|
1821
|
+
<br>
|
1822
|
+
<h4>Returns</h4>
|
1823
|
+
When HPDF_Page_SetRGBStroke() succeed, it returns HPDF_OK,
|
1824
|
+
Otherwise it
|
1825
|
+
returns error code and error-handler is invoked.<br>
|
1826
|
+
</div>
|
1827
|
+
<br>
|
1828
|
+
<br>
|
1829
|
+
<h3><a name="HPDF_Page_SetCMYKFill_"></a>HPDF_Page_SetCMYKFill<br>
|
1830
|
+
</h3>
|
1831
|
+
<div class="bodytext1">
|
1832
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1833
|
+
"apdf.h"<br>
|
1834
|
+
<br>
|
1835
|
+
HPDF_STATUS<br>
|
1836
|
+
HPDF_Page_SetCMYKFill (HPDF_Page page,<br>
|
1837
|
+
|
1838
|
+
HPDF_REAL c,<br>
|
1839
|
+
|
1840
|
+
HPDF_REAL m,<br>
|
1841
|
+
|
1842
|
+
HPDF_REAL y,<br>
|
1843
|
+
|
1844
|
+
HPDF_REAL k)<br>
|
1845
|
+
<br>
|
1846
|
+
</div>
|
1847
|
+
<h4>Description<br>
|
1848
|
+
</h4>
|
1849
|
+
HPDF_Page_SetCMYKFill() sets the filling color.<br>
|
1850
|
+
An application can invoke HPDF_Page_SetCMYKFill() when the
|
1851
|
+
graphics
|
1852
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1853
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
1854
|
+
<br>
|
1855
|
+
<h4>Parameter</h4>
|
1856
|
+
<span style="font-weight: bold;">page</span>
|
1857
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1858
|
+
<br>
|
1859
|
+
</div>
|
1860
|
+
<span style="font-weight: bold;">c, m, y, k</span><br>
|
1861
|
+
<div class="bodytext5">The level of each color element. They must be
|
1862
|
+
between 0 and 1.<br>
|
1863
|
+
</div>
|
1864
|
+
<br>
|
1865
|
+
<h4>Returns</h4>
|
1866
|
+
When HPDF_Page_SetCMYKFill() succeed, it returns HPDF_OK,
|
1867
|
+
Otherwise it
|
1868
|
+
returns error code and error-handler is invoked.<br>
|
1869
|
+
</div>
|
1870
|
+
<br>
|
1871
|
+
<br>
|
1872
|
+
<h3><a name="HPDF_Page_SetCMYKStroke_"></a>HPDF_Page_SetCMYKStroke<br>
|
1873
|
+
</h3>
|
1874
|
+
<div class="bodytext1">
|
1875
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1876
|
+
"apdf.h"<br>
|
1877
|
+
<br>
|
1878
|
+
HPDF_STATUS<br>
|
1879
|
+
HPDF_Page_SetCMYKStroke (HPDF_Page page,<br>
|
1880
|
+
|
1881
|
+
HPDF_REAL c,<br>
|
1882
|
+
|
1883
|
+
HPDF_REAL m,<br>
|
1884
|
+
|
1885
|
+
HPDF_REAL y,<br>
|
1886
|
+
|
1887
|
+
HPDF_REAL k)<br>
|
1888
|
+
<br>
|
1889
|
+
</div>
|
1890
|
+
<h4>Description<br>
|
1891
|
+
</h4>
|
1892
|
+
HPDF_Page_SetCMYKStroke() sets the stroking color.<br>
|
1893
|
+
An application can invoke HPDF_Page_SetCMYKStroke() when the
|
1894
|
+
graphics
|
1895
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1896
|
+
HPDF_GMODE_TEXT_OBJECT.<br>
|
1897
|
+
<br>
|
1898
|
+
<h4>Parameter</h4>
|
1899
|
+
<span style="font-weight: bold;">page</span>
|
1900
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1901
|
+
<br>
|
1902
|
+
</div>
|
1903
|
+
<span style="font-weight: bold;">c, m, y, k</span><br>
|
1904
|
+
<div class="bodytext5">The level of each color element. They must be
|
1905
|
+
between 0 and 1.<br>
|
1906
|
+
</div>
|
1907
|
+
<br>
|
1908
|
+
<h4>Returns</h4>
|
1909
|
+
When HPDF_Page_SetCMYKStroke() succeed, it returns HPDF_OK,
|
1910
|
+
Otherwise it
|
1911
|
+
returns error code and error-handler is invoked.<br>
|
1912
|
+
<br>
|
1913
|
+
</div>
|
1914
|
+
<br>
|
1915
|
+
<h3><a name="HPDF_Page_ExecuteXObject_"></a>HPDF_Page_ExecuteXObject<br>
|
1916
|
+
</h3>
|
1917
|
+
<br>
|
1918
|
+
<br>
|
1919
|
+
<h3><a name="HPDF_Page_DrawImage_"></a>HPDF_Page_DrawImage<br>
|
1920
|
+
</h3>
|
1921
|
+
<div class="bodytext1">
|
1922
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1923
|
+
"apdf.h"<br>
|
1924
|
+
<br>
|
1925
|
+
HPDF_STATUS<br>
|
1926
|
+
HPDF_Page_DrawImage (HPDF_Page page,<br>
|
1927
|
+
|
1928
|
+
HPDF_Image image,<br>
|
1929
|
+
|
1930
|
+
HPDF_REAL x,<br>
|
1931
|
+
|
1932
|
+
HPDF_REAL y,<br>
|
1933
|
+
|
1934
|
+
HPDF_REAL width,<br>
|
1935
|
+
|
1936
|
+
HPDF_REAL height)<br>
|
1937
|
+
<br>
|
1938
|
+
</div>
|
1939
|
+
<h4>Description<br>
|
1940
|
+
</h4>
|
1941
|
+
HPDF_Page_DrawImage() shows an image in one operation.<br>
|
1942
|
+
An application can invoke HPDF_Page_DrawImage() when the
|
1943
|
+
graphics
|
1944
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION.<br>
|
1945
|
+
<br>
|
1946
|
+
<h4>Parameter</h4>
|
1947
|
+
<span style="font-weight: bold;">page</span>
|
1948
|
+
<div class="bodytext5">The handle of a page object.<br>
|
1949
|
+
<br>
|
1950
|
+
</div>
|
1951
|
+
<span style="font-weight: bold;">image
|
1952
|
+
</span>
|
1953
|
+
<div class="bodytext5">The handle of an image object.<br>
|
1954
|
+
</div>
|
1955
|
+
<span style="font-weight: bold;">x, y</span>
|
1956
|
+
<div class="bodytext5">The lower-left point of the region where image
|
1957
|
+
is displayed.<br>
|
1958
|
+
<br>
|
1959
|
+
</div>
|
1960
|
+
<span style="font-weight: bold;">width</span>
|
1961
|
+
<div class="bodytext5">The width of the region where image is displayed.<br>
|
1962
|
+
<br>
|
1963
|
+
</div>
|
1964
|
+
<span style="font-weight: bold;">height
|
1965
|
+
</span>
|
1966
|
+
<div class="bodytext5">The width of the region where image is
|
1967
|
+
displayed.
|
1968
|
+
</div>
|
1969
|
+
<br>
|
1970
|
+
<h4>Returns</h4>
|
1971
|
+
When HPDF_Page_DrawImage() succeed, it returns HPDF_OK,
|
1972
|
+
Otherwise it
|
1973
|
+
returns error code and error-handler is invoked.<br>
|
1974
|
+
<br>
|
1975
|
+
</div>
|
1976
|
+
<br>
|
1977
|
+
<h3><a name="HPDF_Page_Circle_"></a>HPDF_Page_Circle<br>
|
1978
|
+
</h3>
|
1979
|
+
<div class="bodytext1">
|
1980
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
1981
|
+
"apdf.h"<br>
|
1982
|
+
<br>
|
1983
|
+
HPDF_STATUS<br>
|
1984
|
+
HPDF_Page_Circle (HPDF_Page page,<br>
|
1985
|
+
|
1986
|
+
HPDF_REAL x,<br>
|
1987
|
+
|
1988
|
+
HPDF_REAL y,<br>
|
1989
|
+
|
1990
|
+
HPDF_REAL ray);<br>
|
1991
|
+
<br>
|
1992
|
+
</div>
|
1993
|
+
<h4>Description<br>
|
1994
|
+
</h4>
|
1995
|
+
HPDF_Page_Circle() appends a circle to the current path.<br>
|
1996
|
+
An application can invoke HPDF_Page_Circle() when the
|
1997
|
+
graphics
|
1998
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
1999
|
+
HPDF_GMODE_PATH_OBJECT.<br>
|
2000
|
+
<br>
|
2001
|
+
<h4>Parameter</h4>
|
2002
|
+
<span style="font-weight: bold;">page</span>
|
2003
|
+
<div class="bodytext5">The handle of a page object.<br>
|
2004
|
+
<br>
|
2005
|
+
</div>
|
2006
|
+
<span style="font-weight: bold;">x, y</span><br>
|
2007
|
+
<div class="bodytext5">The center point of the circle.<br>
|
2008
|
+
<br>
|
2009
|
+
</div>
|
2010
|
+
<span style="font-weight: bold;">ray</span><br>
|
2011
|
+
<div class="bodytext5">The ray of the circle.<br>
|
2012
|
+
</div>
|
2013
|
+
<br>
|
2014
|
+
<h4>Returns</h4>
|
2015
|
+
When HPDF_Page_Circle() succeed, it returns HPDF_OK,
|
2016
|
+
Otherwise it
|
2017
|
+
returns error code and error-handler is invoked.<br>
|
2018
|
+
<br>
|
2019
|
+
</div>
|
2020
|
+
<br>
|
2021
|
+
<h3><a name="HPDF_Page_Arc_"></a>HPDF_Page_Arc<br>
|
2022
|
+
</h3>
|
2023
|
+
<div class="bodytext1">
|
2024
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
2025
|
+
"apdf.h"<br>
|
2026
|
+
<br>
|
2027
|
+
HPDF_STATUS<br>
|
2028
|
+
HPDF_Page_Arc (HPDF_Page page,<br>
|
2029
|
+
|
2030
|
+
HPDF_REAL x,<br>
|
2031
|
+
|
2032
|
+
HPDF_REAL y,<br>
|
2033
|
+
|
2034
|
+
HPDF_REAL ray,<br>
|
2035
|
+
|
2036
|
+
HPDF_REAL ang1,<br>
|
2037
|
+
|
2038
|
+
HPDF_REAL ang2);<br>
|
2039
|
+
<br>
|
2040
|
+
</div>
|
2041
|
+
<h4>Description<br>
|
2042
|
+
</h4>
|
2043
|
+
HPDF_Page_Arc() appends a circle to the current path.<br>
|
2044
|
+
An application can invoke HPDF_PageArc() when the
|
2045
|
+
graphics
|
2046
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
2047
|
+
HPDF_GMODE_PATH_OBJECT.<br>
|
2048
|
+
<br>
|
2049
|
+
<h4>Parameter</h4>
|
2050
|
+
<span style="font-weight: bold;">page</span>
|
2051
|
+
<div class="bodytext5">The handle of a page object.<br>
|
2052
|
+
<br>
|
2053
|
+
</div>
|
2054
|
+
<span style="font-weight: bold;">x, y</span><br>
|
2055
|
+
<div class="bodytext5">The center point of the circle.<br>
|
2056
|
+
<br>
|
2057
|
+
</div>
|
2058
|
+
<span style="font-weight: bold;">ray</span><br>
|
2059
|
+
<div class="bodytext5">The ray of the circle.<br>
|
2060
|
+
<br>
|
2061
|
+
</div>
|
2062
|
+
<span style="font-weight: bold;">ang1<br>
|
2063
|
+
</span>
|
2064
|
+
<div class="bodytext5">The angle of the begining of the arc.<br>
|
2065
|
+
<br>
|
2066
|
+
</div>
|
2067
|
+
<span style="font-weight: bold;">ang2<br>
|
2068
|
+
</span>
|
2069
|
+
<div class="bodytext5">The angle of the end of the arc. It must be
|
2070
|
+
greater than ang1.<br>
|
2071
|
+
</div>
|
2072
|
+
<br>
|
2073
|
+
<h4>Returns</h4>
|
2074
|
+
When HPDF_Page_Arc() succeed, it returns HPDF_OK,
|
2075
|
+
Otherwise it
|
2076
|
+
returns error code and error-handler is invoked.<br>
|
2077
|
+
<br>
|
2078
|
+
</div>
|
2079
|
+
<br>
|
2080
|
+
<h3>HPDF_Page_Ellipse<br>
|
2081
|
+
</h3>
|
2082
|
+
<div class="bodytext1">
|
2083
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
2084
|
+
"apdf.h"<br>
|
2085
|
+
<br>
|
2086
|
+
HPDF_STATUS<br>
|
2087
|
+
HPDF_Page_Ellipse (HPDF_Page page,<br>
|
2088
|
+
|
2089
|
+
|
2090
|
+
HPDF_REAL x,<br>
|
2091
|
+
|
2092
|
+
|
2093
|
+
HPDF_REAL y,<br>
|
2094
|
+
|
2095
|
+
|
2096
|
+
HPDF_REAL xray,<br>
|
2097
|
+
|
2098
|
+
HPDF_REAL yray);<br>
|
2099
|
+
<br>
|
2100
|
+
</div>
|
2101
|
+
<h4>Description<br>
|
2102
|
+
</h4>
|
2103
|
+
HPDF_Page_Ellipse() appends an ellipse to the current path.<br>
|
2104
|
+
An application can invoke HPDF_Page_Ellipse() when the
|
2105
|
+
graphics
|
2106
|
+
mode of the page is in HPDF_GMODE_PAGE_DESCRIPTION or
|
2107
|
+
HPDF_GMODE_PATH_OBJECT.<br>
|
2108
|
+
<br>
|
2109
|
+
<h4>Parameter</h4>
|
2110
|
+
<span style="font-weight: bold;">page</span>
|
2111
|
+
<div class="bodytext5">The handle of a page object.<br>
|
2112
|
+
<br>
|
2113
|
+
</div>
|
2114
|
+
<span style="font-weight: bold;">x, y</span><br>
|
2115
|
+
<div class="bodytext5">The center point of the circle.<br>
|
2116
|
+
<br>
|
2117
|
+
</div>
|
2118
|
+
<span style="font-weight: bold;">xray, yray</span><br>
|
2119
|
+
<div class="bodytext5">The radius in the x and y direction.<br>
|
2120
|
+
</div>
|
2121
|
+
<br>
|
2122
|
+
<h4>Returns</h4>
|
2123
|
+
When HPDF_Page_Ellipse() succeed, it returns HPDF_OK,
|
2124
|
+
Otherwise it
|
2125
|
+
returns error code and error-handler is invoked.<br>
|
2126
|
+
<br>
|
2127
|
+
</div>
|
2128
|
+
<br>
|
2129
|
+
<h3><a name="HPDF_Page_TextOut_"></a>HPDF_Page_TextOut<br>
|
2130
|
+
</h3>
|
2131
|
+
<div class="bodytext1">
|
2132
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
2133
|
+
"apdf.h"<br>
|
2134
|
+
<br>
|
2135
|
+
HPDF_STATUS<br>
|
2136
|
+
HPDF_Page_TextOut (HPDF_Page page,<br>
|
2137
|
+
|
2138
|
+
HPDF_REAL xpos,<br>
|
2139
|
+
|
2140
|
+
HPDF_REAL ypos,<br>
|
2141
|
+
|
2142
|
+
<span style="font-weight: bold;">const</span> char *text);<br>
|
2143
|
+
<br>
|
2144
|
+
</div>
|
2145
|
+
<h4>Description<br>
|
2146
|
+
</h4>
|
2147
|
+
HPDF_Page_TextOut() prints the text on the specified position.<br>
|
2148
|
+
An application can invoke HPDF_TextOut() when the
|
2149
|
+
graphics
|
2150
|
+
mode of the page is in HPDF_GMODE_TEXT_OBJECT.<br>
|
2151
|
+
<br>
|
2152
|
+
<h4>Parameter</h4>
|
2153
|
+
<span style="font-weight: bold;">page</span>
|
2154
|
+
<div class="bodytext5">The handle of a page object.<br>
|
2155
|
+
<br>
|
2156
|
+
</div>
|
2157
|
+
<span style="font-weight: bold;">xpos, ypos</span><br>
|
2158
|
+
<div class="bodytext5">The point position where the text is displayed.<br>
|
2159
|
+
<br>
|
2160
|
+
</div>
|
2161
|
+
<span style="font-weight: bold;">text</span><br>
|
2162
|
+
<div class="bodytext5">The text to show.<br>
|
2163
|
+
</div>
|
2164
|
+
<br>
|
2165
|
+
<h4>Returns</h4>
|
2166
|
+
When HPDF_Page_TextOut() succeed, it returns HPDF_OK,
|
2167
|
+
Otherwise it
|
2168
|
+
returns error code and error-handler is invoked.<br>
|
2169
|
+
<br>
|
2170
|
+
</div>
|
2171
|
+
<br>
|
2172
|
+
<h3><a name="HPDF_Page_TextRect_"></a>HPDF_Page_TextRect<br>
|
2173
|
+
</h3>
|
2174
|
+
<div class="bodytext1">
|
2175
|
+
<div class="bodycode2"><span style="font-weight: bold;">#include</span>
|
2176
|
+
"apdf.h"<br>
|
2177
|
+
<br>
|
2178
|
+
HPDF_Page_TextRect
|
2179
|
+
(HPDF_Page
|
2180
|
+
page,<br>
|
2181
|
+
|
2182
|
+
HPDF_REAL
|
2183
|
+
left,<br>
|
2184
|
+
|
2185
|
+
HPDF_REAL
|
2186
|
+
top,<br>
|
2187
|
+
|
2188
|
+
HPDF_REAL
|
2189
|
+
right,<br>
|
2190
|
+
|
2191
|
+
HPDF_REAL
|
2192
|
+
bottom,<br>
|
2193
|
+
|
2194
|
+
<span style="font-weight: bold;">const</span>
|
2195
|
+
char *text,<br>
|
2196
|
+
|
2197
|
+
HPDF_TextAlignment align,<br>
|
2198
|
+
|
2199
|
+
HPDF_UINT
|
2200
|
+
*len);<br>
|
2201
|
+
<br>
|
2202
|
+
</div>
|
2203
|
+
<h4>Description<br>
|
2204
|
+
</h4>
|
2205
|
+
HPDF_Page_TextRext() TextRext() print the text inside the specified
|
2206
|
+
region. The characters which is not <br>
|
2207
|
+
An application can invoke HPDF_TextRect() when the
|
2208
|
+
graphics
|
2209
|
+
mode of the page is in HPDF_GMODE_TEXT_OBJECT.<br>
|
2210
|
+
<br>
|
2211
|
+
<h4>Parameter</h4>
|
2212
|
+
<span style="font-weight: bold;">page</span>
|
2213
|
+
<div class="bodytext5">The handle of a page object.<br>
|
2214
|
+
<br>
|
2215
|
+
</div>
|
2216
|
+
<span style="font-weight: bold;">left, top, right, bottom</span><br>
|
2217
|
+
<div class="bodytext5">Coordinates of corners of the region to output
|
2218
|
+
text.<br>
|
2219
|
+
<br>
|
2220
|
+
</div>
|
2221
|
+
<span style="font-weight: bold;">text</span><br>
|
2222
|
+
<div class="bodytext5">The text to show.<br>
|
2223
|
+
<br>
|
2224
|
+
</div>
|
2225
|
+
<span style="font-weight: bold;">align</span><br>
|
2226
|
+
<div class="bodytext5">The alignment of the text.<br>
|
2227
|
+
<table style="width: 100%; text-align: left;" border="1" cellpadding="1"
|
2228
|
+
cellspacing="1">
|
2229
|
+
<tbody>
|
2230
|
+
<tr>
|
2231
|
+
<td
|
2232
|
+
style="vertical-align: top; background-color: rgb(204, 204, 204);">VALUE<br>
|
2233
|
+
</td>
|
2234
|
+
<td
|
2235
|
+
style="vertical-align: top; background-color: rgb(204, 204, 204);">DESCRIPTION<br>
|
2236
|
+
</td>
|
2237
|
+
</tr>
|
2238
|
+
<tr>
|
2239
|
+
<td style="vertical-align: top;">HPDF_TALIGN_LEFT<br>
|
2240
|
+
</td>
|
2241
|
+
<td style="vertical-align: top;">The text is aligned to left.<br>
|
2242
|
+
</td>
|
2243
|
+
</tr>
|
2244
|
+
<tr>
|
2245
|
+
<td style="vertical-align: top;">HPDF_TALIGN_RIGHT<br>
|
2246
|
+
</td>
|
2247
|
+
<td style="vertical-align: top;">The text is aligned to right.<br>
|
2248
|
+
</td>
|
2249
|
+
</tr>
|
2250
|
+
<tr>
|
2251
|
+
<td style="vertical-align: top;">HPDF_TALIGN_CENTER<br>
|
2252
|
+
</td>
|
2253
|
+
<td style="vertical-align: top;">The text is aligned to center.<br>
|
2254
|
+
</td>
|
2255
|
+
</tr>
|
2256
|
+
<tr>
|
2257
|
+
<td style="vertical-align: top;">HPDF_TALIGN_JUSTIFY<br>
|
2258
|
+
</td>
|
2259
|
+
<td style="vertical-align: top;">Add spaces between the words to
|
2260
|
+
justify both left and right side.<br>
|
2261
|
+
</td>
|
2262
|
+
</tr>
|
2263
|
+
</tbody>
|
2264
|
+
</table>
|
2265
|
+
<br>
|
2266
|
+
</div>
|
2267
|
+
<span style="font-weight: bold;">len</span><br>
|
2268
|
+
<div class="bodytext5">If this value is not NULL, The number of
|
2269
|
+
characters which was printed in the area is returned.<br>
|
2270
|
+
<br>
|
2271
|
+
</div>
|
2272
|
+
<br>
|
2273
|
+
<h4>Returns</h4>
|
2274
|
+
When HPDF_Page_TextRect() succeed, it returns HPDF_OK,
|
2275
|
+
Otherwise it
|
2276
|
+
returns error code and error-handler is invoked.<br>
|
2277
|
+
</div>
|
2278
|
+
<br>
|
2279
|
+
<br>
|
2280
|
+
<br>
|
2281
|
+
<br>
|
2282
|
+
<br>
|
2283
|
+
<br>
|
2284
|
+
<br>
|
2285
|
+
<br>
|
2286
|
+
<br>
|
2287
|
+
<br>
|
2288
|
+
<br>
|
2289
|
+
<br>
|
2290
|
+
<br>
|
2291
|
+
<br>
|
2292
|
+
<br>
|
2293
|
+
<br>
|
2294
|
+
<br>
|
2295
|
+
<br>
|
2296
|
+
<br>
|
2297
|
+
<br>
|
2298
|
+
<br>
|
2299
|
+
<br>
|
2300
|
+
<br>
|
2301
|
+
<br>
|
2302
|
+
<br>
|
2303
|
+
<br>
|
2304
|
+
<br>
|
2305
|
+
<br>
|
2306
|
+
</div>
|
2307
|
+
</div>
|
2308
|
+
<div id="lcol">
|
2309
|
+
<div class="sidebar">
|
2310
|
+
<ul>
|
2311
|
+
</ul>
|
2312
|
+
<ul>
|
2313
|
+
<li><a href="#HPDF_Page_SetLineWidth_">HPDF_Page_SetLineWidth</a></li>
|
2314
|
+
<li><a href="#HPDF_Page_SetLineCap_">HPDF_Page_SetLineCap</a></li>
|
2315
|
+
<li><a href="#HPDF_Page_SetLineJoin_">HPDF_Page_SetLineJoin</a></li>
|
2316
|
+
<li><a href="#HPDF_Page_SetMiterLimit_">HPDF_Page_SetMiterLimit</a></li>
|
2317
|
+
<li><a href="#HPDF_Page_SetDash_">HPDF_Page_SetDash</a></li>
|
2318
|
+
<li><a href="#HPDF_Page_SetFlat_">HPDF_Page_</a></li>
|
2319
|
+
<li><a href="#HPDF_Page_SetExtGState">HPDF_Page_SetExtGState</a><br>
|
2320
|
+
</li>
|
2321
|
+
<li><a href="#HPDF_Page_GSave_">HPDF_Page_GSave</a></li>
|
2322
|
+
<li><a href="#HPDF_Page_GRestore_">HPDF_Page_GRestore</a></li>
|
2323
|
+
<li><a href="#HPDF_Page_Concat_">HPDF_Page_Concat</a></li>
|
2324
|
+
<li><a href="#HPDF_Page_MoveTo_">HPDF_Page_MoveTo</a></li>
|
2325
|
+
<li><a href="#HPDF_Page_LineTo_">HPDF_Page_LineTo</a></li>
|
2326
|
+
<li><a href="#HPDF_Page_CurveTo_">HPDF_Page_CurveTo</a></li>
|
2327
|
+
<li><a href="#HPDF_Page_CurveTo2_">HPDF_Page_CurveTo2</a></li>
|
2328
|
+
<li><a href="#HPDF_Page_CurveTo3_">HPDF_Page_CurveTo3</a></li>
|
2329
|
+
<li><a href="#HPDF_Page_ClosePath_">HPDF_Page_ClosePath</a></li>
|
2330
|
+
<li><a href="#HPDF_Page_Rectangle_">HPDF_Page_Rectangle</a></li>
|
2331
|
+
<li><a href="#HPDF_Page_Stroke_">HPDF_Page_Stroke</a></li>
|
2332
|
+
<li><a href="#HPDF_Page_ClosePathStroke_">HPDF_Page_ClosePathStroke</a></li>
|
2333
|
+
<li><a href="#HPDF_Page_Fill_">HPDF_Page_Fill</a></li>
|
2334
|
+
<li><a href="#HPDF_Page_Eofill_">HPDF_Page_Eofill</a></li>
|
2335
|
+
<li><a href="#HPDF_Page_FillStroke_">HPDF_Page_FillStroke</a></li>
|
2336
|
+
<li><a href="#HPDF_Page_EofillStroke_">HPDF_Page_EofillStroke</a></li>
|
2337
|
+
<li><a href="#HPDF_Page_ClosePathFillStroke_">HPDF_Page_ClosePathFillStroke</a></li>
|
2338
|
+
<li><a href="#HPDF_Page_ClosePathEofillStroke_">HPDF_Page_ClosePathEofillStroke</a></li>
|
2339
|
+
<li><a href="#HPDF_Page_EndPath_">HPDF_Page_EndPath</a></li>
|
2340
|
+
<li><a href="#HPDF_Page_Clip_">HPDF_Page_Clip</a></li>
|
2341
|
+
<li><a href="#HPDF_Page_Eoclip_">HPDF_Page_Eoclip</a></li>
|
2342
|
+
<li><a href="#HPDF_Page_BeginText_">HPDF_Page_BeginText</a></li>
|
2343
|
+
<li><a href="#HPDF_Page_EndText_">HPDF_Page_EndText</a></li>
|
2344
|
+
<li><a href="#HPDF_Page_SetCharSpace_">HPDF_Page_SetCharSpace</a></li>
|
2345
|
+
<li><a href="#HPDF_Page_SetWordSpace_">HPDF_Page_SetWordSpace</a></li>
|
2346
|
+
<li><a href="#HPDF_Page_SetHorizontalScalling_">HPDF_Page_SetHorizontalScalling</a></li>
|
2347
|
+
<li><a href="#HPDF_Page_SetTextLeading_">HPDF_Page_SetTextLeading</a></li>
|
2348
|
+
<li><a href="#HPDF_Page_SetFontAndSize_">HPDF_Page_SetFontAndSize</a></li>
|
2349
|
+
<li><a href="#HPDF_Page_SetTextRenderingMode_">HPDF_Page_SetTextRenderingMode</a></li>
|
2350
|
+
<li><a href="#HPDF_Page_SetTextRise_">HPDF_Page_SetTextRise</a></li>
|
2351
|
+
<li><a href="#HPDF_Page_MoveTextPos_">HPDF_Page_MoveTextPos</a></li>
|
2352
|
+
<li><a href="#HPDF_Page_MoveTextPos2_">HPDF_Page_MoveTextPos2</a></li>
|
2353
|
+
<li><a href="#HPDF_Page_SetTextMatrix_">HPDF_Page_SetTextMatrix</a></li>
|
2354
|
+
<li><a href="#HPDF_Page_MoveToNextLine_">HPDF_Page_MoveToNextLine</a></li>
|
2355
|
+
<li><a href="#HPDF_Page_ShowText_">HPDF_Page_ShowText</a></li>
|
2356
|
+
<li><a href="#HPDF_Page_ShowTextNextLine_">HPDF_Page_ShowTextNextLine</a></li>
|
2357
|
+
<li><a href="#HPDF_Page_ShowTextNextLineEx_">HPDF_Page_ShowTextNextLineEx</a></li>
|
2358
|
+
<li><a href="#HPDF_Page_SetGrayFill_">HPDF_Page_SetGrayFill</a></li>
|
2359
|
+
<li><a href="#HPDF_Page_SetGrayStroke_">HPDF_Page_SetGrayStroke</a></li>
|
2360
|
+
<li><a href="#HPDF_Page_SetRGBFill_">HPDF_Page_SetRGBFill</a></li>
|
2361
|
+
<li><a href="#HPDF_Page_SetRGBStroke_">HPDF_Page_SetRGBStroke</a></li>
|
2362
|
+
<li><a href="#HPDF_Page_SetCMYKFill_">HPDF_Page_SetCMYKFill</a></li>
|
2363
|
+
<li><a href="#HPDF_Page_SetCMYKStroke_">HPDF_Page_SetCMYKStroke</a></li>
|
2364
|
+
<li><a href="#HPDF_Page_ExecuteXObject_">HPDF_Page_ExecuteXObject</a></li>
|
2365
|
+
<li><a href="#HPDF_Page_DrawImage_">HPDF_Page_DrawImage</a></li>
|
2366
|
+
<li><a href="#HPDF_Page_Circle_">HPDF_Page_Circle</a></li>
|
2367
|
+
<li><a href="#HPDF_Page_Arc_">HPDF_Page_Arc</a></li>
|
2368
|
+
<li><a href="page_operator.html#HPDF_Page_Circle_">HPDF_Page_Ellipse</a></li>
|
2369
|
+
<li><a href="#HPDF_Page_TextOut_">HPDF_Page_TextOut</a></li>
|
2370
|
+
<li><a href="#HPDF_Page_TextRect_">HPDF_Page_TextRect</a></li>
|
2371
|
+
</ul>
|
2372
|
+
<br>
|
2373
|
+
<br>
|
2374
|
+
<br>
|
2375
|
+
<br>
|
2376
|
+
<br>
|
2377
|
+
<br>
|
2378
|
+
<br>
|
2379
|
+
<br>
|
2380
|
+
<br>
|
2381
|
+
<br>
|
2382
|
+
<br>
|
2383
|
+
<br>
|
2384
|
+
<br>
|
2385
|
+
<br>
|
2386
|
+
<br>
|
2387
|
+
<br>
|
2388
|
+
<br>
|
2389
|
+
<br>
|
2390
|
+
<br>
|
2391
|
+
<br>
|
2392
|
+
<br>
|
2393
|
+
<br>
|
2394
|
+
<br>
|
2395
|
+
<br>
|
2396
|
+
<br>
|
2397
|
+
<br>
|
2398
|
+
<br>
|
2399
|
+
<br>
|
2400
|
+
<br>
|
2401
|
+
<br>
|
2402
|
+
<br>
|
2403
|
+
<br>
|
2404
|
+
<br>
|
2405
|
+
<br>
|
2406
|
+
<br>
|
2407
|
+
<br>
|
2408
|
+
<br>
|
2409
|
+
<br>
|
2410
|
+
<br>
|
2411
|
+
<br>
|
2412
|
+
<br>
|
2413
|
+
<br>
|
2414
|
+
<br>
|
2415
|
+
<br>
|
2416
|
+
<br>
|
2417
|
+
<br>
|
2418
|
+
<br>
|
2419
|
+
<br>
|
2420
|
+
<br>
|
2421
|
+
<br>
|
2422
|
+
<br>
|
2423
|
+
<br>
|
2424
|
+
<br>
|
2425
|
+
<br>
|
2426
|
+
<br>
|
2427
|
+
<br>
|
2428
|
+
<br>
|
2429
|
+
<br>
|
2430
|
+
<br>
|
2431
|
+
<br>
|
2432
|
+
<br>
|
2433
|
+
<br>
|
2434
|
+
<br>
|
2435
|
+
<br>
|
2436
|
+
<br>
|
2437
|
+
<br>
|
2438
|
+
<br>
|
2439
|
+
<br>
|
2440
|
+
<br>
|
2441
|
+
<br>
|
2442
|
+
<br>
|
2443
|
+
<br>
|
2444
|
+
<br>
|
2445
|
+
<br>
|
2446
|
+
<br>
|
2447
|
+
<br>
|
2448
|
+
<br>
|
2449
|
+
<br>
|
2450
|
+
<br>
|
2451
|
+
<br>
|
2452
|
+
<br>
|
2453
|
+
<br>
|
2454
|
+
<br>
|
2455
|
+
<br>
|
2456
|
+
<br>
|
2457
|
+
<br>
|
2458
|
+
<br>
|
2459
|
+
<br>
|
2460
|
+
<br>
|
2461
|
+
<br>
|
2462
|
+
<br>
|
2463
|
+
<br>
|
2464
|
+
<br>
|
2465
|
+
<br>
|
2466
|
+
<br>
|
2467
|
+
<br>
|
2468
|
+
<br>
|
2469
|
+
<br>
|
2470
|
+
<br>
|
2471
|
+
<br>
|
2472
|
+
<br>
|
2473
|
+
<br>
|
2474
|
+
<br>
|
2475
|
+
<br>
|
2476
|
+
<br>
|
2477
|
+
<br>
|
2478
|
+
<br>
|
2479
|
+
<br>
|
2480
|
+
<br>
|
2481
|
+
<br>
|
2482
|
+
<br>
|
2483
|
+
<br>
|
2484
|
+
<br>
|
2485
|
+
<br>
|
2486
|
+
<br>
|
2487
|
+
<br>
|
2488
|
+
<br>
|
2489
|
+
<br>
|
2490
|
+
<br>
|
2491
|
+
<br>
|
2492
|
+
<br>
|
2493
|
+
<br>
|
2494
|
+
<br>
|
2495
|
+
<br>
|
2496
|
+
<br>
|
2497
|
+
<br>
|
2498
|
+
<br>
|
2499
|
+
<br>
|
2500
|
+
<br>
|
2501
|
+
<br>
|
2502
|
+
<br>
|
2503
|
+
<br>
|
2504
|
+
<br>
|
2505
|
+
<br>
|
2506
|
+
<br>
|
2507
|
+
<br>
|
2508
|
+
<br>
|
2509
|
+
<br>
|
2510
|
+
<br>
|
2511
|
+
<br>
|
2512
|
+
<br>
|
2513
|
+
<br>
|
2514
|
+
<br>
|
2515
|
+
<br>
|
2516
|
+
<br>
|
2517
|
+
<br>
|
2518
|
+
<br>
|
2519
|
+
<br>
|
2520
|
+
<br>
|
2521
|
+
<br>
|
2522
|
+
<br>
|
2523
|
+
<br>
|
2524
|
+
<br>
|
2525
|
+
<br>
|
2526
|
+
<br>
|
2527
|
+
<br>
|
2528
|
+
<br>
|
2529
|
+
<br>
|
2530
|
+
<br>
|
2531
|
+
<br>
|
2532
|
+
<br>
|
2533
|
+
<br>
|
2534
|
+
<br>
|
2535
|
+
<br>
|
2536
|
+
<br>
|
2537
|
+
<br>
|
2538
|
+
<br>
|
2539
|
+
<br>
|
2540
|
+
<br>
|
2541
|
+
<br>
|
2542
|
+
<br>
|
2543
|
+
<br>
|
2544
|
+
<br>
|
2545
|
+
<br>
|
2546
|
+
<br>
|
2547
|
+
<br>
|
2548
|
+
<br>
|
2549
|
+
<br>
|
2550
|
+
<br>
|
2551
|
+
<br>
|
2552
|
+
<br>
|
2553
|
+
<br>
|
2554
|
+
<br>
|
2555
|
+
<br>
|
2556
|
+
<br>
|
2557
|
+
<br>
|
2558
|
+
<br>
|
2559
|
+
<br>
|
2560
|
+
<br>
|
2561
|
+
<br>
|
2562
|
+
<br>
|
2563
|
+
<br>
|
2564
|
+
<br>
|
2565
|
+
<br>
|
2566
|
+
<br>
|
2567
|
+
<br>
|
2568
|
+
<br>
|
2569
|
+
<br>
|
2570
|
+
<br>
|
2571
|
+
<br>
|
2572
|
+
<br>
|
2573
|
+
<br>
|
2574
|
+
<br>
|
2575
|
+
<br>
|
2576
|
+
<br>
|
2577
|
+
<br>
|
2578
|
+
<br>
|
2579
|
+
<br>
|
2580
|
+
<br>
|
2581
|
+
<br>
|
2582
|
+
<br>
|
2583
|
+
<br>
|
2584
|
+
<br>
|
2585
|
+
<br>
|
2586
|
+
<br>
|
2587
|
+
<br>
|
2588
|
+
<br>
|
2589
|
+
<br>
|
2590
|
+
<br>
|
2591
|
+
<br>
|
2592
|
+
<br>
|
2593
|
+
<br>
|
2594
|
+
<br>
|
2595
|
+
<br>
|
2596
|
+
<br>
|
2597
|
+
<br>
|
2598
|
+
<br>
|
2599
|
+
<br>
|
2600
|
+
<br>
|
2601
|
+
<br>
|
2602
|
+
<br>
|
2603
|
+
<br>
|
2604
|
+
<br>
|
2605
|
+
<br>
|
2606
|
+
<br>
|
2607
|
+
<br>
|
2608
|
+
<br>
|
2609
|
+
<br>
|
2610
|
+
<br>
|
2611
|
+
<br>
|
2612
|
+
<br>
|
2613
|
+
<br>
|
2614
|
+
<br>
|
2615
|
+
<br>
|
2616
|
+
<br>
|
2617
|
+
<br>
|
2618
|
+
<br>
|
2619
|
+
<br>
|
2620
|
+
<br>
|
2621
|
+
<br>
|
2622
|
+
<br>
|
2623
|
+
</div>
|
2624
|
+
</div>
|
2625
|
+
<br>
|
2626
|
+
<br>
|
2627
|
+
<br>
|
2628
|
+
<br>
|
2629
|
+
<br>
|
2630
|
+
<br>
|
2631
|
+
<br>
|
2632
|
+
<br>
|
2633
|
+
<br>
|
2634
|
+
<br>
|
2635
|
+
<br>
|
2636
|
+
<br>
|
2637
|
+
<br>
|
2638
|
+
</div>
|
2639
|
+
</body>
|
2640
|
+
</html>
|