poppler 2.0.2-x86-mingw32 → 2.0.3-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. checksums.yaml +7 -0
  2. data/README +1 -1
  3. data/Rakefile +69 -9
  4. data/ext/poppler/extconf.rb +5 -2
  5. data/ext/poppler/rbpoppler-action.c +242 -86
  6. data/ext/poppler/{rbpoppler-annotationcalloutline.c → rbpoppler-annotation-callout-line.c} +2 -3
  7. data/ext/poppler/{rbpoppler-annotationfreetext.c → rbpoppler-annotation-free-text.c} +2 -3
  8. data/ext/poppler/{rbpoppler-annotationmapping.c → rbpoppler-annotation-mapping.c} +2 -3
  9. data/ext/poppler/{rbpoppler-annotationmarkup.c → rbpoppler-annotation-markup.c} +5 -4
  10. data/ext/poppler/{rbpoppler-annotationtext.c → rbpoppler-annotation-text.c} +2 -7
  11. data/ext/poppler/{rbpoppler-buttonfield.c → rbpoppler-button-field.c} +0 -0
  12. data/ext/poppler/{rbpoppler-choicefield.c → rbpoppler-choice-field.c} +0 -0
  13. data/ext/poppler/{rbpoppler-fontinfo.c → rbpoppler-font-info.c} +2 -8
  14. data/ext/poppler/{rbpoppler-fontsiter.c → rbpoppler-fonts-iter.c} +5 -6
  15. data/ext/poppler/{rbpoppler-formfieldmapping.c → rbpoppler-form-field-mapping.c} +2 -3
  16. data/ext/poppler/{rbpoppler-imagemapping.c → rbpoppler-image-mapping.c} +2 -7
  17. data/ext/poppler/{rbpoppler-indexiter.c → rbpoppler-index-iter.c} +2 -3
  18. data/ext/poppler/{rbpoppler-linkmapping.c → rbpoppler-link-mapping.c} +2 -3
  19. data/ext/poppler/{rbpoppler-pagetransition.c → rbpoppler-page-transition.c} +2 -3
  20. data/ext/poppler/rbpoppler-page.c +0 -29
  21. data/ext/poppler/rbpoppler-private.h +13 -13
  22. data/ext/poppler/{rbpoppler-psfile.c → rbpoppler-ps-file.c} +2 -3
  23. data/ext/poppler/{rbpoppler-textfield.c → rbpoppler-text-field.c} +0 -0
  24. data/ext/poppler/rbpoppler.c +14 -22
  25. data/ext/poppler/rbpoppler.h +3 -6
  26. data/ext/poppler/rbpopplerconversions.h +1 -1
  27. data/lib/1.9/poppler.so +0 -0
  28. data/lib/2.0/poppler.so +0 -0
  29. data/sample/pdf2.rb +46 -10
  30. data/test/fixtures/image.png +0 -0
  31. data/test/run-test.rb +7 -4
  32. data/test/test_page.rb +1 -0
  33. data/vendor/local/bin/cjpeg.exe +0 -0
  34. data/vendor/local/bin/djpeg.exe +0 -0
  35. data/vendor/local/bin/jpegtran.exe +0 -0
  36. data/vendor/local/bin/libjpeg-9.dll +0 -0
  37. data/vendor/local/bin/libpoppler-44.dll +0 -0
  38. data/vendor/local/bin/libpoppler-glib-8.dll +0 -0
  39. data/vendor/local/bin/libsqlite3-0.dll +0 -0
  40. data/vendor/local/bin/pdfdetach.exe +0 -0
  41. data/vendor/local/bin/pdffonts.exe +0 -0
  42. data/vendor/local/bin/pdfimages.exe +0 -0
  43. data/vendor/local/bin/pdfinfo.exe +0 -0
  44. data/vendor/local/bin/pdfseparate.exe +0 -0
  45. data/vendor/local/bin/pdftocairo.exe +0 -0
  46. data/vendor/local/bin/pdftohtml.exe +0 -0
  47. data/vendor/local/bin/pdftoppm.exe +0 -0
  48. data/vendor/local/bin/pdftops.exe +0 -0
  49. data/vendor/local/bin/pdftotext.exe +0 -0
  50. data/vendor/local/bin/pdfunite.exe +0 -0
  51. data/vendor/local/bin/rdjpgcom.exe +0 -0
  52. data/vendor/local/bin/sqlite3.exe +0 -0
  53. data/vendor/local/bin/wrjpgcom.exe +0 -0
  54. data/vendor/local/include/jconfig.h +8 -0
  55. data/vendor/local/include/jerror.h +2 -2
  56. data/vendor/local/include/jmorecfg.h +28 -7
  57. data/vendor/local/include/jpeglib.h +46 -8
  58. data/vendor/local/include/poppler/glib/poppler-action.h +156 -2
  59. data/vendor/local/include/poppler/glib/poppler-annot.h +57 -1
  60. data/vendor/local/include/poppler/glib/poppler-attachment.h +17 -0
  61. data/vendor/local/include/poppler/glib/poppler-document.h +133 -26
  62. data/vendor/local/include/poppler/glib/poppler-enums.h +8 -0
  63. data/vendor/local/include/poppler/glib/poppler-features.h +58 -4
  64. data/vendor/local/include/poppler/glib/poppler-form-field.h +4 -0
  65. data/vendor/local/include/poppler/glib/poppler-media.h +73 -0
  66. data/vendor/local/include/poppler/glib/poppler-movie.h +42 -0
  67. data/vendor/local/include/poppler/glib/poppler-page.h +133 -44
  68. data/vendor/local/include/poppler/glib/poppler.h +125 -24
  69. data/vendor/local/include/sqlite3.h +7338 -0
  70. data/vendor/local/include/sqlite3ext.h +487 -0
  71. data/vendor/local/lib/girepository-1.0/Poppler-0.18.typelib +0 -0
  72. data/vendor/local/lib/libjpeg.a +0 -0
  73. data/vendor/local/lib/libjpeg.dll.a +0 -0
  74. data/vendor/local/lib/libjpeg.la +41 -0
  75. data/vendor/local/lib/libpoppler-glib.a +0 -0
  76. data/vendor/local/lib/libpoppler-glib.dll.a +0 -0
  77. data/vendor/local/lib/libpoppler-glib.la +41 -0
  78. data/vendor/local/lib/libpoppler.a +0 -0
  79. data/vendor/local/lib/libpoppler.dll.a +0 -0
  80. data/vendor/local/lib/libpoppler.la +41 -0
  81. data/vendor/local/lib/libsqlite3.a +0 -0
  82. data/vendor/local/lib/libsqlite3.dll.a +0 -0
  83. data/vendor/local/lib/libsqlite3.la +41 -0
  84. data/vendor/local/lib/pkgconfig/poppler-cairo.pc +9 -0
  85. data/vendor/local/lib/pkgconfig/poppler-glib.pc +3 -3
  86. data/vendor/local/lib/pkgconfig/poppler-splash.pc +2 -2
  87. data/vendor/local/lib/pkgconfig/poppler.pc +1 -1
  88. data/vendor/local/lib/pkgconfig/sqlite3.pc +13 -0
  89. data/vendor/local/share/gir-1.0/Poppler-0.18.gir +5452 -0
  90. data/vendor/local/share/gtk-doc/html/poppler/PopplerAnnot.html +1671 -0
  91. data/vendor/local/share/gtk-doc/html/poppler/PopplerAttachment.html +214 -0
  92. data/vendor/local/share/gtk-doc/html/poppler/PopplerDocument.html +2587 -0
  93. data/vendor/local/share/gtk-doc/html/poppler/PopplerFormField.html +1070 -0
  94. data/vendor/local/share/gtk-doc/html/poppler/PopplerLayer.html +228 -0
  95. data/vendor/local/share/gtk-doc/html/poppler/PopplerMedia.html +306 -0
  96. data/vendor/local/share/gtk-doc/html/poppler/PopplerMovie.html +156 -0
  97. data/vendor/local/share/gtk-doc/html/poppler/PopplerPage.html +2132 -0
  98. data/vendor/local/share/gtk-doc/html/poppler/annotation-glossary.html +71 -0
  99. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-12.html +128 -0
  100. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-14.html +107 -0
  101. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-16.html +185 -0
  102. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-18.html +77 -0
  103. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-20.html +42 -0
  104. data/vendor/local/share/gtk-doc/html/poppler/api-index-0-22.html +62 -0
  105. data/vendor/local/share/gtk-doc/html/poppler/api-index-deprecated.html +42 -0
  106. data/vendor/local/share/gtk-doc/html/poppler/api-index-full.html +1352 -0
  107. data/vendor/local/share/gtk-doc/html/poppler/ch01.html +21 -19
  108. data/vendor/local/share/gtk-doc/html/poppler/home.png +0 -0
  109. data/vendor/local/share/gtk-doc/html/poppler/index.html +35 -18
  110. data/vendor/local/share/gtk-doc/html/poppler/index.sgml +548 -300
  111. data/vendor/local/share/gtk-doc/html/poppler/left.png +0 -0
  112. data/vendor/local/share/gtk-doc/html/poppler/poppler-PopplerAction.html +662 -0
  113. data/vendor/local/share/gtk-doc/html/poppler/poppler-Version-and-Features-Information.html +145 -0
  114. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler.html +319 -364
  115. data/vendor/local/share/gtk-doc/html/poppler/poppler.devhelp2 +506 -265
  116. data/vendor/local/share/gtk-doc/html/poppler/right.png +0 -0
  117. data/vendor/local/share/gtk-doc/html/poppler/style.css +153 -54
  118. data/vendor/local/share/gtk-doc/html/poppler/up.png +0 -0
  119. data/vendor/local/share/license/poppler/AUTHORS +5 -0
  120. data/vendor/local/share/license/poppler/COPYING +339 -0
  121. data/vendor/local/share/man/man1/cjpeg.1 +51 -10
  122. data/vendor/local/share/man/man1/djpeg.1 +5 -4
  123. data/vendor/local/share/man/man1/jpegtran.1 +15 -2
  124. data/vendor/local/share/man/man1/pdfdetach.1 +86 -0
  125. data/vendor/local/share/man/man1/pdffonts.1 +16 -7
  126. data/vendor/local/share/man/man1/pdfimages.1 +114 -7
  127. data/vendor/local/share/man/man1/pdfinfo.1 +16 -7
  128. data/vendor/local/share/man/man1/pdfseparate.1 +49 -0
  129. data/vendor/local/share/man/man1/pdftocairo.1 +266 -0
  130. data/vendor/local/share/man/man1/pdftohtml.1 +30 -8
  131. data/vendor/local/share/man/man1/pdftoppm.1 +42 -12
  132. data/vendor/local/share/man/man1/pdftops.1 +26 -10
  133. data/vendor/local/share/man/man1/pdftotext.1 +18 -7
  134. data/vendor/local/share/man/man1/pdfunite.1 +33 -0
  135. data/vendor/local/share/man/man1/sqlite3.1 +229 -0
  136. metadata +107 -64
  137. data/vendor/local/bin/libgcc_s_dw2-1.dll +0 -0
  138. data/vendor/local/bin/libjpeg-7.dll +0 -0
  139. data/vendor/local/bin/libpng12-0.dll +0 -0
  140. data/vendor/local/bin/libpoppler-5.dll +0 -0
  141. data/vendor/local/bin/libpoppler-glib-4.dll +0 -0
  142. data/vendor/local/include/libpng12/png.h +0 -3726
  143. data/vendor/local/include/libpng12/pngconf.h +0 -1508
  144. data/vendor/local/include/png.h +0 -3726
  145. data/vendor/local/include/pngconf.h +0 -1508
  146. data/vendor/local/lib/libpng.def +0 -366
  147. data/vendor/local/lib/libpng.lib +0 -0
  148. data/vendor/local/lib/libpng12.dll.a +0 -0
  149. data/vendor/local/lib/pkgconfig/libpng.pc +0 -11
  150. data/vendor/local/lib/pkgconfig/libpng12.pc +0 -11
  151. data/vendor/local/manifest/jpeg-dev_7-1_win32.mft +0 -18
  152. data/vendor/local/manifest/jpeg_7-1_win32.mft +0 -2
  153. data/vendor/local/manifest/libpng-dev_1.2.40-1_win32.mft +0 -15
  154. data/vendor/local/manifest/libpng_1.2.40-1_win32.mft +0 -2
  155. data/vendor/local/manifest/poppler-dev_0.12.0-1_win32.mft +0 -49
  156. data/vendor/local/manifest/poppler_0.12.0-1_win32.mft +0 -4
  157. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-action.html +0 -386
  158. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-annot.html +0 -854
  159. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-attachment.html +0 -205
  160. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-document.html +0 -1122
  161. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-enums.html +0 -412
  162. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-features.html +0 -143
  163. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-form-field.html +0 -871
  164. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-layer.html +0 -214
  165. data/vendor/local/share/gtk-doc/html/poppler/poppler-poppler-page.html +0 -1258
  166. data/vendor/local/share/gtk-doc/html/poppler/poppler.devhelp +0 -281
  167. data/vendor/local/share/man/man3/libpng.3 +0 -4349
  168. data/vendor/local/share/man/man3/libpngpf.3 +0 -790
  169. data/vendor/local/share/man/man5/png.5 +0 -74
  170. data/vendor/local/src/tml/packaging/jpeg_7-1_win32.log +0 -249
  171. data/vendor/local/src/tml/packaging/jpeg_7-1_win32.sh +0 -44
  172. data/vendor/local/src/tml/packaging/libpng_1.2.40-1_win32.log +0 -269
  173. data/vendor/local/src/tml/packaging/libpng_1.2.40-1_win32.sh +0 -63
