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
data/docs/api.css
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
BODY {
|
2
|
+
PADDING-RIGHT: 0px; PADDING-LEFT: 0px; BACKGROUND: #ffffff; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; FONT-FAMILY: Times, serif
|
3
|
+
}
|
4
|
+
#barcontainer {
|
5
|
+
PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-TOP: 2px;
|
6
|
+
}
|
7
|
+
#headcontainer {
|
8
|
+
PADDING-RIGHT: 2px; PADDING-LEFT: 2px; PADDING-TOP: 2px;
|
9
|
+
}
|
10
|
+
.head {
|
11
|
+
BORDER-RIGHT: #444488 1px solid; PADDING-RIGHT: 0px; BORDER-TOP: #444488 1px solid; PADDING-LEFT: 2px; MARGIN-BOTTOM: 0px; PADDING-BOTTOM: 0px; BORDER-LEFT: #444488 1px solid; PADDING-TOP: 4px; BORDER-BOTTOM: #444488 1px solid; BACKGROUND-COLOR: #D8E6F0
|
12
|
+
}
|
13
|
+
#sidebar {
|
14
|
+
PADDING-TOP: 0px; FONT-FAMILY: Arial, Helvetica, sans-serif
|
15
|
+
}
|
16
|
+
#container {
|
17
|
+
WIDTH: 100%; POSITION: relative
|
18
|
+
}
|
19
|
+
#ccol {
|
20
|
+
MIN-HEIGHT: 750px; POSITION: relative
|
21
|
+
}
|
22
|
+
#lcol {
|
23
|
+
PADDING-RIGHT: 0px; MARGIN-TOP: 2px; PADDING-LEFT: 2px; LEFT: 0px; PADDING-BOTTOM: 0px; WIDTH: 250px; PADDING-TOP: 0px; POSITION: absolute; TOP: 0px;
|
24
|
+
}
|
25
|
+
#mainpage {
|
26
|
+
PADDING-RIGHT: 5px; MARGIN-TOP: 2px; PADDING-LEFT: 5px; PADDING-BOTTOM: 5px; MARGIN-LEFT: 260px; MARGIN-RIGHT: 10px; PADDING-TOP: 5px; POSITION: relative
|
27
|
+
}
|
28
|
+
H1 {
|
29
|
+
FONT-WEIGHT: bold; FONT-FAMILY: "Trebuchet MS", Helvetica, Arial, sans-serif
|
30
|
+
}
|
31
|
+
H2 {
|
32
|
+
FONT-WEIGHT: bold; FONT-FAMILY: Arial, Helvetica, sans-serif
|
33
|
+
}
|
34
|
+
H3 {
|
35
|
+
FONT-WEIGHT: bold; FONT-FAMILY: Arial, Helvetica, sans-serif
|
36
|
+
}
|
37
|
+
IMG {
|
38
|
+
BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px
|
39
|
+
}
|
40
|
+
A:link {
|
41
|
+
COLOR: #000066; BACKGROUND-COLOR: transparent
|
42
|
+
}
|
43
|
+
A:active {
|
44
|
+
FONT-WEIGHT: bold; COLOR: #000033; BACKGROUND-COLOR: transparent
|
45
|
+
}
|
46
|
+
A:visited {
|
47
|
+
COLOR: #555555; BACKGROUND-COLOR: transparent
|
48
|
+
}
|
49
|
+
#mainpage H2 {
|
50
|
+
CLEAR: both; MARGIN-TOP: 0px; FONT-WEIGHT: bold; FONT-SIZE: 1.2em; MARGIN-BOTTOM: 0px; BORDER-BOTTOM: #444488 1px solid; FONT-FAMILY: Helvetica, Arial, sans-serif
|
51
|
+
}
|
52
|
+
#mainpage H3 {
|
53
|
+
CLEAR: both; BACKGROUND-COLOR: #D8E6F0; FONT-SIZE: 1em; MARGIN: 15px 5px 5px; PADDING-LEFT: 5px; FONT-FAMILY: Times, serif
|
54
|
+
}
|
55
|
+
#mainpage H4 {
|
56
|
+
FONT-SIZE: 1.0em; MARGIN-LEFT: -5px; MARGIN-BOTTOM: 5px; PADDING-LEFT: 5px; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #E6E6E6;
|
57
|
+
}
|
58
|
+
#mainpage H5 {
|
59
|
+
FONT-SIZE: 1.0em; MARGIN-BOTTOM: 5px; PADDING-LEFT: 5px; FONT-FAMILY: Arial, Helvetica, sans-serif
|
60
|
+
}
|
61
|
+
.bodytext1 {
|
62
|
+
FONT-SIZE: 0.8em; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 15px; FONT-FAMILY: Arial, Helvetica, sans-serif
|
63
|
+
}
|
64
|
+
.bodytext1 LI {
|
65
|
+
MARGIN-LEFT: -15px;
|
66
|
+
}
|
67
|
+
.bodytext2 LI {
|
68
|
+
MARGIN-LEFT: -10px;
|
69
|
+
}
|
70
|
+
.bodytext2 {
|
71
|
+
FONT-SIZE: 0.8em; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 15px; PADDING-TOP: 5px; PADDING-BOTTOM: 5px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; FONT-STYLE: italic; FONT-FAMILY: Times, serif; BACKGROUND-COLOR: #FFFFCC
|
72
|
+
}
|
73
|
+
.bodytext3 {
|
74
|
+
FONT-SIZE: 0.8em; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 30px; FONT-FAMILY: Arial, Helvetica, sans-serif
|
75
|
+
}
|
76
|
+
.bodytext4 {
|
77
|
+
FONT-SIZE: 0.8em; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 15px; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #FFFFCC
|
78
|
+
}
|
79
|
+
.bodytext5 {
|
80
|
+
FONT-SIZE: 1em; MARGIN-LEFT: 15px;
|
81
|
+
}
|
82
|
+
.bodycode {
|
83
|
+
FONT-SIZE: 1em; MARGIN-BOTTOM: 0px; PADDING-LEFT: 10px; PADDING-TOP: 5px; PADDING-BOTTOM: 5px; FONT-FAMILY: courier, monospace; BACKGROUND-COLOR: #EEEEEE
|
84
|
+
}
|
85
|
+
.bodycode2 {
|
86
|
+
FONT-SIZE: 1em; MARGIN-BOTTOM: 0px; PADDING-LEFT: 10px; PADDING-TOP: 5px; PADDING-BOTTOM: 5px; FONT-FAMILY: courier, monospace
|
87
|
+
}
|
88
|
+
.bodynote {
|
89
|
+
FONT-SIZE: 1em; MARGIN-BOTTOM: 0px; PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 5px; PADDING-BOTTOM: 5px; FONT-FAMILY: Times, serif; FONT-STYLE: italic; BACKGROUND-COLOR: #FFFFCC
|
90
|
+
}
|
91
|
+
|
92
|
+
.buildbar {
|
93
|
+
BORDER-RIGHT: #444488 1px solid; BORDER-TOP: #444488 1px solid; BORDER-BOTTOM: #444488 1px solid; BORDER-LEFT: #444488 1px solid; PADDING-RIGHT: 3px; PADDING-LEFT: 5px; FONT-SIZE: 0.8em; PADDING-BOTTOM: 5px; MARGIN: 0px; VERTICAL-ALIGN: center; PADDING-TOP: 5px; FONT-WEIGHT: bold; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #D8E6F0
|
94
|
+
}
|
95
|
+
#title {
|
96
|
+
WIDTH: 100%
|
97
|
+
}
|
98
|
+
#header {
|
99
|
+
PADDING-LEFT: 2px; BACKGROUND-IMAGE: url(/image/new/tile_gif.gif)
|
100
|
+
}
|
101
|
+
.sidebar {
|
102
|
+
BORDER-RIGHT: #444488 1px solid; PADDING-RIGHT: 5px; BORDER-TOP: #444488 1px solid; PADDING-LEFT: 5px; PADDING-TOP: 0px; FONT-SIZE: 0.8em; MARGIN-BOTTOM: 2em; MARGIN-TOP: 0px; PADDING-BOTTOM: 5px; BORDER-LEFT: #444488 1px solid; BORDER-BOTTOM: #444488 1px solid; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #D8E6F0
|
103
|
+
}
|
104
|
+
.sidebar UL {
|
105
|
+
MARGIN-TOP: 0px; PADDING-LEFT: 0px; MARGIN-LEFT: 8px; LIST-STYLE-TYPE: none
|
106
|
+
}
|
107
|
+
.sidebar LI {
|
108
|
+
FONT-WEIGHT: bold; MARGIN-BOTTOM: 0.5em
|
109
|
+
}
|
110
|
+
.sidebar H2 {
|
111
|
+
MARGIN-TOP: 0px; FONT-WEIGHT: bold; FONT-SIZE: 1.44em; MARGIN-BOTTOM: 0.5em; BORDER-BOTTOM: #444488 1px solid; FONT-FAMILY: Helvetica, Arial, sans-serif
|
112
|
+
}
|
113
|
+
.sidebar H3 {
|
114
|
+
MARGIN-TOP: 0px; FONT-WEIGHT: bold; FONT-SIZE: 1.0em; MARGIN-BOTTOM: 0.5em
|
115
|
+
}
|
@@ -0,0 +1,112 @@
|
|
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="default.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>API Reference<br>
|
28
|
+
</h2>
|
29
|
+
<ol style="font-weight: bold; font-family: helvetica,arial,sans-serif;">
|
30
|
+
<li>
|
31
|
+
<h5><a href="document_handling.html">Document Handling</a><br>
|
32
|
+
</h5>
|
33
|
+
</li>
|
34
|
+
<li>
|
35
|
+
<h5><a href="page_handling.html">Page Handling</a><br>
|
36
|
+
</h5>
|
37
|
+
</li>
|
38
|
+
<li>
|
39
|
+
<h5><a href="page_operator.html">Graphics</a><br>
|
40
|
+
</h5>
|
41
|
+
</li>
|
42
|
+
<li>
|
43
|
+
<h5><a href="font_handling.html">Font Handling</a><br>
|
44
|
+
</h5>
|
45
|
+
</li>
|
46
|
+
<li>
|
47
|
+
<h5><a href="encoder_handling.html">Encoding</a><br>
|
48
|
+
</h5>
|
49
|
+
</li>
|
50
|
+
<li>
|
51
|
+
<h5><a href="annotation_handling.html">Annotation</a><br>
|
52
|
+
</h5>
|
53
|
+
</li>
|
54
|
+
<li>
|
55
|
+
<h5><a href="outline_handling.html">Outline</a><br>
|
56
|
+
</h5>
|
57
|
+
</li>
|
58
|
+
<li>
|
59
|
+
<h5><a href="destination_handling.html">Destination</a><br>
|
60
|
+
</h5>
|
61
|
+
</li>
|
62
|
+
<li>
|
63
|
+
<h5><a href="image_handling.html">Image</a></h5>
|
64
|
+
</li>
|
65
|
+
<li>
|
66
|
+
<h5><a href="ext_gstate.html">ExtGState</a><br>
|
67
|
+
</h5>
|
68
|
+
</li>
|
69
|
+
</ol>
|
70
|
+
<br>
|
71
|
+
<br>
|
72
|
+
</div>
|
73
|
+
</div>
|
74
|
+
<div id="lcol">
|
75
|
+
<div class="sidebar"><br>
|
76
|
+
<ul>
|
77
|
+
<li><a href="document_handling.html">Document Handling</a><br>
|
78
|
+
</li>
|
79
|
+
<li><a href="page_handling.html"> Page Handling</a><br>
|
80
|
+
</li>
|
81
|
+
<li><a href="page_operator.html">Graphics</a><br>
|
82
|
+
</li>
|
83
|
+
<li><a href="font_handling.html">Font Handling</a><br>
|
84
|
+
</li>
|
85
|
+
<li><a href="encoder_handling.html">Encoding</a><br>
|
86
|
+
</li>
|
87
|
+
<li><a href="annotation_handling.html">Annotation</a><br>
|
88
|
+
</li>
|
89
|
+
<li><a href="outline_handling.html">Outline</a> </li>
|
90
|
+
<li><a href="destination_handling.html">Destination</a><br>
|
91
|
+
</li>
|
92
|
+
<li><a href="image_handling.html">Image</a></li>
|
93
|
+
<li><a href="ext_gstate.html">ExtGState</a><br>
|
94
|
+
</li>
|
95
|
+
</ul>
|
96
|
+
<br>
|
97
|
+
<br>
|
98
|
+
<br>
|
99
|
+
<br>
|
100
|
+
<br>
|
101
|
+
<br>
|
102
|
+
<br>
|
103
|
+
<br>
|
104
|
+
<br>
|
105
|
+
<small><small><small>LAST UPDATE 2006.08.25</small></small></small><br>
|
106
|
+
</div>
|
107
|
+
</div>
|
108
|
+
<br>
|
109
|
+
<br>
|
110
|
+
</div>
|
111
|
+
</body>
|
112
|
+
</html>
|
data/docs/bindings.html
ADDED
@@ -0,0 +1,242 @@
|
|
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="default.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>Bindings for other programing languages<br>
|
28
|
+
</h2>
|
29
|
+
<h3><a name="Introduction_"></a>Introduction<br>
|
30
|
+
</h3>
|
31
|
+
<div class="bodytext1">So far, libharu provides bindings for Ruby,
|
32
|
+
Delphi/Free Pascal and C#(Microsoft .NET platform). <br>
|
33
|
+
<br>
|
34
|
+
If you wrote bindings for other programing languages, please notice me.<br>
|
35
|
+
<br>
|
36
|
+
</div>
|
37
|
+
<h3><a name="Ruby_1.8_or_later_"></a>Ruby (1.8 or later)<br>
|
38
|
+
</h3>
|
39
|
+
<div class="bodytext1">On UNIX platform, exconf.rb is available. The
|
40
|
+
installation process is as follows.<br>
|
41
|
+
<br>
|
42
|
+
1. Build libharu as a static library. (See the chapter of "<a
|
43
|
+
href="install.html">Install</a>")<br>
|
44
|
+
<br>
|
45
|
+
<div class="bodynote">
|
46
|
+
NOTE:<br>
|
47
|
+
In linux platform, adding -fPIC option on cflags is recommended for the
|
48
|
+
performance improvement. </div>
|
49
|
+
<br>
|
50
|
+
2. Change directory to "libharu-X.X.X/if/ruby" and run extconf.rb.<br>
|
51
|
+
<br>
|
52
|
+
<div class="bodycode">ruby extconf.rb<br>
|
53
|
+
</div>
|
54
|
+
<br>
|
55
|
+
3. Then invoke "make install" command.<br>
|
56
|
+
<br>
|
57
|
+
<div class="bodycode">make install<br>
|
58
|
+
</div>
|
59
|
+
<br>
|
60
|
+
<br>
|
61
|
+
If you want to use "Ruby binding for Haru" on windows platforms,
|
62
|
+
download binary package (libharu_x_x_x_ruby_win32.zip) and copy hpdf.so
|
63
|
+
to "site_ruby/X.X/i386-msvcrt" directory manually. (This package is for
|
64
|
+
ruby1.8 built by MSVC)<br>
|
65
|
+
<br>
|
66
|
+
exconf_msvc.rb is also available. but it is not tested well.<br>
|
67
|
+
<br>
|
68
|
+
</div>
|
69
|
+
<h3><a name="DelphiFree_Pascal_"></a>Delphi/Free Pascal<br>
|
70
|
+
</h3>
|
71
|
+
<div class="bodytext1">The interface files for Delhp/Free Pascal are in
|
72
|
+
"if/delphi" directory.<br>
|
73
|
+
To use this interface, <a href="install.html">build Haru as a
|
74
|
+
shared-library</a> (DLL) or use
|
75
|
+
binary package for win32(libharu_x_x_x_dll_win32.zip).<br>
|
76
|
+
<br>
|
77
|
+
</div>
|
78
|
+
<br>
|
79
|
+
<h3><a name="C_"></a>C#<br>
|
80
|
+
</h3>
|
81
|
+
<div class="bodytext1">The interface files for C# are in
|
82
|
+
"if/c#" directory.<br>
|
83
|
+
To use this interface, <a href="install.html">build Haru as a
|
84
|
+
shared-library</a> (DLL) or use
|
85
|
+
binary package for win32(libharu_x_x_x_dll_win32.zip).<br>
|
86
|
+
<br>
|
87
|
+
There are some example programs in demo directory. The steps to run the
|
88
|
+
demonstration programs is as follows. <br>
|
89
|
+
<br>
|
90
|
+
1. Build libharu as a shared library and copy libhpdf.dll to
|
91
|
+
"if\c#\demo" directory.<br>
|
92
|
+
(Or expand binary package for
|
93
|
+
win32(libharu_x_x_x_dll_win32.zip) and copy libhpdf.dll to "if\c#\demo"
|
94
|
+
directory.)<br>
|
95
|
+
<br>
|
96
|
+
2. Compile and run demo programs. (Don't forget to compile hpdf.cs
|
97
|
+
together.)<br>
|
98
|
+
<br>
|
99
|
+
<div class="bodycode">csc /out:FontDemo.exe FontDemo.cs ..\hpdf.cs <br>
|
100
|
+
FontDemo.exe<br>
|
101
|
+
<br>
|
102
|
+
csc /out:ImageDemo.exe ImageDemo.cs ..\hpdf.cs <br>
|
103
|
+
ImageDemo.exe<br>
|
104
|
+
<br>
|
105
|
+
csc /out:JPFontDemo.exe JPFontDemo.cs ..\hpdf.cs<br>
|
106
|
+
JPFontDemo.exe<br>
|
107
|
+
<br>
|
108
|
+
csc /out:LineDemo.exe LineDemo.cs ..\hpdf.cs<br>
|
109
|
+
LineDemo.exe<br>
|
110
|
+
<br>
|
111
|
+
csc /out:OutlineDemo.exe OutlineDemo.cs ..\hpdf.cs<br>
|
112
|
+
OutlineDemo.exe<br>
|
113
|
+
<br>
|
114
|
+
csc /out:Encryption.exe Encryption.cs ..\hpdf.cs<br>
|
115
|
+
Encryption.exe<br>
|
116
|
+
<br>
|
117
|
+
csc /out:Permission.exe Permission.cs ..\hpdf.cs<br>
|
118
|
+
Permission.exe<br>
|
119
|
+
<br>
|
120
|
+
csc /out:RawImageDemo.exe RawImageDemo.cs ..\hpdf.cs<br>
|
121
|
+
RawImageDemo.exe<br>
|
122
|
+
<br>
|
123
|
+
csc /out:TextDemo.exe TextDemo.cs ..\hpdf.cs<br>
|
124
|
+
TextDemo.exe<br>
|
125
|
+
<br>
|
126
|
+
</div>
|
127
|
+
<br>
|
128
|
+
Because I do not know the Visual studio well, I do not explain usage on
|
129
|
+
Visual Studio here. <br>
|
130
|
+
<br>
|
131
|
+
<div class="bodynote">NOTE:<br>
|
132
|
+
libhpdf.dll is required to run the program which uses C# interface for
|
133
|
+
libharu.<br>
|
134
|
+
I tested this interface only in Microsoft .NET Framework SDK 1.1. <br>
|
135
|
+
</div>
|
136
|
+
<br>
|
137
|
+
</div>
|
138
|
+
<br>
|
139
|
+
<br>
|
140
|
+
<br>
|
141
|
+
<br>
|
142
|
+
<br>
|
143
|
+
<br>
|
144
|
+
<br>
|
145
|
+
<br>
|
146
|
+
<br>
|
147
|
+
<br>
|
148
|
+
<br>
|
149
|
+
<br>
|
150
|
+
<br>
|
151
|
+
</div>
|
152
|
+
</div>
|
153
|
+
<div id="lcol">
|
154
|
+
<div class="sidebar">
|
155
|
+
<ul>
|
156
|
+
</ul>
|
157
|
+
<ul>
|
158
|
+
<li> <a href="#Introduction_">Introduction</a> </li>
|
159
|
+
<li><a href="#Ruby_1.8_or_later_">Ruby</a><br>
|
160
|
+
</li>
|
161
|
+
<li><a href="#DelphiFree_Pascal_">Delphi/Free Pascal</a></li>
|
162
|
+
<li><a href="#C_">C#</a><br>
|
163
|
+
</li>
|
164
|
+
</ul>
|
165
|
+
<ul>
|
166
|
+
</ul>
|
167
|
+
<br>
|
168
|
+
<br>
|
169
|
+
<br>
|
170
|
+
<br>
|
171
|
+
<br>
|
172
|
+
<br>
|
173
|
+
<br>
|
174
|
+
<br>
|
175
|
+
<br>
|
176
|
+
<br>
|
177
|
+
<br>
|
178
|
+
<br>
|
179
|
+
<br>
|
180
|
+
<br>
|
181
|
+
<br>
|
182
|
+
<br>
|
183
|
+
<br>
|
184
|
+
<br>
|
185
|
+
<br>
|
186
|
+
<br>
|
187
|
+
<br>
|
188
|
+
<br>
|
189
|
+
<br>
|
190
|
+
<br>
|
191
|
+
<br>
|
192
|
+
<br>
|
193
|
+
<br>
|
194
|
+
<br>
|
195
|
+
<br>
|
196
|
+
<br>
|
197
|
+
<br>
|
198
|
+
<br>
|
199
|
+
<br>
|
200
|
+
<br>
|
201
|
+
<br>
|
202
|
+
<br>
|
203
|
+
<br>
|
204
|
+
<br>
|
205
|
+
<br>
|
206
|
+
<br>
|
207
|
+
<br>
|
208
|
+
<br>
|
209
|
+
<br>
|
210
|
+
<br>
|
211
|
+
<br>
|
212
|
+
<br>
|
213
|
+
<br>
|
214
|
+
<br>
|
215
|
+
<br>
|
216
|
+
<br>
|
217
|
+
<br>
|
218
|
+
<br>
|
219
|
+
<br>
|
220
|
+
<br>
|
221
|
+
<br>
|
222
|
+
<br>
|
223
|
+
<br>
|
224
|
+
<br>
|
225
|
+
<br>
|
226
|
+
<br>
|
227
|
+
<br>
|
228
|
+
</div>
|
229
|
+
</div>
|
230
|
+
<br>
|
231
|
+
<br>
|
232
|
+
<br>
|
233
|
+
<br>
|
234
|
+
<br>
|
235
|
+
<br>
|
236
|
+
<br>
|
237
|
+
<br>
|
238
|
+
<br>
|
239
|
+
<br>
|
240
|
+
</div>
|
241
|
+
</body>
|
242
|
+
</html>
|