1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>cairomm: Cairo::PdfSurface Class Reference</title>
<link href="cairomm.css" rel="stylesheet" type="text/css">
</head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
<li><a href="examples.html"><span>Examples</span></a></li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="inherits.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="namespaceCairo.html">Cairo</a> </li>
<li class="navelem"><a class="el" href="classCairo_1_1PdfSurface.html">PdfSurface</a> </li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="#pub-static-methods">Static Public Member Functions</a> </div>
<div class="headertitle">
<h1>Cairo::PdfSurface Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="Cairo::PdfSurface" --><!-- doxytag: inherits="Cairo::Surface" -->
<p>A <a class="el" href="classCairo_1_1PdfSurface.html" title="A PdfSurface provides a way to render PDF documents from cairo.">PdfSurface</a> provides a way to render PDF documents from cairo. <a href="#_details">More...</a></p>
<div class="dynheader">
Inheritance diagram for Cairo::PdfSurface:</div>
<div class="dyncontent">
<div class="center"><img src="classCairo_1_1PdfSurface__inherit__graph.png" border="0" usemap="#Cairo_1_1PdfSurface_inherit__map" alt="Inheritance graph"/></div>
<map name="Cairo_1_1PdfSurface_inherit__map" id="Cairo_1_1PdfSurface_inherit__map">
<area shape="rect" id="node2" href="classCairo_1_1Surface.html" title="A cairo surface represents an image, either as the destination of a drawing operation or as source wh..." alt="" coords="15,6,119,37"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>
<p><a href="classCairo_1_1PdfSurface-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PdfSurface.html#ab2da398a2c5b4d0489964eff3adad638">PdfSurface</a> (cairo_surface_t*<a class="el" href="classCairo_1_1Surface.html#ad176eb7343b5902df3c19f9f56e59fb4">cobject</a>, bool has_reference=false)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Create a C++ wrapper for the C instance. <a href="#ab2da398a2c5b4d0489964eff3adad638"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PdfSurface.html#ae2a9198838ff56d5f46cd28becffdd48">~PdfSurface</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PdfSurface.html#aaae35e5e41a731d3f16f3b238b364bdc">set_size</a> (double width_in_points, double height_in_points)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Changes the size of a PDF surface for the current (and subsequent) pages. <a href="#aaae35e5e41a731d3f16f3b238b364bdc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PdfSurface.html#aba7ad33d45bfa8c2f3077a8efdeb01e3">restrict_to_version</a> (<a class="el" href="namespaceCairo.html#a594c3b02635245683fcb33c23872a125">PdfVersion</a> version)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Restricts the generated PDF file to version. <a href="#aba7ad33d45bfa8c2f3077a8efdeb01e3"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1PdfSurface.html">PdfSurface</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PdfSurface.html#a92403fe5ad8ae6862e005c3d185e9123">create</a> (<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00254.html">std::string</a> filename, double width_in_points, double height_in_points)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="classCairo_1_1PdfSurface.html" title="A PdfSurface provides a way to render PDF documents from cairo.">PdfSurface</a> with a specified dimensions that will be saved as the given filename. <a href="#a92403fe5ad8ae6862e005c3d185e9123"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1PdfSurface.html">PdfSurface</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PdfSurface.html#aa8537c400b7b212550dd4091099a8b2a">create_for_stream</a> (const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotWriteFunc</a>& write_func, double width_in_points, double height_in_points)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a <a class="el" href="classCairo_1_1PdfSurface.html" title="A PdfSurface provides a way to render PDF documents from cairo.">PdfSurface</a> with a specified dimensions that will be written to the given write function instead of saved directly to disk. <a href="#aa8537c400b7b212550dd4091099a8b2a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>< <a class="el" href="classCairo_1_1PdfSurface.html">PdfSurface</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PdfSurface.html#aa9fc3e58c824a3fe4428b556f6938382">create</a> (cairo_write_func_t write_func, void* closure, double width_in_points, double height_in_points)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00738.html">std::vector</a><br class="typebreak"/>
< <a class="el" href="namespaceCairo.html#a594c3b02635245683fcb33c23872a125">PdfVersion</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PdfSurface.html#a12c8ebbb64c5c7536d7d532f4ca4cd7a">get_versions</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the list of PDF versions supported by cairo. <a href="#a12c8ebbb64c5c7536d7d532f4ca4cd7a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00254.html">std::string</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PdfSurface.html#a0868e0973fe3c8f1aaff2066c307c3fd">version_to_string</a> (<a class="el" href="namespaceCairo.html#a594c3b02635245683fcb33c23872a125">PdfVersion</a> version)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Get the string representation of the given version id. <a href="#a0868e0973fe3c8f1aaff2066c307c3fd"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A <a class="el" href="classCairo_1_1PdfSurface.html" title="A PdfSurface provides a way to render PDF documents from cairo.">PdfSurface</a> provides a way to render PDF documents from cairo. </p>
<p>This surface is not rendered to the screen but instead renders the drawing to a PDF file on disk.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>For this <a class="el" href="classCairo_1_1Surface.html" title="A cairo surface represents an image, either as the destination of a drawing operation or as source wh...">Surface</a> to be available, cairo must have been compiled with PDF support </dd></dl>
</div><hr/><h2>Constructor & Destructor Documentation</h2>
<a class="anchor" id="ab2da398a2c5b4d0489964eff3adad638"></a><!-- doxytag: member="Cairo::PdfSurface::PdfSurface" ref="ab2da398a2c5b4d0489964eff3adad638" args="(cairo_surface_t *cobject, bool has_reference=false)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Cairo::PdfSurface::PdfSurface </td>
<td>(</td>
<td class="paramtype">cairo_surface_t * </td>
<td class="paramname"><em>cobject</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>has_reference</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [explicit]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Create a C++ wrapper for the C instance. </p>
<p>This C++ instance should then be given to a <a class="el" href="classCairo_1_1RefPtr.html" title="RefPtr<> is a reference-counting shared smartpointer.">RefPtr</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">cobject</td><td>The C instance. </td></tr>
<tr><td class="paramname">has_reference</td><td>whether we already have a reference. Otherwise, the constructor will take an extra reference. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="ae2a9198838ff56d5f46cd28becffdd48"></a><!-- doxytag: member="Cairo::PdfSurface::~PdfSurface" ref="ae2a9198838ff56d5f46cd28becffdd48" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">virtual Cairo::PdfSurface::~PdfSurface </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a92403fe5ad8ae6862e005c3d185e9123"></a><!-- doxytag: member="Cairo::PdfSurface::create" ref="a92403fe5ad8ae6862e005c3d185e9123" args="(std::string filename, double width_in_points, double height_in_points)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a><<a class="el" href="classCairo_1_1PdfSurface.html">PdfSurface</a>> Cairo::PdfSurface::create </td>
<td>(</td>
<td class="paramtype"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00254.html">std::string</a> </td>
<td class="paramname"><em>filename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>width_in_points</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>height_in_points</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a <a class="el" href="classCairo_1_1PdfSurface.html" title="A PdfSurface provides a way to render PDF documents from cairo.">PdfSurface</a> with a specified dimensions that will be saved as the given filename. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">filename</td><td>The name of the PDF file to save the surface to </td></tr>
<tr><td class="paramname">width_in_points</td><td>The width of the PDF document in points </td></tr>
<tr><td class="paramname">height_in_points</td><td>The height of the PDF document in points </td></tr>
</table>
</dd>
</dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="pdf-surface_8cc-example.html#a2">pdf-surface.cc</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="aa9fc3e58c824a3fe4428b556f6938382"></a><!-- doxytag: member="Cairo::PdfSurface::create" ref="aa9fc3e58c824a3fe4428b556f6938382" args="(cairo_write_func_t write_func, void *closure, double width_in_points, double height_in_points)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a><<a class="el" href="classCairo_1_1PdfSurface.html">PdfSurface</a>> Cairo::PdfSurface::create </td>
<td>(</td>
<td class="paramtype">cairo_write_func_t </td>
<td class="paramname"><em>write_func</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">void * </td>
<td class="paramname"><em>closure</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>width_in_points</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>height_in_points</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000013">Deprecated:</a></b></dt><dd>use <a class="el" href="classCairo_1_1PdfSurface.html#aa8537c400b7b212550dd4091099a8b2a" title="Creates a PdfSurface with a specified dimensions that will be written to the given write function ins...">PdfSurface::create_for_stream()</a> instead </dd></dl>
</div>
</div>
<a class="anchor" id="aa8537c400b7b212550dd4091099a8b2a"></a><!-- doxytag: member="Cairo::PdfSurface::create_for_stream" ref="aa8537c400b7b212550dd4091099a8b2a" args="(const SlotWriteFunc &write_func, double width_in_points, double height_in_points)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a><<a class="el" href="classCairo_1_1PdfSurface.html">PdfSurface</a>> Cairo::PdfSurface::create_for_stream </td>
<td>(</td>
<td class="paramtype">const <a class="elRef" doxygen="libsigc++-2.0.tag:http://library.gnome.org/devel/libsigc++/unstable/" href="http://library.gnome.org/devel/libsigc++/unstable/classsigc_1_1slot.html">SlotWriteFunc</a> & </td>
<td class="paramname"><em>write_func</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>width_in_points</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>height_in_points</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Creates a <a class="el" href="classCairo_1_1PdfSurface.html" title="A PdfSurface provides a way to render PDF documents from cairo.">PdfSurface</a> with a specified dimensions that will be written to the given write function instead of saved directly to disk. </p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">write_func</td><td>The function to be called when the backend needs to write data to an output stream </td></tr>
<tr><td class="paramname">width_in_points</td><td>The width of the PDF document in points </td></tr>
<tr><td class="paramname">height_in_points</td><td>The height of the PDF document in points</td></tr>
</table>
</dd>
</dl>
<dl class="since"><dt><b>Since:</b></dt><dd>1.8 </dd></dl>
</div>
</div>
<a class="anchor" id="a12c8ebbb64c5c7536d7d532f4ca4cd7a"></a><!-- doxytag: member="Cairo::PdfSurface::get_versions" ref="a12c8ebbb64c5c7536d7d532f4ca4cd7a" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00738.html">std::vector</a><<a class="el" href="namespaceCairo.html#a594c3b02635245683fcb33c23872a125">PdfVersion</a>> Cairo::PdfSurface::get_versions </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Retrieves the list of PDF versions supported by cairo. </p>
<p>See <a class="el" href="classCairo_1_1PdfSurface.html#aba7ad33d45bfa8c2f3077a8efdeb01e3" title="Restricts the generated PDF file to version.">restrict_to_version()</a>.</p>
<dl class="since"><dt><b>Since:</b></dt><dd>1.10 </dd></dl>
</div>
</div>
<a class="anchor" id="aba7ad33d45bfa8c2f3077a8efdeb01e3"></a><!-- doxytag: member="Cairo::PdfSurface::restrict_to_version" ref="aba7ad33d45bfa8c2f3077a8efdeb01e3" args="(PdfVersion version)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Cairo::PdfSurface::restrict_to_version </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceCairo.html#a594c3b02635245683fcb33c23872a125">PdfVersion</a> </td>
<td class="paramname"><em>version</em></td><td>)</td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Restricts the generated PDF file to version. </p>
<p>See <a class="el" href="classCairo_1_1PdfSurface.html#a12c8ebbb64c5c7536d7d532f4ca4cd7a" title="Retrieves the list of PDF versions supported by cairo.">get_versions()</a> for a list of available version values that can be used here.</p>
<p>This function should only be called before any drawing operations have been performed on the given surface. The simplest way to do this is to call this function immediately after creating the surface.</p>
<dl class="since"><dt><b>Since:</b></dt><dd>1.10 </dd></dl>
</div>
</div>
<a class="anchor" id="aaae35e5e41a731d3f16f3b238b364bdc"></a><!-- doxytag: member="Cairo::PdfSurface::set_size" ref="aaae35e5e41a731d3f16f3b238b364bdc" args="(double width_in_points, double height_in_points)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Cairo::PdfSurface::set_size </td>
<td>(</td>
<td class="paramtype">double </td>
<td class="paramname"><em>width_in_points</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">double </td>
<td class="paramname"><em>height_in_points</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Changes the size of a PDF surface for the current (and subsequent) pages. </p>
<p>This function should only be called before any drawing operations have been performed on the current page. The simplest way to do this is to call this function immediately after creating the surface or immediately after completing a page with either <a class="el" href="classCairo_1_1Context.html#a525cac95b4d4c2abea12b82c433adba9">Context::show_page()</a> or <a class="el" href="classCairo_1_1Context.html#a7ccbeacb2a7f2d787b3daf31a69383fd">Context::copy_page()</a>.</p>
<dl><dt><b>Parameters:</b></dt><dd>
<table class="params">
<tr><td class="paramname">width_in_points</td><td>new surface width, in points (1 point == 1/72.0 inch) </td></tr>
<tr><td class="paramname">height_in_points</td><td>new surface height, in points (1 point == 1/72.0 inch) </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="a0868e0973fe3c8f1aaff2066c307c3fd"></a><!-- doxytag: member="Cairo::PdfSurface::version_to_string" ref="a0868e0973fe3c8f1aaff2066c307c3fd" args="(PdfVersion version)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">static <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00254.html">std::string</a> Cairo::PdfSurface::version_to_string </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceCairo.html#a594c3b02635245683fcb33c23872a125">PdfVersion</a> </td>
<td class="paramname"><em>version</em></td><td>)</td>
<td><code> [static]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Get the string representation of the given version id. </p>
<p>This function will return an empty string if version isn't valid. See <a class="el" href="classCairo_1_1PdfSurface.html#a12c8ebbb64c5c7536d7d532f4ca4cd7a" title="Retrieves the list of PDF versions supported by cairo.">get_versions()</a> for a way to get the list of valid version ids.</p>
<dl class="since"><dt><b>Since:</b></dt><dd>1.10 </dd></dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>cairomm/surface.h</li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Mon May 9 2011 09:51:07 for cairomm by 
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>
|