@@ -1,205 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>PopplerAttachment</title>
6
- <meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
- <link rel="start" href="index.html" title="Poppler Reference Manual">
8
- <link rel="up" href="ch01.html" title="Poppler">
9
- <link rel="prev" href="poppler-poppler-action.html" title="PopplerAction">
10
- <link rel="next" href="poppler-poppler-form-field.html" title="PopplerFormField">
11
- <meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
- <link rel="stylesheet" href="style.css" type="text/css">
13
- <link rel="chapter" href="ch01.html" title="Poppler">
14
- </head>
15
- <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
16
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
- <tr valign="middle">
18
- <td><a accesskey="p" href="poppler-poppler-action.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
19
- <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
20
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
21
- <th width="100%" align="center">Poppler Reference Manual</th>
22
- <td><a accesskey="n" href="poppler-poppler-form-field.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
- </tr>
24
- <tr><td colspan="5" class="shortcuts">
25
- <a href="#poppler-poppler-attachment.synopsis" class="shortcut">Top</a>
26
-  | 
27
- <a href="#poppler-poppler-attachment.description" class="shortcut">Description</a>
28
- </td></tr>
29
- </table>
30
- <div class="refentry" lang="en">
31
- <a name="poppler-poppler-attachment"></a><div class="titlepage"></div>
32
- <div class="refnamediv"><table width="100%"><tr>
33
- <td valign="top">
34
- <h2><span class="refentrytitle"><a name="poppler-poppler-attachment.top_of_page"></a>PopplerAttachment</span></h2>
35
- <p>PopplerAttachment</p>
36
- </td>
37
- <td valign="top" align="right"></td>
38
- </tr></table></div>
39
- <div class="refsynopsisdiv">
40
- <a name="poppler-poppler-attachment.synopsis"></a><h2>Synopsis</h2>
41
- <a name="PopplerAttachment"></a><pre class="synopsis">
42
- <a class="link" href="poppler-poppler-attachment.html#PopplerAttachment-struct" title="PopplerAttachment">PopplerAttachment</a>;
43
- gboolean <a class="link" href="poppler-poppler-attachment.html#poppler-attachment-save" title="poppler_attachment_save ()">poppler_attachment_save</a> (<a class="link" href="poppler-poppler-attachment.html#PopplerAttachment">PopplerAttachment</a> *attachment,
44
- const char *filename,
45
- GError **error);
46
- gboolean <a class="link" href="poppler-poppler-attachment.html#poppler-attachment-save-to-callback" title="poppler_attachment_save_to_callback ()">poppler_attachment_save_to_callback</a> (<a class="link" href="poppler-poppler-attachment.html#PopplerAttachment">PopplerAttachment</a> *attachment,
47
- <a class="link" href="poppler-poppler-attachment.html#PopplerAttachmentSaveFunc" title="PopplerAttachmentSaveFunc ()">PopplerAttachmentSaveFunc</a> save_func,
48
- gpointer user_data,
49
- GError **error);
50
- gboolean (<a class="link" href="poppler-poppler-attachment.html#PopplerAttachmentSaveFunc" title="PopplerAttachmentSaveFunc ()">*PopplerAttachmentSaveFunc</a>) (const gchar *buf,
51
- gsize count,
52
- gpointer data,
53
- GError **error);
54
- </pre>
55
- </div>
56
- <div class="refsect1" lang="en">
57
- <a name="poppler-poppler-attachment.description"></a><h2>Description</h2>
58
- <p>
59
- </p>
60
- </div>
61
- <div class="refsect1" lang="en">
62
- <a name="poppler-poppler-attachment.details"></a><h2>Details</h2>
63
- <div class="refsect2" lang="en">
64
- <a name="PopplerAttachment-struct"></a><h3>PopplerAttachment</h3>
65
- <pre class="programlisting">typedef struct _PopplerAttachment PopplerAttachment;</pre>
66
- <p>
67
- </p>
68
- </div>
69
- <hr>
70
- <div class="refsect2" lang="en">
71
- <a name="poppler-attachment-save"></a><h3>poppler_attachment_save ()</h3>
72
- <pre class="programlisting">gboolean poppler_attachment_save (<a class="link" href="poppler-poppler-attachment.html#PopplerAttachment">PopplerAttachment</a> *attachment,
73
- const char *filename,
74
- GError **error);</pre>
75
- <p>
76
- Saves <em class="parameter"><code>attachment</code></em> to a file indicated by <em class="parameter"><code>filename</code></em>. If <em class="parameter"><code>error</code></em> is set, <code class="literal">FALSE</code>
77
- will be returned. Possible errors include those in the <span class="type">G_FILE_ERROR</span> domain
78
- and whatever the save function generates.</p>
79
- <p>
80
- </p>
81
- <div class="variablelist"><table border="0">
82
- <col align="left" valign="top">
83
- <tbody>
84
- <tr>
85
- <td><p><span class="term"><em class="parameter"><code>attachment</code></em> :</span></p></td>
86
- <td> A <a class="link" href="poppler-poppler-attachment.html#PopplerAttachment"><span class="type">PopplerAttachment</span></a>.
87
- </td>
88
- </tr>
89
- <tr>
90
- <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
91
- <td> name of file to save
92
- </td>
93
- </tr>
94
- <tr>
95
- <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
96
- <td> return location for error, or <code class="literal">NULL</code>.
97
- </td>
98
- </tr>
99
- <tr>
100
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
101
- <td> <code class="literal">TRUE</code>, if the file successfully saved
102
- </td>
103
- </tr>
104
- </tbody>
105
- </table></div>
106
- </div>
107
- <hr>
108
- <div class="refsect2" lang="en">
109
- <a name="poppler-attachment-save-to-callback"></a><h3>poppler_attachment_save_to_callback ()</h3>
110
- <pre class="programlisting">gboolean poppler_attachment_save_to_callback (<a class="link" href="poppler-poppler-attachment.html#PopplerAttachment">PopplerAttachment</a> *attachment,
111
- <a class="link" href="poppler-poppler-attachment.html#PopplerAttachmentSaveFunc" title="PopplerAttachmentSaveFunc ()">PopplerAttachmentSaveFunc</a> save_func,
112
- gpointer user_data,
113
- GError **error);</pre>
114
- <p>
115
- Saves <em class="parameter"><code>attachment</code></em> by feeding the produced data to <em class="parameter"><code>save_func</code></em>. Can be used
116
- when you want to store the attachment to something other than a file, such as
117
- an in-memory buffer or a socket. If <em class="parameter"><code>error</code></em> is set, <code class="literal">FALSE</code> will be
118
- returned. Possible errors include those in the <span class="type">G_FILE_ERROR</span> domain and
119
- whatever the save function generates.</p>
120
- <p>
121
- </p>
122
- <div class="variablelist"><table border="0">
123
- <col align="left" valign="top">
124
- <tbody>
125
- <tr>
126
- <td><p><span class="term"><em class="parameter"><code>attachment</code></em> :</span></p></td>
127
- <td> A <a class="link" href="poppler-poppler-attachment.html#PopplerAttachment"><span class="type">PopplerAttachment</span></a>.
128
- </td>
129
- </tr>
130
- <tr>
131
- <td><p><span class="term"><em class="parameter"><code>save_func</code></em> :</span></p></td>
132
- <td> a function that is called to save each block of data that the save routine generates.
133
- </td>
134
- </tr>
135
- <tr>
136
- <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
137
- <td> user data to pass to the save function.
138
- </td>
139
- </tr>
140
- <tr>
141
- <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
142
- <td> return location for error, or <code class="literal">NULL</code>.
143
- </td>
144
- </tr>
145
- <tr>
146
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
147
- <td> <code class="literal">TRUE</code>, if the save successfully completed
148
- </td>
149
- </tr>
150
- </tbody>
151
- </table></div>
152
- </div>
153
- <hr>
154
- <div class="refsect2" lang="en">
155
- <a name="PopplerAttachmentSaveFunc"></a><h3>PopplerAttachmentSaveFunc ()</h3>
156
- <pre class="programlisting">gboolean (*PopplerAttachmentSaveFunc) (const gchar *buf,
157
- gsize count,
158
- gpointer data,
159
- GError **error);</pre>
160
- <p>
161
- Specifies the type of the function passed to
162
- <a class="link" href="poppler-poppler-attachment.html#poppler-attachment-save-to-callback" title="poppler_attachment_save_to_callback ()"><code class="function">poppler_attachment_save_to_callback()</code></a>. It is called once for each block of
163
- bytes that is "written" by <a class="link" href="poppler-poppler-attachment.html#poppler-attachment-save-to-callback" title="poppler_attachment_save_to_callback ()"><code class="function">poppler_attachment_save_to_callback()</code></a>. If
164
- successful it should return <code class="literal">TRUE</code>. If an error occurs it should set
165
- <em class="parameter"><code>error</code></em> and return <code class="literal">FALSE</code>, in which case <a class="link" href="poppler-poppler-attachment.html#poppler-attachment-save-to-callback" title="poppler_attachment_save_to_callback ()"><code class="function">poppler_attachment_save_to_callback()</code></a>
166
- will fail with the same error.
167
- </p>
168
- <div class="variablelist"><table border="0">
169
- <col align="left" valign="top">
170
- <tbody>
171
- <tr>
172
- <td><p><span class="term"><em class="parameter"><code>buf</code></em> :</span></p></td>
173
- <td>buffer containing bytes to be written.
174
- </td>
175
- </tr>
176
- <tr>
177
- <td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
178
- <td>number of bytes in <em class="parameter"><code>buf</code></em>.
179
- </td>
180
- </tr>
181
- <tr>
182
- <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
183
- <td>A location to return an error.
184
- </td>
185
- </tr>
186
- <tr>
187
- <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
188
- <td>user data passed to <a class="link" href="poppler-poppler-attachment.html#poppler-attachment-save-to-callback" title="poppler_attachment_save_to_callback ()"><code class="function">poppler_attachment_save_to_callback()</code></a>
189
- </td>
190
- </tr>
191
- <tr>
192
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
193
- <td>%TRUE if successful, <code class="literal">FALSE</code> (with <em class="parameter"><code>error</code></em> set) if failed.
194
- </td>
195
- </tr>
196
- </tbody>
197
- </table></div>
198
- </div>
199
- </div>
200
- </div>
201
- <div class="footer">
202
- <hr>
203
- Generated by GTK-Doc V1.11</div>
204
- </body>
205
- </html>
@@ -1,1122 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
- <html>
3
- <head>
4
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>PopplerDocument</title>
6
- <meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
- <link rel="start" href="index.html" title="Poppler Reference Manual">
8
- <link rel="up" href="ch01.html" title="Poppler">
9
- <link rel="prev" href="poppler-poppler.html" title="poppler">
10
- <link rel="next" href="poppler-poppler-page.html" title="PopplerPage">
11
- <meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
- <link rel="stylesheet" href="style.css" type="text/css">
13
- <link rel="chapter" href="ch01.html" title="Poppler">
14
- </head>
15
- <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
16
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
- <tr valign="middle">
18
- <td><a accesskey="p" href="poppler-poppler.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
19
- <td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
20
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
21
- <th width="100%" align="center">Poppler Reference Manual</th>
22
- <td><a accesskey="n" href="poppler-poppler-page.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
- </tr>
24
- <tr><td colspan="5" class="shortcuts">
25
- <a href="#poppler-poppler-document.synopsis" class="shortcut">Top</a>
26
-  | 
27
- <a href="#poppler-poppler-document.description" class="shortcut">Description</a>
28
- </td></tr>
29
- </table>
30
- <div class="refentry" lang="en">
31
- <a name="poppler-poppler-document"></a><div class="titlepage"></div>
32
- <div class="refnamediv"><table width="100%"><tr>
33
- <td valign="top">
34
- <h2><span class="refentrytitle"><a name="poppler-poppler-document.top_of_page"></a>PopplerDocument</span></h2>
35
- <p>PopplerDocument — Information about a document</p>
36
- </td>
37
- <td valign="top" align="right"></td>
38
- </tr></table></div>
39
- <div class="refsynopsisdiv">
40
- <a name="poppler-poppler-document.synopsis"></a><h2>Synopsis</h2>
41
- <pre class="synopsis">
42
- enum <a class="link" href="poppler-poppler-document.html#PopplerPageLayout" title="enum PopplerPageLayout">PopplerPageLayout</a>;
43
- enum <a class="link" href="poppler-poppler-document.html#PopplerPageMode" title="enum PopplerPageMode">PopplerPageMode</a>;
44
- enum <a class="link" href="poppler-poppler-document.html#PopplerFontType" title="enum PopplerFontType">PopplerFontType</a>;
45
- enum <a class="link" href="poppler-poppler-document.html#PopplerViewerPreferences" title="enum PopplerViewerPreferences">PopplerViewerPreferences</a>;
46
- enum <a class="link" href="poppler-poppler-document.html#PopplerPermissions" title="enum PopplerPermissions">PopplerPermissions</a>;
47
- <a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> * <a class="link" href="poppler-poppler-document.html#poppler-document-new-from-file" title="poppler_document_new_from_file ()">poppler_document_new_from_file</a> (const char *uri,
48
- const char *password,
49
- GError **error);
50
- <a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> * <a class="link" href="poppler-poppler-document.html#poppler-document-new-from-data" title="poppler_document_new_from_data ()">poppler_document_new_from_data</a> (char *data,
51
- int length,
52
- const char *password,
53
- GError **error);
54
- gboolean <a class="link" href="poppler-poppler-document.html#poppler-document-save" title="poppler_document_save ()">poppler_document_save</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document,
55
- const char *uri,
56
- GError **error);
57
- int <a class="link" href="poppler-poppler-document.html#poppler-document-get-n-pages" title="poppler_document_get_n_pages ()">poppler_document_get_n_pages</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document);
58
- <a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> * <a class="link" href="poppler-poppler-document.html#poppler-document-get-page" title="poppler_document_get_page ()">poppler_document_get_page</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document,
59
- int index);
60
- <a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> * <a class="link" href="poppler-poppler-document.html#poppler-document-get-page-by-label" title="poppler_document_get_page_by_label ()">poppler_document_get_page_by_label</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document,
61
- const char *label);
62
- <a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest">PopplerDest</a> * <a class="link" href="poppler-poppler-document.html#poppler-document-find-dest" title="poppler_document_find_dest ()">poppler_document_find_dest</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document,
63
- const gchar *link_name);
64
- gboolean <a class="link" href="poppler-poppler-document.html#poppler-document-has-attachments" title="poppler_document_has_attachments ()">poppler_document_has_attachments</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document);
65
- GList * <a class="link" href="poppler-poppler-document.html#poppler-document-get-attachments" title="poppler_document_get_attachments ()">poppler_document_get_attachments</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document);
66
- <a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> * <a class="link" href="poppler-poppler-document.html#poppler-document-get-form-field" title="poppler_document_get_form_field ()">poppler_document_get_form_field</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document,
67
- gint id);
68
- GType <a class="link" href="poppler-poppler-document.html#poppler-index-iter-get-type" title="poppler_index_iter_get_type ()">poppler_index_iter_get_type</a> (void);
69
- <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> * <a class="link" href="poppler-poppler-document.html#poppler-index-iter-new" title="poppler_index_iter_new ()">poppler_index_iter_new</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document);
70
- <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> * <a class="link" href="poppler-poppler-document.html#poppler-index-iter-copy" title="poppler_index_iter_copy ()">poppler_index_iter_copy</a> (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter);
71
- void <a class="link" href="poppler-poppler-document.html#poppler-index-iter-free" title="poppler_index_iter_free ()">poppler_index_iter_free</a> (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter);
72
- <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> * <a class="link" href="poppler-poppler-document.html#poppler-index-iter-get-child" title="poppler_index_iter_get_child ()">poppler_index_iter_get_child</a> (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *parent);
73
- gboolean <a class="link" href="poppler-poppler-document.html#poppler-index-iter-is-open" title="poppler_index_iter_is_open ()">poppler_index_iter_is_open</a> (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter);
74
- <a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction">PopplerAction</a> * <a class="link" href="poppler-poppler-document.html#poppler-index-iter-get-action" title="poppler_index_iter_get_action ()">poppler_index_iter_get_action</a> (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter);
75
- gboolean <a class="link" href="poppler-poppler-document.html#poppler-index-iter-next" title="poppler_index_iter_next ()">poppler_index_iter_next</a> (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter);
76
- <a class="link" href="poppler-poppler.html#PopplerFontInfo" title="PopplerFontInfo">PopplerFontInfo</a> * <a class="link" href="poppler-poppler-document.html#poppler-font-info-new" title="poppler_font_info_new ()">poppler_font_info_new</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document);
77
- gboolean <a class="link" href="poppler-poppler-document.html#poppler-font-info-scan" title="poppler_font_info_scan ()">poppler_font_info_scan</a> (<a class="link" href="poppler-poppler.html#PopplerFontInfo" title="PopplerFontInfo">PopplerFontInfo</a> *font_info,
78
- int n_pages,
79
- <a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> **iter);
80
- void <a class="link" href="poppler-poppler-document.html#poppler-font-info-free" title="poppler_font_info_free ()">poppler_font_info_free</a> (<a class="link" href="poppler-poppler.html#PopplerFontInfo" title="PopplerFontInfo">PopplerFontInfo</a> *font_info);
81
- GType <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-get-type" title="poppler_fonts_iter_get_type ()">poppler_fonts_iter_get_type</a> (void);
82
- <a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> * <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-copy" title="poppler_fonts_iter_copy ()">poppler_fonts_iter_copy</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);
83
- void <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-free" title="poppler_fonts_iter_free ()">poppler_fonts_iter_free</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);
84
- const char * <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-get-name" title="poppler_fonts_iter_get_name ()">poppler_fonts_iter_get_name</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);
85
- const char * <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-get-full-name" title="poppler_fonts_iter_get_full_name ()">poppler_fonts_iter_get_full_name</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);
86
- <a class="link" href="poppler-poppler-document.html#PopplerFontType" title="enum PopplerFontType">PopplerFontType</a> <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-get-font-type" title="poppler_fonts_iter_get_font_type ()">poppler_fonts_iter_get_font_type</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);
87
- gboolean <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-is-embedded" title="poppler_fonts_iter_is_embedded ()">poppler_fonts_iter_is_embedded</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);
88
- gboolean <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-is-subset" title="poppler_fonts_iter_is_subset ()">poppler_fonts_iter_is_subset</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);
89
- gboolean <a class="link" href="poppler-poppler-document.html#poppler-fonts-iter-next" title="poppler_fonts_iter_next ()">poppler_fonts_iter_next</a> (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);
90
- <a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> * <a class="link" href="poppler-poppler-document.html#poppler-ps-file-new" title="poppler_ps_file_new ()">poppler_ps_file_new</a> (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document,
91
- const char *filename,
92
- int first_page,
93
- int n_pages);
94
- void <a class="link" href="poppler-poppler-document.html#poppler-ps-file-set-paper-size" title="poppler_ps_file_set_paper_size ()">poppler_ps_file_set_paper_size</a> (<a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> *ps_file,
95
- double width,
96
- double height);
97
- void <a class="link" href="poppler-poppler-document.html#poppler-ps-file-set-duplex" title="poppler_ps_file_set_duplex ()">poppler_ps_file_set_duplex</a> (<a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> *ps_file,
98
- gboolean duplex);
99
- void <a class="link" href="poppler-poppler-document.html#poppler-ps-file-free" title="poppler_ps_file_free ()">poppler_ps_file_free</a> (<a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> *ps_file);
100
- </pre>
101
- </div>
102
- <div class="refsect1" lang="en">
103
- <a name="poppler-poppler-document.description"></a><h2>Description</h2>
104
- <p>
105
- The <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a> is an object used to refer to a main document.
106
- </p>
107
- </div>
108
- <div class="refsect1" lang="en">
109
- <a name="poppler-poppler-document.details"></a><h2>Details</h2>
110
- <div class="refsect2" lang="en">
111
- <a name="PopplerPageLayout"></a><h3>enum PopplerPageLayout</h3>
112
- <pre class="programlisting">typedef enum
113
- {
114
- POPPLER_PAGE_LAYOUT_UNSET,
115
- POPPLER_PAGE_LAYOUT_SINGLE_PAGE,
116
- POPPLER_PAGE_LAYOUT_ONE_COLUMN,
117
- POPPLER_PAGE_LAYOUT_TWO_COLUMN_LEFT,
118
- POPPLER_PAGE_LAYOUT_TWO_COLUMN_RIGHT,
119
- POPPLER_PAGE_LAYOUT_TWO_PAGE_LEFT,
120
- POPPLER_PAGE_LAYOUT_TWO_PAGE_RIGHT
121
- } PopplerPageLayout;
122
- </pre>
123
- <p>
124
- </p>
125
- </div>
126
- <hr>
127
- <div class="refsect2" lang="en">
128
- <a name="PopplerPageMode"></a><h3>enum PopplerPageMode</h3>
129
- <pre class="programlisting">typedef enum
130
- {
131
- POPPLER_PAGE_MODE_UNSET,
132
- POPPLER_PAGE_MODE_NONE,
133
- POPPLER_PAGE_MODE_USE_OUTLINES,
134
- POPPLER_PAGE_MODE_USE_THUMBS,
135
- POPPLER_PAGE_MODE_FULL_SCREEN,
136
- POPPLER_PAGE_MODE_USE_OC,
137
- POPPLER_PAGE_MODE_USE_ATTACHMENTS
138
- } PopplerPageMode;
139
- </pre>
140
- <p>
141
- </p>
142
- </div>
143
- <hr>
144
- <div class="refsect2" lang="en">
145
- <a name="PopplerFontType"></a><h3>enum PopplerFontType</h3>
146
- <pre class="programlisting">typedef enum
147
- {
148
- POPPLER_FONT_TYPE_UNKNOWN,
149
- POPPLER_FONT_TYPE_TYPE1,
150
- POPPLER_FONT_TYPE_TYPE1C,
151
- POPPLER_FONT_TYPE_TYPE1COT,
152
- POPPLER_FONT_TYPE_TYPE3,
153
- POPPLER_FONT_TYPE_TRUETYPE,
154
- POPPLER_FONT_TYPE_TRUETYPEOT,
155
- POPPLER_FONT_TYPE_CID_TYPE0,
156
- POPPLER_FONT_TYPE_CID_TYPE0C,
157
- POPPLER_FONT_TYPE_CID_TYPE0COT,
158
- POPPLER_FONT_TYPE_CID_TYPE2,
159
- POPPLER_FONT_TYPE_CID_TYPE2OT
160
- } PopplerFontType;
161
- </pre>
162
- <p>
163
- </p>
164
- </div>
165
- <hr>
166
- <div class="refsect2" lang="en">
167
- <a name="PopplerViewerPreferences"></a><h3>enum PopplerViewerPreferences</h3>
168
- <pre class="programlisting">typedef enum /*&lt; flags &gt;*/
169
- {
170
- POPPLER_VIEWER_PREFERENCES_UNSET = 0,
171
- POPPLER_VIEWER_PREFERENCES_HIDE_TOOLBAR = 1 &lt;&lt; 0,
172
- POPPLER_VIEWER_PREFERENCES_HIDE_MENUBAR = 1 &lt;&lt; 1,
173
- POPPLER_VIEWER_PREFERENCES_HIDE_WINDOWUI = 1 &lt;&lt; 2,
174
- POPPLER_VIEWER_PREFERENCES_FIT_WINDOW = 1 &lt;&lt; 3,
175
- POPPLER_VIEWER_PREFERENCES_CENTER_WINDOW = 1 &lt;&lt; 4,
176
- POPPLER_VIEWER_PREFERENCES_DISPLAY_DOC_TITLE = 1 &lt;&lt; 5,
177
- POPPLER_VIEWER_PREFERENCES_DIRECTION_RTL = 1 &lt;&lt; 6
178
- } PopplerViewerPreferences;
179
- </pre>
180
- <p>
181
- </p>
182
- </div>
183
- <hr>
184
- <div class="refsect2" lang="en">
185
- <a name="PopplerPermissions"></a><h3>enum PopplerPermissions</h3>
186
- <pre class="programlisting">typedef enum /*&lt; flags &gt;*/
187
- {
188
- POPPLER_PERMISSIONS_OK_TO_PRINT = 1 &lt;&lt; 0,
189
- POPPLER_PERMISSIONS_OK_TO_MODIFY = 1 &lt;&lt; 1,
190
- POPPLER_PERMISSIONS_OK_TO_COPY = 1 &lt;&lt; 2,
191
- POPPLER_PERMISSIONS_OK_TO_ADD_NOTES = 1 &lt;&lt; 3,
192
- POPPLER_PERMISSIONS_OK_TO_FILL_FORM = 1 &lt;&lt; 4,
193
- POPPLER_PERMISSIONS_FULL = (POPPLER_PERMISSIONS_OK_TO_PRINT | POPPLER_PERMISSIONS_OK_TO_MODIFY | POPPLER_PERMISSIONS_OK_TO_COPY | POPPLER_PERMISSIONS_OK_TO_ADD_NOTES | POPPLER_PERMISSIONS_OK_TO_FILL_FORM)
194
-
195
- } PopplerPermissions;
196
- </pre>
197
- <p>
198
- </p>
199
- </div>
200
- <hr>
201
- <div class="refsect2" lang="en">
202
- <a name="poppler-document-new-from-file"></a><h3>poppler_document_new_from_file ()</h3>
203
- <pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> * poppler_document_new_from_file (const char *uri,
204
- const char *password,
205
- GError **error);</pre>
206
- <p>
207
- Creates a new <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>. If <code class="literal">NULL</code> is returned, then <em class="parameter"><code>error</code></em> will be
208
- set. Possible errors include those in the <a class="link" href="poppler-poppler.html#POPPLER-ERROR--CAPS" title="POPPLER_ERROR"><span class="type">POPPLER_ERROR</span></a> and <span class="type">G_FILE_ERROR</span>
209
- domains.</p>
210
- <p>
211
- </p>
212
- <div class="variablelist"><table border="0">
213
- <col align="left" valign="top">
214
- <tbody>
215
- <tr>
216
- <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
217
- <td> uri of the file to load
218
- </td>
219
- </tr>
220
- <tr>
221
- <td><p><span class="term"><em class="parameter"><code>password</code></em> :</span></p></td>
222
- <td> password to unlock the file with, or <code class="literal">NULL</code>
223
- </td>
224
- </tr>
225
- <tr>
226
- <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
227
- <td> Return location for an error, or <code class="literal">NULL</code>
228
- </td>
229
- </tr>
230
- <tr>
231
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
232
- <td> A newly created <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>, or <code class="literal">NULL</code>
233
- </td>
234
- </tr>
235
- </tbody>
236
- </table></div>
237
- </div>
238
- <hr>
239
- <div class="refsect2" lang="en">
240
- <a name="poppler-document-new-from-data"></a><h3>poppler_document_new_from_data ()</h3>
241
- <pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> * poppler_document_new_from_data (char *data,
242
- int length,
243
- const char *password,
244
- GError **error);</pre>
245
- <p>
246
- Creates a new <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>. If <code class="literal">NULL</code> is returned, then <em class="parameter"><code>error</code></em> will be
247
- set. Possible errors include those in the <a class="link" href="poppler-poppler.html#POPPLER-ERROR--CAPS" title="POPPLER_ERROR"><span class="type">POPPLER_ERROR</span></a> and <span class="type">G_FILE_ERROR</span>
248
- domains.</p>
249
- <p>
250
- </p>
251
- <div class="variablelist"><table border="0">
252
- <col align="left" valign="top">
253
- <tbody>
254
- <tr>
255
- <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
256
- <td> the pdf data contained in a char array
257
- </td>
258
- </tr>
259
- <tr>
260
- <td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
261
- <td> the length of <span class="type">data</span>
262
- </td>
263
- </tr>
264
- <tr>
265
- <td><p><span class="term"><em class="parameter"><code>password</code></em> :</span></p></td>
266
- <td> password to unlock the file with, or <code class="literal">NULL</code>
267
- </td>
268
- </tr>
269
- <tr>
270
- <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
271
- <td> Return location for an error, or <code class="literal">NULL</code>
272
- </td>
273
- </tr>
274
- <tr>
275
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
276
- <td> A newly created <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>, or <code class="literal">NULL</code>
277
- </td>
278
- </tr>
279
- </tbody>
280
- </table></div>
281
- </div>
282
- <hr>
283
- <div class="refsect2" lang="en">
284
- <a name="poppler-document-save"></a><h3>poppler_document_save ()</h3>
285
- <pre class="programlisting">gboolean poppler_document_save (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document,
286
- const char *uri,
287
- GError **error);</pre>
288
- <p>
289
- Saves <em class="parameter"><code>document</code></em>. Any change made in the document such as
290
- form fields filled by the user will be saved.
291
- If <em class="parameter"><code>error</code></em> is set, <code class="literal">FALSE</code> will be returned. Possible errors
292
- include those in the <span class="type">G_FILE_ERROR</span> domain.</p>
293
- <p>
294
- </p>
295
- <div class="variablelist"><table border="0">
296
- <col align="left" valign="top">
297
- <tbody>
298
- <tr>
299
- <td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td>
300
- <td> a <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>
301
- </td>
302
- </tr>
303
- <tr>
304
- <td><p><span class="term"><em class="parameter"><code>uri</code></em> :</span></p></td>
305
- <td> uri of file to save
306
- </td>
307
- </tr>
308
- <tr>
309
- <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
310
- <td> return location for an error, or <code class="literal">NULL</code>
311
- </td>
312
- </tr>
313
- <tr>
314
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
315
- <td> <code class="literal">TRUE</code>, if the document was successfully saved
316
- </td>
317
- </tr>
318
- </tbody>
319
- </table></div>
320
- </div>
321
- <hr>
322
- <div class="refsect2" lang="en">
323
- <a name="poppler-document-get-n-pages"></a><h3>poppler_document_get_n_pages ()</h3>
324
- <pre class="programlisting">int poppler_document_get_n_pages (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document);</pre>
325
- <p>
326
- Returns the number of pages in a loaded document.</p>
327
- <p>
328
- </p>
329
- <div class="variablelist"><table border="0">
330
- <col align="left" valign="top">
331
- <tbody>
332
- <tr>
333
- <td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td>
334
- <td> A <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>
335
- </td>
336
- </tr>
337
- <tr>
338
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
339
- <td> Number of pages
340
- </td>
341
- </tr>
342
- </tbody>
343
- </table></div>
344
- </div>
345
- <hr>
346
- <div class="refsect2" lang="en">
347
- <a name="poppler-document-get-page"></a><h3>poppler_document_get_page ()</h3>
348
- <pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> * poppler_document_get_page (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document,
349
- int index);</pre>
350
- <p>
351
- Returns the <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> indexed at <em class="parameter"><code>index</code></em>. This object is owned by the
352
- caller.
353
- </p>
354
- <p>
355
- <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a>s are indexed starting at 0.</p>
356
- <p>
357
- </p>
358
- <div class="variablelist"><table border="0">
359
- <col align="left" valign="top">
360
- <tbody>
361
- <tr>
362
- <td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td>
363
- <td> A <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>
364
- </td>
365
- </tr>
366
- <tr>
367
- <td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td>
368
- <td> a page index
369
- </td>
370
- </tr>
371
- <tr>
372
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
373
- <td> The <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> at <em class="parameter"><code>index</code></em>
374
- </td>
375
- </tr>
376
- </tbody>
377
- </table></div>
378
- </div>
379
- <hr>
380
- <div class="refsect2" lang="en">
381
- <a name="poppler-document-get-page-by-label"></a><h3>poppler_document_get_page_by_label ()</h3>
382
- <pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerPage">PopplerPage</a> * poppler_document_get_page_by_label (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document,
383
- const char *label);</pre>
384
- <p>
385
- Returns the <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> reference by <em class="parameter"><code>label</code></em>. This object is owned by the
386
- caller. <em class="parameter"><code>label</code></em> is a human-readable string representation of the page number,
387
- and can be document specific. Typically, it is a value such as "iii" or "3".
388
- </p>
389
- <p>
390
- By default, "1" refers to the first page.</p>
391
- <p>
392
- </p>
393
- <div class="variablelist"><table border="0">
394
- <col align="left" valign="top">
395
- <tbody>
396
- <tr>
397
- <td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td>
398
- <td> A <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>
399
- </td>
400
- </tr>
401
- <tr>
402
- <td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
403
- <td> a page label
404
- </td>
405
- </tr>
406
- <tr>
407
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
408
- <td> The <a class="link" href="poppler-poppler.html#PopplerPage"><span class="type">PopplerPage</span></a> referenced by <em class="parameter"><code>label</code></em>
409
- </td>
410
- </tr>
411
- </tbody>
412
- </table></div>
413
- </div>
414
- <hr>
415
- <div class="refsect2" lang="en">
416
- <a name="poppler-document-find-dest"></a><h3>poppler_document_find_dest ()</h3>
417
- <pre class="programlisting"><a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest">PopplerDest</a> * poppler_document_find_dest (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document,
418
- const gchar *link_name);</pre>
419
- <p>
420
- Finds named destination <em class="parameter"><code>link_name</code></em> in <em class="parameter"><code>document</code></em></p>
421
- <p>
422
- </p>
423
- <div class="variablelist"><table border="0">
424
- <col align="left" valign="top">
425
- <tbody>
426
- <tr>
427
- <td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td>
428
- <td> A <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>
429
- </td>
430
- </tr>
431
- <tr>
432
- <td><p><span class="term"><em class="parameter"><code>link_name</code></em> :</span></p></td>
433
- <td> a named destination
434
- </td>
435
- </tr>
436
- <tr>
437
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
438
- <td> The <a class="link" href="poppler-poppler-action.html#PopplerDest" title="PopplerDest"><span class="type">PopplerDest</span></a> destination or <code class="literal">NULL</code> if
439
- <em class="parameter"><code>link_name</code></em> is not a destination. Returned value must
440
- be freed with <a class="link" href="poppler-poppler-action.html#poppler-dest-free" title="poppler_dest_free ()"><span class="type">poppler_dest_free</span></a>
441
- </td>
442
- </tr>
443
- </tbody>
444
- </table></div>
445
- </div>
446
- <hr>
447
- <div class="refsect2" lang="en">
448
- <a name="poppler-document-has-attachments"></a><h3>poppler_document_has_attachments ()</h3>
449
- <pre class="programlisting">gboolean poppler_document_has_attachments (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document);</pre>
450
- <p>
451
- Returns <code class="literal">TRUE</code> of <em class="parameter"><code>document</code></em> has any attachments.</p>
452
- <p>
453
- </p>
454
- <div class="variablelist"><table border="0">
455
- <col align="left" valign="top">
456
- <tbody>
457
- <tr>
458
- <td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td>
459
- <td> A <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>
460
- </td>
461
- </tr>
462
- <tr>
463
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
464
- <td> <code class="literal">TRUE</code>, if <em class="parameter"><code>document</code></em> has attachments.
465
- </td>
466
- </tr>
467
- </tbody>
468
- </table></div>
469
- </div>
470
- <hr>
471
- <div class="refsect2" lang="en">
472
- <a name="poppler-document-get-attachments"></a><h3>poppler_document_get_attachments ()</h3>
473
- <pre class="programlisting">GList * poppler_document_get_attachments (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document);</pre>
474
- <p>
475
- Returns a <span class="type">GList</span> containing <a class="link" href="poppler-poppler-attachment.html#PopplerAttachment"><span class="type">PopplerAttachment</span></a>s. These attachments
476
- are unowned, and must be unreffed, and the list must be freed with
477
- <code class="function">g_list_free()</code>.</p>
478
- <p>
479
- </p>
480
- <div class="variablelist"><table border="0">
481
- <col align="left" valign="top">
482
- <tbody>
483
- <tr>
484
- <td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td>
485
- <td> A <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>
486
- </td>
487
- </tr>
488
- <tr>
489
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
490
- <td> a list of available attachments.
491
- </td>
492
- </tr>
493
- </tbody>
494
- </table></div>
495
- </div>
496
- <hr>
497
- <div class="refsect2" lang="en">
498
- <a name="poppler-document-get-form-field"></a><h3>poppler_document_get_form_field ()</h3>
499
- <pre class="programlisting"><a class="link" href="poppler-poppler-form-field.html#PopplerFormField">PopplerFormField</a> * poppler_document_get_form_field (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document,
500
- gint id);</pre>
501
- <p>
502
- Returns the <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> for the given <em class="parameter"><code>id</code></em>. It must be freed with
503
- <code class="function">g_object_unref()</code></p>
504
- <p>
505
- </p>
506
- <div class="variablelist"><table border="0">
507
- <col align="left" valign="top">
508
- <tbody>
509
- <tr>
510
- <td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td>
511
- <td> a <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>
512
- </td>
513
- </tr>
514
- <tr>
515
- <td><p><span class="term"><em class="parameter"><code>id</code></em> :</span></p></td>
516
- <td> an id of a <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a>
517
- </td>
518
- </tr>
519
- <tr>
520
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
521
- <td> a new <a class="link" href="poppler-poppler-form-field.html#PopplerFormField"><span class="type">PopplerFormField</span></a> or NULL if not found
522
- </td>
523
- </tr>
524
- </tbody>
525
- </table></div>
526
- </div>
527
- <hr>
528
- <div class="refsect2" lang="en">
529
- <a name="poppler-index-iter-get-type"></a><h3>poppler_index_iter_get_type ()</h3>
530
- <pre class="programlisting">GType poppler_index_iter_get_type (void);</pre>
531
- <p>
532
- </p>
533
- <div class="variablelist"><table border="0">
534
- <col align="left" valign="top">
535
- <tbody><tr>
536
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
537
- <td>
538
- </td>
539
- </tr></tbody>
540
- </table></div>
541
- </div>
542
- <hr>
543
- <div class="refsect2" lang="en">
544
- <a name="poppler-index-iter-new"></a><h3>poppler_index_iter_new ()</h3>
545
- <pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> * poppler_index_iter_new (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document);</pre>
546
- <p>
547
- Returns the root <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a> for <em class="parameter"><code>document</code></em>, or <code class="literal">NULL</code>. This must be
548
- freed with <a class="link" href="poppler-poppler-document.html#poppler-index-iter-free" title="poppler_index_iter_free ()"><code class="function">poppler_index_iter_free()</code></a>.
549
- </p>
550
- <p>
551
- Certain documents have an index associated with them. This index can be used
552
- to help the user navigate the document, and is similar to a table of
553
- contents. Each node in the index will contain a <a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction"><span class="type">PopplerAction</span></a> that can be
554
- displayed to the user — typically a <span class="type">POPPLER_ACTION_GOTO_DEST</span> or a
555
- <span class="type">POPPLER_ACTION_URI</span>.
556
- </p>
557
- <p>
558
- Here is a simple example of some code that walks the full index:
559
- </p>
560
- <p>
561
- </p>
562
- <div class="informalexample"><pre class="programlisting">
563
- static void
564
- walk_index (PopplerIndexIter *iter)
565
- {
566
- do
567
- {
568
- /* Get the the action and do something with it */
569
- PopplerIndexIter *child = poppler_index_iter_get_child (iter);
570
- if (child)
571
- walk_index (child);
572
- poppler_index_iter_free (child);
573
- }
574
- while (poppler_index_iter_next (iter));
575
- }
576
- ...
577
- {
578
- iter = poppler_index_iter_new (document);
579
- walk_index (iter);
580
- poppler_index_iter_free (iter);
581
- }
582
- </pre></div>
583
- <p>
584
- </p>
585
- <div class="variablelist"><table border="0">
586
- <col align="left" valign="top">
587
- <tbody>
588
- <tr>
589
- <td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td>
590
- <td> a <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>
591
- </td>
592
- </tr>
593
- <tr>
594
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
595
- <td> a new <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a>
596
- </td>
597
- </tr>
598
- </tbody>
599
- </table></div>
600
- </div>
601
- <hr>
602
- <div class="refsect2" lang="en">
603
- <a name="poppler-index-iter-copy"></a><h3>poppler_index_iter_copy ()</h3>
604
- <pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> * poppler_index_iter_copy (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter);</pre>
605
- <p>
606
- Creates a new <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a> as a copy of <em class="parameter"><code>iter</code></em>. This must be freed with
607
- <a class="link" href="poppler-poppler-document.html#poppler-index-iter-free" title="poppler_index_iter_free ()"><code class="function">poppler_index_iter_free()</code></a>.</p>
608
- <p>
609
- </p>
610
- <div class="variablelist"><table border="0">
611
- <col align="left" valign="top">
612
- <tbody>
613
- <tr>
614
- <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
615
- <td> a <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a>
616
- </td>
617
- </tr>
618
- <tr>
619
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
620
- <td> a new <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a>
621
- </td>
622
- </tr>
623
- </tbody>
624
- </table></div>
625
- </div>
626
- <hr>
627
- <div class="refsect2" lang="en">
628
- <a name="poppler-index-iter-free"></a><h3>poppler_index_iter_free ()</h3>
629
- <pre class="programlisting">void poppler_index_iter_free (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter);</pre>
630
- <p>
631
- Frees <em class="parameter"><code>iter</code></em>.</p>
632
- <p>
633
- </p>
634
- <div class="variablelist"><table border="0">
635
- <col align="left" valign="top">
636
- <tbody><tr>
637
- <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
638
- <td> a <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a>
639
- </td>
640
- </tr></tbody>
641
- </table></div>
642
- </div>
643
- <hr>
644
- <div class="refsect2" lang="en">
645
- <a name="poppler-index-iter-get-child"></a><h3>poppler_index_iter_get_child ()</h3>
646
- <pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> * poppler_index_iter_get_child (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *parent);</pre>
647
- <p>
648
- Returns a newly created child of <em class="parameter"><code>parent</code></em>, or <code class="literal">NULL</code> if the iter has no child.
649
- See <a class="link" href="poppler-poppler-document.html#poppler-index-iter-new" title="poppler_index_iter_new ()"><code class="function">poppler_index_iter_new()</code></a> for more information on this function.</p>
650
- <p>
651
- </p>
652
- <div class="variablelist"><table border="0">
653
- <col align="left" valign="top">
654
- <tbody>
655
- <tr>
656
- <td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
657
- <td> a <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a>
658
- </td>
659
- </tr>
660
- <tr>
661
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
662
- <td> a new <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a>
663
- </td>
664
- </tr>
665
- </tbody>
666
- </table></div>
667
- </div>
668
- <hr>
669
- <div class="refsect2" lang="en">
670
- <a name="poppler-index-iter-is-open"></a><h3>poppler_index_iter_is_open ()</h3>
671
- <pre class="programlisting">gboolean poppler_index_iter_is_open (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter);</pre>
672
- <p>
673
- Returns whether this node should be expanded by default to the user. The
674
- document can provide a hint as to how the document's index should be expanded
675
- initially.</p>
676
- <p>
677
- </p>
678
- <div class="variablelist"><table border="0">
679
- <col align="left" valign="top">
680
- <tbody>
681
- <tr>
682
- <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
683
- <td> a <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a>
684
- </td>
685
- </tr>
686
- <tr>
687
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
688
- <td> <code class="literal">TRUE</code>, if the document wants <em class="parameter"><code>iter</code></em> to be expanded
689
- </td>
690
- </tr>
691
- </tbody>
692
- </table></div>
693
- </div>
694
- <hr>
695
- <div class="refsect2" lang="en">
696
- <a name="poppler-index-iter-get-action"></a><h3>poppler_index_iter_get_action ()</h3>
697
- <pre class="programlisting"><a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction">PopplerAction</a> * poppler_index_iter_get_action (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter);</pre>
698
- <p>
699
- Returns the <a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction"><span class="type">PopplerAction</span></a> associated with <em class="parameter"><code>iter</code></em>. It must be freed with
700
- <a class="link" href="poppler-poppler-action.html#poppler-action-free" title="poppler_action_free ()"><code class="function">poppler_action_free()</code></a>.</p>
701
- <p>
702
- </p>
703
- <div class="variablelist"><table border="0">
704
- <col align="left" valign="top">
705
- <tbody>
706
- <tr>
707
- <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
708
- <td> a <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a>
709
- </td>
710
- </tr>
711
- <tr>
712
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
713
- <td> a new <a class="link" href="poppler-poppler-action.html#PopplerAction" title="union PopplerAction"><span class="type">PopplerAction</span></a>
714
- </td>
715
- </tr>
716
- </tbody>
717
- </table></div>
718
- </div>
719
- <hr>
720
- <div class="refsect2" lang="en">
721
- <a name="poppler-index-iter-next"></a><h3>poppler_index_iter_next ()</h3>
722
- <pre class="programlisting">gboolean poppler_index_iter_next (<a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter">PopplerIndexIter</a> *iter);</pre>
723
- <p>
724
- Sets <em class="parameter"><code>iter</code></em> to point to the next action at the current level, if valid. See
725
- <a class="link" href="poppler-poppler-document.html#poppler-index-iter-new" title="poppler_index_iter_new ()"><code class="function">poppler_index_iter_new()</code></a> for more information.</p>
726
- <p>
727
- </p>
728
- <div class="variablelist"><table border="0">
729
- <col align="left" valign="top">
730
- <tbody>
731
- <tr>
732
- <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
733
- <td> a <a class="link" href="poppler-poppler.html#PopplerIndexIter" title="PopplerIndexIter"><span class="type">PopplerIndexIter</span></a>
734
- </td>
735
- </tr>
736
- <tr>
737
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
738
- <td> <code class="literal">TRUE</code>, if <em class="parameter"><code>iter</code></em> was set to the next action
739
- </td>
740
- </tr>
741
- </tbody>
742
- </table></div>
743
- </div>
744
- <hr>
745
- <div class="refsect2" lang="en">
746
- <a name="poppler-font-info-new"></a><h3>poppler_font_info_new ()</h3>
747
- <pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerFontInfo" title="PopplerFontInfo">PopplerFontInfo</a> * poppler_font_info_new (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document);</pre>
748
- <p>
749
- </p>
750
- <div class="variablelist"><table border="0">
751
- <col align="left" valign="top">
752
- <tbody>
753
- <tr>
754
- <td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td>
755
- <td>
756
- </td>
757
- </tr>
758
- <tr>
759
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
760
- <td>
761
- </td>
762
- </tr>
763
- </tbody>
764
- </table></div>
765
- </div>
766
- <hr>
767
- <div class="refsect2" lang="en">
768
- <a name="poppler-font-info-scan"></a><h3>poppler_font_info_scan ()</h3>
769
- <pre class="programlisting">gboolean poppler_font_info_scan (<a class="link" href="poppler-poppler.html#PopplerFontInfo" title="PopplerFontInfo">PopplerFontInfo</a> *font_info,
770
- int n_pages,
771
- <a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> **iter);</pre>
772
- <p>
773
- </p>
774
- <div class="variablelist"><table border="0">
775
- <col align="left" valign="top">
776
- <tbody>
777
- <tr>
778
- <td><p><span class="term"><em class="parameter"><code>font_info</code></em> :</span></p></td>
779
- <td>
780
- </td>
781
- </tr>
782
- <tr>
783
- <td><p><span class="term"><em class="parameter"><code>n_pages</code></em> :</span></p></td>
784
- <td>
785
- </td>
786
- </tr>
787
- <tr>
788
- <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
789
- <td>
790
- </td>
791
- </tr>
792
- <tr>
793
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
794
- <td>
795
- </td>
796
- </tr>
797
- </tbody>
798
- </table></div>
799
- </div>
800
- <hr>
801
- <div class="refsect2" lang="en">
802
- <a name="poppler-font-info-free"></a><h3>poppler_font_info_free ()</h3>
803
- <pre class="programlisting">void poppler_font_info_free (<a class="link" href="poppler-poppler.html#PopplerFontInfo" title="PopplerFontInfo">PopplerFontInfo</a> *font_info);</pre>
804
- <p>
805
- </p>
806
- <div class="variablelist"><table border="0">
807
- <col align="left" valign="top">
808
- <tbody><tr>
809
- <td><p><span class="term"><em class="parameter"><code>font_info</code></em> :</span></p></td>
810
- <td>
811
- </td>
812
- </tr></tbody>
813
- </table></div>
814
- </div>
815
- <hr>
816
- <div class="refsect2" lang="en">
817
- <a name="poppler-fonts-iter-get-type"></a><h3>poppler_fonts_iter_get_type ()</h3>
818
- <pre class="programlisting">GType poppler_fonts_iter_get_type (void);</pre>
819
- <p>
820
- </p>
821
- <div class="variablelist"><table border="0">
822
- <col align="left" valign="top">
823
- <tbody><tr>
824
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
825
- <td>
826
- </td>
827
- </tr></tbody>
828
- </table></div>
829
- </div>
830
- <hr>
831
- <div class="refsect2" lang="en">
832
- <a name="poppler-fonts-iter-copy"></a><h3>poppler_fonts_iter_copy ()</h3>
833
- <pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> * poppler_fonts_iter_copy (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre>
834
- <p>
835
- </p>
836
- <div class="variablelist"><table border="0">
837
- <col align="left" valign="top">
838
- <tbody>
839
- <tr>
840
- <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
841
- <td>
842
- </td>
843
- </tr>
844
- <tr>
845
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
846
- <td>
847
- </td>
848
- </tr>
849
- </tbody>
850
- </table></div>
851
- </div>
852
- <hr>
853
- <div class="refsect2" lang="en">
854
- <a name="poppler-fonts-iter-free"></a><h3>poppler_fonts_iter_free ()</h3>
855
- <pre class="programlisting">void poppler_fonts_iter_free (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre>
856
- <p>
857
- </p>
858
- <div class="variablelist"><table border="0">
859
- <col align="left" valign="top">
860
- <tbody><tr>
861
- <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
862
- <td>
863
- </td>
864
- </tr></tbody>
865
- </table></div>
866
- </div>
867
- <hr>
868
- <div class="refsect2" lang="en">
869
- <a name="poppler-fonts-iter-get-name"></a><h3>poppler_fonts_iter_get_name ()</h3>
870
- <pre class="programlisting">const char * poppler_fonts_iter_get_name (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre>
871
- <p>
872
- </p>
873
- <div class="variablelist"><table border="0">
874
- <col align="left" valign="top">
875
- <tbody>
876
- <tr>
877
- <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
878
- <td>
879
- </td>
880
- </tr>
881
- <tr>
882
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
883
- <td>
884
- </td>
885
- </tr>
886
- </tbody>
887
- </table></div>
888
- </div>
889
- <hr>
890
- <div class="refsect2" lang="en">
891
- <a name="poppler-fonts-iter-get-full-name"></a><h3>poppler_fonts_iter_get_full_name ()</h3>
892
- <pre class="programlisting">const char * poppler_fonts_iter_get_full_name (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre>
893
- <p>
894
- </p>
895
- <div class="variablelist"><table border="0">
896
- <col align="left" valign="top">
897
- <tbody>
898
- <tr>
899
- <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
900
- <td>
901
- </td>
902
- </tr>
903
- <tr>
904
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
905
- <td>
906
- </td>
907
- </tr>
908
- </tbody>
909
- </table></div>
910
- </div>
911
- <hr>
912
- <div class="refsect2" lang="en">
913
- <a name="poppler-fonts-iter-get-font-type"></a><h3>poppler_fonts_iter_get_font_type ()</h3>
914
- <pre class="programlisting"><a class="link" href="poppler-poppler-document.html#PopplerFontType" title="enum PopplerFontType">PopplerFontType</a> poppler_fonts_iter_get_font_type (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre>
915
- <p>
916
- </p>
917
- <div class="variablelist"><table border="0">
918
- <col align="left" valign="top">
919
- <tbody>
920
- <tr>
921
- <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
922
- <td>
923
- </td>
924
- </tr>
925
- <tr>
926
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
927
- <td>
928
- </td>
929
- </tr>
930
- </tbody>
931
- </table></div>
932
- </div>
933
- <hr>
934
- <div class="refsect2" lang="en">
935
- <a name="poppler-fonts-iter-is-embedded"></a><h3>poppler_fonts_iter_is_embedded ()</h3>
936
- <pre class="programlisting">gboolean poppler_fonts_iter_is_embedded (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre>
937
- <p>
938
- </p>
939
- <div class="variablelist"><table border="0">
940
- <col align="left" valign="top">
941
- <tbody>
942
- <tr>
943
- <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
944
- <td>
945
- </td>
946
- </tr>
947
- <tr>
948
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
949
- <td>
950
- </td>
951
- </tr>
952
- </tbody>
953
- </table></div>
954
- </div>
955
- <hr>
956
- <div class="refsect2" lang="en">
957
- <a name="poppler-fonts-iter-is-subset"></a><h3>poppler_fonts_iter_is_subset ()</h3>
958
- <pre class="programlisting">gboolean poppler_fonts_iter_is_subset (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre>
959
- <p>
960
- </p>
961
- <div class="variablelist"><table border="0">
962
- <col align="left" valign="top">
963
- <tbody>
964
- <tr>
965
- <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
966
- <td>
967
- </td>
968
- </tr>
969
- <tr>
970
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
971
- <td>
972
- </td>
973
- </tr>
974
- </tbody>
975
- </table></div>
976
- </div>
977
- <hr>
978
- <div class="refsect2" lang="en">
979
- <a name="poppler-fonts-iter-next"></a><h3>poppler_fonts_iter_next ()</h3>
980
- <pre class="programlisting">gboolean poppler_fonts_iter_next (<a class="link" href="poppler-poppler.html#PopplerFontsIter" title="PopplerFontsIter">PopplerFontsIter</a> *iter);</pre>
981
- <p>
982
- </p>
983
- <div class="variablelist"><table border="0">
984
- <col align="left" valign="top">
985
- <tbody>
986
- <tr>
987
- <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
988
- <td>
989
- </td>
990
- </tr>
991
- <tr>
992
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
993
- <td>
994
- </td>
995
- </tr>
996
- </tbody>
997
- </table></div>
998
- </div>
999
- <hr>
1000
- <div class="refsect2" lang="en">
1001
- <a name="poppler-ps-file-new"></a><h3>poppler_ps_file_new ()</h3>
1002
- <pre class="programlisting"><a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> * poppler_ps_file_new (<a class="link" href="poppler-poppler.html#PopplerDocument">PopplerDocument</a> *document,
1003
- const char *filename,
1004
- int first_page,
1005
- int n_pages);</pre>
1006
- <p>
1007
- Create a new postscript file to render to</p>
1008
- <p>
1009
- </p>
1010
- <div class="variablelist"><table border="0">
1011
- <col align="left" valign="top">
1012
- <tbody>
1013
- <tr>
1014
- <td><p><span class="term"><em class="parameter"><code>document</code></em> :</span></p></td>
1015
- <td> a <a class="link" href="poppler-poppler.html#PopplerDocument"><span class="type">PopplerDocument</span></a>
1016
- </td>
1017
- </tr>
1018
- <tr>
1019
- <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
1020
- <td> the path of the output filename
1021
- </td>
1022
- </tr>
1023
- <tr>
1024
- <td><p><span class="term"><em class="parameter"><code>first_page</code></em> :</span></p></td>
1025
- <td> the first page to print
1026
- </td>
1027
- </tr>
1028
- <tr>
1029
- <td><p><span class="term"><em class="parameter"><code>n_pages</code></em> :</span></p></td>
1030
- <td> the number of pages to print
1031
- </td>
1032
- </tr>
1033
- <tr>
1034
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1035
- <td> a PopplerPSFile
1036
- </td>
1037
- </tr>
1038
- </tbody>
1039
- </table></div>
1040
- </div>
1041
- <hr>
1042
- <div class="refsect2" lang="en">
1043
- <a name="poppler-ps-file-set-paper-size"></a><h3>poppler_ps_file_set_paper_size ()</h3>
1044
- <pre class="programlisting">void poppler_ps_file_set_paper_size (<a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> *ps_file,
1045
- double width,
1046
- double height);</pre>
1047
- <p>
1048
- Set the output paper size. These values will end up in the
1049
- DocumentMedia, the BoundingBox DSC comments and other places in the
1050
- generated PostScript.</p>
1051
- <p>
1052
- </p>
1053
- <div class="variablelist"><table border="0">
1054
- <col align="left" valign="top">
1055
- <tbody>
1056
- <tr>
1057
- <td><p><span class="term"><em class="parameter"><code>ps_file</code></em> :</span></p></td>
1058
- <td> a PopplerPSFile which was not yet printed to.
1059
- </td>
1060
- </tr>
1061
- <tr>
1062
- <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
1063
- <td> the paper width in 1/72 inch
1064
- </td>
1065
- </tr>
1066
- <tr>
1067
- <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
1068
- <td> the paper height in 1/72 inch
1069
- </td>
1070
- </tr>
1071
- </tbody>
1072
- </table></div>
1073
- </div>
1074
- <hr>
1075
- <div class="refsect2" lang="en">
1076
- <a name="poppler-ps-file-set-duplex"></a><h3>poppler_ps_file_set_duplex ()</h3>
1077
- <pre class="programlisting">void poppler_ps_file_set_duplex (<a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> *ps_file,
1078
- gboolean duplex);</pre>
1079
- <p>
1080
- Enable or disable Duplex printing.</p>
1081
- <p>
1082
- </p>
1083
- <div class="variablelist"><table border="0">
1084
- <col align="left" valign="top">
1085
- <tbody>
1086
- <tr>
1087
- <td><p><span class="term"><em class="parameter"><code>ps_file</code></em> :</span></p></td>
1088
- <td> a PopplerPSFile which was not yet printed to
1089
- </td>
1090
- </tr>
1091
- <tr>
1092
- <td><p><span class="term"><em class="parameter"><code>duplex</code></em> :</span></p></td>
1093
- <td> whether to force duplex printing (on printers which support this)
1094
- </td>
1095
- </tr>
1096
- </tbody>
1097
- </table></div>
1098
- </div>
1099
- <hr>
1100
- <div class="refsect2" lang="en">
1101
- <a name="poppler-ps-file-free"></a><h3>poppler_ps_file_free ()</h3>
1102
- <pre class="programlisting">void poppler_ps_file_free (<a class="link" href="poppler-poppler.html#PopplerPSFile" title="PopplerPSFile">PopplerPSFile</a> *ps_file);</pre>
1103
- <p>
1104
- Frees <em class="parameter"><code>ps_file</code></em></p>
1105
- <p>
1106
- </p>
1107
- <div class="variablelist"><table border="0">
1108
- <col align="left" valign="top">
1109
- <tbody><tr>
1110
- <td><p><span class="term"><em class="parameter"><code>ps_file</code></em> :</span></p></td>
1111
- <td> a PopplerPSFile
1112
- </td>
1113
- </tr></tbody>
1114
- </table></div>
1115
- </div>
1116
- </div>
1117
- </div>
1118
- <div class="footer">
1119
- <hr>
1120
- Generated by GTK-Doc V1.11</div>
1121
- </body>
1122
- </html>