~ubuntu-branches/ubuntu/precise/ipe/precise

« back to all changes in this revision

Viewing changes to doc/class_ipe_pdf_writer.html

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2005-02-24 22:09:16 UTC
  • mfrom: (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050224220916-9vxiiqjz066r5489
Tags: 6.0pre23-2
debian/control: Ipe should depend on exact version of libipe.
Closes: #296771.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
 
3
<title>Ipelib: IpePdfWriter class Reference</title>
 
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
 
5
</head><body>
 
6
<!-- Generated by Doxygen 1.3.6 -->
 
7
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a></div>
 
8
<h1>IpePdfWriter Class Reference</h1>Create PDF file.  
 
9
<a href="#_details">More...</a>
 
10
<p>
 
11
<a href="class_ipe_pdf_writer-members.html">List of all members.</a><h2>Public Member Functions</h2>
 
12
<ul>
 
13
<li><a class="el" href="class_ipe_pdf_writer.html#a0">IpePdfWriter</a> (<a class="el" href="class_ipe_tell_stream.html">IpeTellStream</a> &amp;stream, const <a class="el" href="class_ipe_document.html">IpeDocument</a> *doc, bool noShading, int compression)
 
14
<li><a class="el" href="class_ipe_pdf_writer.html#a1">~IpePdfWriter</a> ()
 
15
<li>void <a class="el" href="class_ipe_pdf_writer.html#a2">EmbedFonts</a> (const <a class="el" href="class_ipe_font_pool.html">IpeFontPool</a> *pool)
 
16
<li>void <a class="el" href="class_ipe_pdf_writer.html#a3">CreatePages</a> (bool lastView)
 
17
<li>void <a class="el" href="class_ipe_pdf_writer.html#a4">CreateBookmarks</a> ()
 
18
<li>void <a class="el" href="class_ipe_pdf_writer.html#a5">CreateXmlStream</a> (<a class="el" href="class_ipe_string.html">IpeString</a> xmldata, bool preCompressed)
 
19
<li>void <a class="el" href="class_ipe_pdf_writer.html#a6">CreateTrailer</a> (<a class="el" href="class_ipe_string.html">IpeString</a> creator)
 
20
</ul>
 
21
<hr><a name="_details"></a><h2>Detailed Description</h2>
 
22
Create PDF file. 
 
23
<p>
 
24
This class is responsible for the creation of a PDF file from the Ipe data. You have to create an IpePdfWriter first, providing a file that has been opened for (binary) writing and is empty. Then call <a class="el" href="class_ipe_pdf_writer.html#a2">EmbedFonts()</a> to embed the <a class="el" href="class_ipe_font_pool.html">IpeFontPool</a>, EmbedBitmaps() to embed the bitmaps, and <a class="el" href="class_ipe_pdf_writer.html#a3">CreatePages()</a> to embed the pages. <code>CreateXmlStream</code> embeds a stream with the XML representation of the Ipe document. Finally, call <code>CreateTrailer</code> to complete the PDF document, and close the file.<p>
 
25
Some reserved PDF object numbers:<p>
 
26
<ul>
 
27
<li>0: Must be left empty (a PDF restriction).</li><li>1: Ipe XML stream.</li><li>2: Parent of all pages objects. </li></ul>
 
28
 
 
29
<p>
 
30
<hr><h2>Constructor &amp; Destructor Documentation</h2>
 
31
<a class="anchor" name="a0" doxytag="IpePdfWriter::IpePdfWriter" ></a><p>
 
32
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
 
33
  <tr>
 
34
    <td class="mdRow">
 
35
      <table cellpadding="0" cellspacing="0" border="0">
 
36
        <tr>
 
37
          <td class="md" nowrap valign="top"> IpePdfWriter::IpePdfWriter </td>
 
38
          <td class="md" valign="top">(&nbsp;</td>
 
39
          <td class="md" nowrap valign="top"><a class="el" href="class_ipe_tell_stream.html">IpeTellStream</a> &amp;&nbsp;</td>
 
40
          <td class="mdname" nowrap> <em>stream</em>, </td>
 
41
        </tr>
 
42
        <tr>
 
43
          <td class="md" nowrap align="right"></td>
 
44
          <td></td>
 
45
          <td class="md" nowrap>const <a class="el" href="class_ipe_document.html">IpeDocument</a> *&nbsp;</td>
 
46
          <td class="mdname" nowrap> <em>doc</em>, </td>
 
47
        </tr>
 
48
        <tr>
 
49
          <td class="md" nowrap align="right"></td>
 
50
          <td></td>
 
51
          <td class="md" nowrap>bool&nbsp;</td>
 
52
          <td class="mdname" nowrap> <em>noShading</em>, </td>
 
53
        </tr>
 
54
        <tr>
 
55
          <td class="md" nowrap align="right"></td>
 
56
          <td></td>
 
57
          <td class="md" nowrap>int&nbsp;</td>
 
58
          <td class="mdname" nowrap> <em>compression</em></td>
 
59
        </tr>
 
60
        <tr>
 
61
          <td></td>
 
62
          <td class="md">)&nbsp;</td>
 
63
          <td class="md" colspan="2"></td>
 
64
        </tr>
 
65
 
 
66
      </table>
 
67
    </td>
 
68
  </tr>
 
69
</table>
 
70
<table cellspacing=5 cellpadding=0 border=0>
 
71
  <tr>
 
72
    <td>
 
73
      &nbsp;
 
74
    </td>
 
75
    <td>
 
76
 
 
77
<p>
 
78
Create PDF writer operating on this (open and empty) file. 
 
79
<p>
 
80
If <em>noShading</em> is <code>true</code>, no background shading will be applied to pages (if such a shading is defined in the document's style sheet.     </td>
 
81
  </tr>
 
82
</table>
 
83
<a class="anchor" name="a1" doxytag="IpePdfWriter::~IpePdfWriter" ></a><p>
 
84
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
 
85
  <tr>
 
86
    <td class="mdRow">
 
87
      <table cellpadding="0" cellspacing="0" border="0">
 
88
        <tr>
 
89
          <td class="md" nowrap valign="top"> IpePdfWriter::~<a class="el" href="class_ipe_pdf_writer.html">IpePdfWriter</a> </td>
 
90
          <td class="md" valign="top">(&nbsp;</td>
 
91
          <td class="mdname1" valign="top" nowrap>          </td>
 
92
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
93
          <td class="md" nowrap></td>
 
94
        </tr>
 
95
 
 
96
      </table>
 
97
    </td>
 
98
  </tr>
 
99
</table>
 
100
<table cellspacing=5 cellpadding=0 border=0>
 
101
  <tr>
 
102
    <td>
 
103
      &nbsp;
 
104
    </td>
 
105
    <td>
 
106
 
 
107
<p>
 
108
Destructor. 
 
109
<p>
 
110
    </td>
 
111
  </tr>
 
112
</table>
 
113
<hr><h2>Member Function Documentation</h2>
 
114
<a class="anchor" name="a2" doxytag="IpePdfWriter::EmbedFonts" ></a><p>
 
115
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
 
116
  <tr>
 
117
    <td class="mdRow">
 
118
      <table cellpadding="0" cellspacing="0" border="0">
 
119
        <tr>
 
120
          <td class="md" nowrap valign="top"> void IpePdfWriter::EmbedFonts </td>
 
121
          <td class="md" valign="top">(&nbsp;</td>
 
122
          <td class="md" nowrap valign="top">const <a class="el" href="class_ipe_font_pool.html">IpeFontPool</a> *&nbsp;</td>
 
123
          <td class="mdname1" valign="top" nowrap> <em>pool</em>          </td>
 
124
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
125
          <td class="md" nowrap></td>
 
126
        </tr>
 
127
 
 
128
      </table>
 
129
    </td>
 
130
  </tr>
 
131
</table>
 
132
<table cellspacing=5 cellpadding=0 border=0>
 
133
  <tr>
 
134
    <td>
 
135
      &nbsp;
 
136
    </td>
 
137
    <td>
 
138
 
 
139
<p>
 
140
Write all fonts to the PDF file, and fill in their object numbers. Embeds no fonts if <code>pool</code> is 0, but must be called nevertheless.     </td>
 
141
  </tr>
 
142
</table>
 
143
<a class="anchor" name="a3" doxytag="IpePdfWriter::CreatePages" ></a><p>
 
144
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
 
145
  <tr>
 
146
    <td class="mdRow">
 
147
      <table cellpadding="0" cellspacing="0" border="0">
 
148
        <tr>
 
149
          <td class="md" nowrap valign="top"> void IpePdfWriter::CreatePages </td>
 
150
          <td class="md" valign="top">(&nbsp;</td>
 
151
          <td class="md" nowrap valign="top">bool&nbsp;</td>
 
152
          <td class="mdname1" valign="top" nowrap> <em>lastView</em>          </td>
 
153
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
154
          <td class="md" nowrap></td>
 
155
        </tr>
 
156
 
 
157
      </table>
 
158
    </td>
 
159
  </tr>
 
160
</table>
 
161
<table cellspacing=5 cellpadding=0 border=0>
 
162
  <tr>
 
163
    <td>
 
164
      &nbsp;
 
165
    </td>
 
166
    <td>
 
167
 
 
168
<p>
 
169
Create all PDF pages. 
 
170
<p>
 
171
    </td>
 
172
  </tr>
 
173
</table>
 
174
<a class="anchor" name="a4" doxytag="IpePdfWriter::CreateBookmarks" ></a><p>
 
175
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
 
176
  <tr>
 
177
    <td class="mdRow">
 
178
      <table cellpadding="0" cellspacing="0" border="0">
 
179
        <tr>
 
180
          <td class="md" nowrap valign="top"> void IpePdfWriter::CreateBookmarks </td>
 
181
          <td class="md" valign="top">(&nbsp;</td>
 
182
          <td class="mdname1" valign="top" nowrap>          </td>
 
183
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
184
          <td class="md" nowrap></td>
 
185
        </tr>
 
186
 
 
187
      </table>
 
188
    </td>
 
189
  </tr>
 
190
</table>
 
191
<table cellspacing=5 cellpadding=0 border=0>
 
192
  <tr>
 
193
    <td>
 
194
      &nbsp;
 
195
    </td>
 
196
    <td>
 
197
 
 
198
<p>
 
199
Create the bookmarks (PDF outline). 
 
200
<p>
 
201
    </td>
 
202
  </tr>
 
203
</table>
 
204
<a class="anchor" name="a5" doxytag="IpePdfWriter::CreateXmlStream" ></a><p>
 
205
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
 
206
  <tr>
 
207
    <td class="mdRow">
 
208
      <table cellpadding="0" cellspacing="0" border="0">
 
209
        <tr>
 
210
          <td class="md" nowrap valign="top"> void IpePdfWriter::CreateXmlStream </td>
 
211
          <td class="md" valign="top">(&nbsp;</td>
 
212
          <td class="md" nowrap valign="top"><a class="el" href="class_ipe_string.html">IpeString</a>&nbsp;</td>
 
213
          <td class="mdname" nowrap> <em>xmldata</em>, </td>
 
214
        </tr>
 
215
        <tr>
 
216
          <td class="md" nowrap align="right"></td>
 
217
          <td></td>
 
218
          <td class="md" nowrap>bool&nbsp;</td>
 
219
          <td class="mdname" nowrap> <em>preCompressed</em></td>
 
220
        </tr>
 
221
        <tr>
 
222
          <td></td>
 
223
          <td class="md">)&nbsp;</td>
 
224
          <td class="md" colspan="2"></td>
 
225
        </tr>
 
226
 
 
227
      </table>
 
228
    </td>
 
229
  </tr>
 
230
</table>
 
231
<table cellspacing=5 cellpadding=0 border=0>
 
232
  <tr>
 
233
    <td>
 
234
      &nbsp;
 
235
    </td>
 
236
    <td>
 
237
 
 
238
<p>
 
239
Create a stream containing the XML data. 
 
240
<p>
 
241
    </td>
 
242
  </tr>
 
243
</table>
 
244
<a class="anchor" name="a6" doxytag="IpePdfWriter::CreateTrailer" ></a><p>
 
245
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
 
246
  <tr>
 
247
    <td class="mdRow">
 
248
      <table cellpadding="0" cellspacing="0" border="0">
 
249
        <tr>
 
250
          <td class="md" nowrap valign="top"> void IpePdfWriter::CreateTrailer </td>
 
251
          <td class="md" valign="top">(&nbsp;</td>
 
252
          <td class="md" nowrap valign="top"><a class="el" href="class_ipe_string.html">IpeString</a>&nbsp;</td>
 
253
          <td class="mdname1" valign="top" nowrap> <em>creator</em>          </td>
 
254
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
 
255
          <td class="md" nowrap></td>
 
256
        </tr>
 
257
 
 
258
      </table>
 
259
    </td>
 
260
  </tr>
 
261
</table>
 
262
<table cellspacing=5 cellpadding=0 border=0>
 
263
  <tr>
 
264
    <td>
 
265
      &nbsp;
 
266
    </td>
 
267
    <td>
 
268
 
 
269
<p>
 
270
Create the root objects and trailer of the PDF file. 
 
271
<p>
 
272
    </td>
 
273
  </tr>
 
274
</table>
 
275
<hr>The documentation for this class was generated from the following files:<ul>
 
276
<li>ipepdfwriter.h<li>ipepdfwriter.cpp</ul>
 
277
<hr>
 
278
</body></html>