node-poppler 5.1.4 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/README.md +2 -0
  2. package/package.json +13 -13
  3. package/src/index.js +20 -8
  4. package/API.md +0 -465
  5. package/CHANGELOG.md +0 -976
  6. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Annot.h +0 -1783
  7. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/AnnotStampImageHelper.h +0 -68
  8. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Array.h +0 -92
  9. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/BBoxOutputDev.h +0 -54
  10. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CMap.h +0 -128
  11. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CachedFile.h +0 -149
  12. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CairoFontEngine.h +0 -122
  13. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CairoOutputDev.h +0 -468
  14. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CairoRescaleBox.h +0 -60
  15. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Catalog.h +0 -318
  16. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CertificateInfo.h +0 -129
  17. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CharCodeToUnicode.h +0 -143
  18. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CharTypes.h +0 -24
  19. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CurlCachedFile.h +0 -37
  20. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CurlPDFDocBuilder.h +0 -32
  21. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/DateInfo.h +0 -44
  22. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Decrypt.h +0 -147
  23. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Dict.h +0 -126
  24. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Error.h +0 -59
  25. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/ErrorCodes.h +0 -54
  26. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/FDPDFDocBuilder.h +0 -36
  27. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/FILECacheLoader.h +0 -34
  28. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/FileSpec.h +0 -85
  29. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/FontEncodingTables.h +0 -20
  30. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/FontInfo.h +0 -109
  31. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Form.h +0 -734
  32. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Function.h +0 -251
  33. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Gfx.h +0 -373
  34. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/GfxFont.h +0 -466
  35. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/GfxState.h +0 -1759
  36. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/GfxState_helpers.h +0 -90
  37. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/GlobalParams.h +0 -221
  38. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Hints.h +0 -91
  39. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/JArithmeticDecoder.h +0 -131
  40. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/JBIG2Stream.h +0 -130
  41. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/JPEG2000Stream.h +0 -54
  42. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/JSInfo.h +0 -65
  43. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Lexer.h +0 -113
  44. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Linearization.h +0 -43
  45. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Link.h +0 -566
  46. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/LocalPDFDocBuilder.h +0 -32
  47. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/MarkedContentOutputDev.h +0 -132
  48. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Movie.h +0 -123
  49. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/NameToCharCode.h +0 -52
  50. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/NameToUnicodeTable.h +0 -4300
  51. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Object.h +0 -678
  52. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/OptionalContent.h +0 -117
  53. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Outline.h +0 -122
  54. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/OutputDev.h +0 -379
  55. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PDFDoc.h +0 -419
  56. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PDFDocBuilder.h +0 -47
  57. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PDFDocEncoding.h +0 -43
  58. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PDFDocFactory.h +0 -58
  59. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PSOutputDev.h +0 -549
  60. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PSTokenizer.h +0 -47
  61. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Page.h +0 -273
  62. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PageTransition.h +0 -105
  63. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Parser.h +0 -76
  64. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PopplerCache.h +0 -65
  65. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PreScanOutputDev.h +0 -148
  66. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/ProfileData.h +0 -35
  67. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Rendition.h +0 -164
  68. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/SecurityHandler.h +0 -131
  69. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Sound.h +0 -82
  70. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/SplashOutputDev.h +0 -413
  71. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Stream-CCITT.h +0 -334
  72. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Stream.h +0 -1504
  73. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/StructElement.h +0 -406
  74. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/StructTreeRoot.h +0 -89
  75. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/TextOutputDev.h +0 -918
  76. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UTF.h +0 -112
  77. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeCClassTables.h +0 -983
  78. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeCompTables.h +0 -328
  79. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeDecompTables.h +0 -7181
  80. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeMap.h +0 -128
  81. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeMapFuncs.h +0 -35
  82. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeMapTables.h +0 -84
  83. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeTypeTable.h +0 -49
  84. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/ViewerPreferences.h +0 -87
  85. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/XRef.h +0 -325
  86. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-destination.h +0 -69
  87. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-document.h +0 -135
  88. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-embedded-file.h +0 -55
  89. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-font-private.h +0 -68
  90. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-font.h +0 -95
  91. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-global.h +0 -132
  92. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-image.h +0 -74
  93. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-page-renderer.h +0 -77
  94. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-page-transition.h +0 -85
  95. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-page.h +0 -225
  96. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-rectangle.h +0 -66
  97. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-toc.h +0 -72
  98. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-version.h +0 -39
  99. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler_cpp_export.h +0 -42
  100. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiBase.h +0 -66
  101. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiEncodings.h +0 -43
  102. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiIdentifier.h +0 -52
  103. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiTrueType.h +0 -190
  104. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiType1.h +0 -70
  105. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiType1C.h +0 -263
  106. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-action.h +0 -454
  107. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-annot.h +0 -333
  108. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-attachment.h +0 -123
  109. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-date.h +0 -32
  110. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-document.h +0 -541
  111. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-enums.h +0 -191
  112. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-features.h +0 -88
  113. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-form-field.h +0 -254
  114. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-layer.h +0 -50
  115. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-macros.h +0 -42
  116. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-media.h +0 -80
  117. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-movie.h +0 -81
  118. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-page.h +0 -424
  119. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-structure-element.h +0 -425
  120. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler.h +0 -259
  121. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/GooCheckedOps.h +0 -116
  122. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/GooLikely.h +0 -22
  123. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/GooString.h +0 -262
  124. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/GooTimer.h +0 -59
  125. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/ImgWriter.h +0 -39
  126. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/JpegWriter.h +0 -69
  127. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/PNGWriter.h +0 -68
  128. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/TiffWriter.h +0 -70
  129. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/gdir.h +0 -96
  130. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/gfile.h +0 -156
  131. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/gmem.h +0 -201
  132. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/grandom.h +0 -21
  133. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/gstrtod.h +0 -45
  134. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/poppler-config.h +0 -155
  135. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/poppler_private_export.h +0 -42
  136. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/Splash.h +0 -336
  137. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashBitmap.h +0 -127
  138. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashClip.h +0 -131
  139. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashErrorCodes.h +0 -50
  140. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFTFont.h +0 -71
  141. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFTFontEngine.h +0 -72
  142. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFTFontFile.h +0 -64
  143. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFont.h +0 -116
  144. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFontEngine.h +0 -89
  145. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFontFile.h +0 -98
  146. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFontFileID.h +0 -40
  147. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashGlyphBitmap.h +0 -23
  148. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashMath.h +0 -215
  149. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashPath.h +0 -138
  150. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashPattern.h +0 -107
  151. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashScreen.h +0 -87
  152. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashState.h +0 -132
  153. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashTypes.h +0 -248
  154. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashXPath.h +0 -95
  155. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashXPathScanner.h +0 -136
  156. package/src/lib/win32/poppler-22.04.0/Library/lib/pkgconfig/poppler-cpp.pc +0 -12
  157. package/src/lib/win32/poppler-22.04.0/Library/lib/pkgconfig/poppler-glib.pc +0 -12
  158. package/src/lib/win32/poppler-22.04.0/Library/lib/pkgconfig/poppler.pc +0 -10
  159. package/src/lib/win32/poppler-22.04.0/Library/lib/poppler-cpp.lib +0 -0
  160. package/src/lib/win32/poppler-22.04.0/Library/lib/poppler-glib.lib +0 -0
  161. package/src/lib/win32/poppler-22.04.0/Library/lib/poppler.lib +0 -0
  162. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfattach.1 +0 -60
  163. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfdetach.1 +0 -94
  164. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdffonts.1 +0 -128
  165. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfimages.1 +0 -265
  166. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfinfo.1 +0 -198
  167. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfseparate.1 +0 -60
  168. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdftocairo.1 +0 -346
  169. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdftohtml.1 +0 -118
  170. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdftoppm.1 +0 -230
  171. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdftops.1 +0 -267
  172. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdftotext.1 +0 -157
  173. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfunite.1 +0 -43
  174. package/src/lib/win32/poppler-22.04.0/share/poppler/CMakeLists.txt +0 -309
  175. package/src/lib/win32/poppler-22.04.0/share/poppler/Makefile +0 -333
  176. package/tsconfig.json +0 -9
@@ -1,80 +0,0 @@
1
- /* poppler-media.h: glib interface to MediaRendition
2
- *
3
- * Copyright (C) 2010 Carlos Garcia Campos <carlosgc@gnome.org>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License as published by
7
- * the Free Software Foundation; either version 2, or (at your option)
8
- * any later version.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
18
- */
19
-
20
- #ifndef __POPPLER_MEDIA_H__
21
- #define __POPPLER_MEDIA_H__
22
-
23
- #include <glib-object.h>
24
- #include "poppler.h"
25
-
26
- G_BEGIN_DECLS
27
-
28
- #define POPPLER_TYPE_MEDIA (poppler_media_get_type())
29
- #define POPPLER_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_MEDIA, PopplerMedia))
30
- #define POPPLER_IS_MEDIA(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_MEDIA))
31
-
32
- /* FIXME: this should be generic (PopplerSaveToCallbackFunc) */
33
-
34
- /**
35
- * PopplerMediaSaveFunc:
36
- * @buf: (array length=count) (element-type guint8): buffer containing
37
- * bytes to be written.
38
- * @count: number of bytes in @buf.
39
- * @data: (closure): user data passed to poppler_media_save_to_callback()
40
- * @error: GError to set on error, or %NULL
41
- *
42
- * Specifies the type of the function passed to
43
- * poppler_media_save_to_callback(). It is called once for each block of
44
- * bytes that is "written" by poppler_media_save_to_callback(). If
45
- * successful it should return %TRUE. If an error occurs it should set
46
- * @error and return %FALSE, in which case poppler_media_save_to_callback()
47
- * will fail with the same error.
48
- *
49
- * Returns: %TRUE if successful, %FALSE (with @error set) if failed.
50
- *
51
- * Since: 0.14
52
- */
53
- typedef gboolean (*PopplerMediaSaveFunc)(const gchar *buf, gsize count, gpointer data, GError **error);
54
-
55
- POPPLER_PUBLIC
56
- GType poppler_media_get_type(void) G_GNUC_CONST;
57
- POPPLER_PUBLIC
58
- gboolean poppler_media_is_embedded(PopplerMedia *poppler_media);
59
- POPPLER_PUBLIC
60
- const gchar *poppler_media_get_filename(PopplerMedia *poppler_media);
61
- POPPLER_PUBLIC
62
- const gchar *poppler_media_get_mime_type(PopplerMedia *poppler_media);
63
- POPPLER_PUBLIC
64
- gboolean poppler_media_get_auto_play(PopplerMedia *poppler_media);
65
- POPPLER_PUBLIC
66
- gboolean poppler_media_get_show_controls(PopplerMedia *poppler_media);
67
- POPPLER_PUBLIC
68
- gfloat poppler_media_get_repeat_count(PopplerMedia *poppler_media);
69
- POPPLER_PUBLIC
70
- gboolean poppler_media_save(PopplerMedia *poppler_media, const char *filename, GError **error);
71
- #ifndef G_OS_WIN32
72
- POPPLER_PUBLIC
73
- gboolean poppler_media_save_to_fd(PopplerMedia *poppler_media, int fd, GError **error);
74
- #endif
75
- POPPLER_PUBLIC
76
- gboolean poppler_media_save_to_callback(PopplerMedia *poppler_media, PopplerMediaSaveFunc save_func, gpointer user_data, GError **error);
77
-
78
- G_END_DECLS
79
-
80
- #endif /* __POPPLER_MEDIA_H__ */
@@ -1,81 +0,0 @@
1
- /* poppler-movie.h: glib interface to Movie
2
- *
3
- * Copyright (C) 2010 Carlos Garcia Campos <carlosgc@gnome.org>
4
- * Copyright (C) 2008 Hugo Mercier <hmercier31[@]gmail.com>
5
- * Copyright (C) 2017 Francesco Poli <invernomuto@paranoici.org>
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU General Public License as published by
9
- * the Free Software Foundation; either version 2, or (at your option)
10
- * any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, write to the Free Software
19
- * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
20
- */
21
-
22
- #ifndef __POPPLER_MOVIE_H__
23
- #define __POPPLER_MOVIE_H__
24
-
25
- #include <glib-object.h>
26
- #include "poppler.h"
27
-
28
- G_BEGIN_DECLS
29
-
30
- #define POPPLER_TYPE_MOVIE (poppler_movie_get_type())
31
- #define POPPLER_MOVIE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_MOVIE, PopplerMovie))
32
- #define POPPLER_IS_MOVIE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_MOVIE))
33
-
34
- /**
35
- * PopplerMoviePlayMode:
36
- * @POPPLER_MOVIE_PLAY_MODE_ONCE: the movie should be played once and controls should be closed at the end.
37
- * @POPPLER_MOVIE_PLAY_MODE_OPEN: the movie should be played once, but controls should be left open.
38
- * @POPPLER_MOVIE_PLAY_MODE_REPEAT: the movie should be played in loop, until manually stopped.
39
- * @POPPLER_MOVIE_PLAY_MODE_PALINDROME: the movie should be played forward and backward, forward and backward,
40
- * and so forth, until manually stopped.
41
- *
42
- * Play mode enum values.
43
- *
44
- * Since: 0.54
45
- */
46
- typedef enum
47
- {
48
- POPPLER_MOVIE_PLAY_MODE_ONCE,
49
- POPPLER_MOVIE_PLAY_MODE_OPEN,
50
- POPPLER_MOVIE_PLAY_MODE_REPEAT,
51
- POPPLER_MOVIE_PLAY_MODE_PALINDROME
52
- } PopplerMoviePlayMode;
53
-
54
- POPPLER_PUBLIC
55
- GType poppler_movie_get_type(void) G_GNUC_CONST;
56
- POPPLER_PUBLIC
57
- const gchar *poppler_movie_get_filename(PopplerMovie *poppler_movie);
58
- POPPLER_PUBLIC
59
- gboolean poppler_movie_need_poster(PopplerMovie *poppler_movie);
60
- POPPLER_PUBLIC
61
- gboolean poppler_movie_show_controls(PopplerMovie *poppler_movie);
62
- POPPLER_PUBLIC
63
- PopplerMoviePlayMode poppler_movie_get_play_mode(PopplerMovie *poppler_movie);
64
- POPPLER_PUBLIC
65
- gboolean poppler_movie_is_synchronous(PopplerMovie *poppler_movie);
66
- POPPLER_PUBLIC
67
- gdouble poppler_movie_get_volume(PopplerMovie *poppler_movie);
68
- POPPLER_PUBLIC
69
- gdouble poppler_movie_get_rate(PopplerMovie *poppler_movie);
70
- POPPLER_PUBLIC
71
- gushort poppler_movie_get_rotation_angle(PopplerMovie *poppler_movie);
72
- POPPLER_PUBLIC
73
- guint64 poppler_movie_get_start(PopplerMovie *poppler_movie);
74
- POPPLER_PUBLIC
75
- guint64 poppler_movie_get_duration(PopplerMovie *poppler_movie);
76
- POPPLER_PUBLIC
77
- void poppler_movie_get_aspect(PopplerMovie *poppler_movie, gint *width, gint *height);
78
-
79
- G_END_DECLS
80
-
81
- #endif /* __POPPLER_MOVIE_H__ */
@@ -1,424 +0,0 @@
1
- /* poppler-page.h: glib interface to poppler
2
- * Copyright (C) 2004, Red Hat, Inc.
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation; either version 2, or (at your option)
7
- * any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with this program; if not, write to the Free Software
16
- * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
17
- */
18
-
19
- #ifndef __POPPLER_PAGE_H__
20
- #define __POPPLER_PAGE_H__
21
-
22
- #include <glib-object.h>
23
-
24
- #include "poppler.h"
25
-
26
- #include <cairo.h>
27
-
28
- G_BEGIN_DECLS
29
-
30
- #define POPPLER_TYPE_PAGE (poppler_page_get_type())
31
- #define POPPLER_PAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), POPPLER_TYPE_PAGE, PopplerPage))
32
- #define POPPLER_IS_PAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), POPPLER_TYPE_PAGE))
33
-
34
- POPPLER_PUBLIC
35
- GType poppler_page_get_type(void) G_GNUC_CONST;
36
-
37
- POPPLER_PUBLIC
38
- void poppler_page_render(PopplerPage *page, cairo_t *cairo);
39
- POPPLER_PUBLIC
40
- void poppler_page_render_for_printing(PopplerPage *page, cairo_t *cairo);
41
- POPPLER_PUBLIC
42
- void poppler_page_render_for_printing_with_options(PopplerPage *page, cairo_t *cairo, PopplerPrintFlags options);
43
- POPPLER_PUBLIC
44
- cairo_surface_t *poppler_page_get_thumbnail(PopplerPage *page);
45
- POPPLER_PUBLIC
46
- void poppler_page_render_selection(PopplerPage *page, cairo_t *cairo, PopplerRectangle *selection, PopplerRectangle *old_selection, PopplerSelectionStyle style, PopplerColor *glyph_color, PopplerColor *background_color);
47
-
48
- POPPLER_PUBLIC
49
- void poppler_page_get_size(PopplerPage *page, double *width, double *height);
50
- POPPLER_PUBLIC
51
- int poppler_page_get_index(PopplerPage *page);
52
- POPPLER_PUBLIC
53
- gchar *poppler_page_get_label(PopplerPage *page);
54
- POPPLER_PUBLIC
55
- double poppler_page_get_duration(PopplerPage *page);
56
- POPPLER_PUBLIC
57
- PopplerPageTransition *poppler_page_get_transition(PopplerPage *page);
58
- POPPLER_PUBLIC
59
- gboolean poppler_page_get_thumbnail_size(PopplerPage *page, int *width, int *height);
60
- POPPLER_PUBLIC
61
- GList *poppler_page_find_text_with_options(PopplerPage *page, const char *text, PopplerFindFlags options);
62
- POPPLER_PUBLIC
63
- GList *poppler_page_find_text(PopplerPage *page, const char *text);
64
- POPPLER_PUBLIC
65
- void poppler_page_render_to_ps(PopplerPage *page, PopplerPSFile *ps_file);
66
- POPPLER_PUBLIC
67
- char *poppler_page_get_text(PopplerPage *page);
68
- POPPLER_PUBLIC
69
- char *poppler_page_get_text_for_area(PopplerPage *page, PopplerRectangle *area);
70
- POPPLER_PUBLIC
71
- char *poppler_page_get_selected_text(PopplerPage *page, PopplerSelectionStyle style, PopplerRectangle *selection);
72
- POPPLER_PUBLIC
73
- cairo_region_t *poppler_page_get_selected_region(PopplerPage *page, gdouble scale, PopplerSelectionStyle style, PopplerRectangle *selection);
74
- POPPLER_PUBLIC
75
- GList *poppler_page_get_selection_region(PopplerPage *page, gdouble scale, PopplerSelectionStyle style, PopplerRectangle *selection) G_GNUC_DEPRECATED_FOR(poppler_page_get_selected_region);
76
- POPPLER_PUBLIC
77
- void poppler_page_selection_region_free(GList *region) G_GNUC_DEPRECATED_FOR(cairo_region_destroy);
78
- POPPLER_PUBLIC
79
- GList *poppler_page_get_link_mapping(PopplerPage *page);
80
- POPPLER_PUBLIC
81
- void poppler_page_free_link_mapping(GList *list);
82
- POPPLER_PUBLIC
83
- GList *poppler_page_get_image_mapping(PopplerPage *page);
84
- POPPLER_PUBLIC
85
- void poppler_page_free_image_mapping(GList *list);
86
- POPPLER_PUBLIC
87
- cairo_surface_t *poppler_page_get_image(PopplerPage *page, gint image_id);
88
- POPPLER_PUBLIC
89
- GList *poppler_page_get_form_field_mapping(PopplerPage *page);
90
- POPPLER_PUBLIC
91
- void poppler_page_free_form_field_mapping(GList *list);
92
- POPPLER_PUBLIC
93
- GList *poppler_page_get_annot_mapping(PopplerPage *page);
94
- POPPLER_PUBLIC
95
- void poppler_page_free_annot_mapping(GList *list);
96
- POPPLER_PUBLIC
97
- void poppler_page_add_annot(PopplerPage *page, PopplerAnnot *annot);
98
- POPPLER_PUBLIC
99
- void poppler_page_remove_annot(PopplerPage *page, PopplerAnnot *annot);
100
- POPPLER_PUBLIC
101
- void poppler_page_get_crop_box(PopplerPage *page, PopplerRectangle *rect);
102
- POPPLER_PUBLIC
103
- gboolean poppler_page_get_bounding_box(PopplerPage *page, PopplerRectangle *rect);
104
- POPPLER_PUBLIC
105
- gboolean poppler_page_get_text_layout(PopplerPage *page, PopplerRectangle **rectangles, guint *n_rectangles);
106
- POPPLER_PUBLIC
107
- gboolean poppler_page_get_text_layout_for_area(PopplerPage *page, PopplerRectangle *area, PopplerRectangle **rectangles, guint *n_rectangles);
108
- POPPLER_PUBLIC
109
- GList *poppler_page_get_text_attributes(PopplerPage *page);
110
- POPPLER_PUBLIC
111
- void poppler_page_free_text_attributes(GList *list);
112
- POPPLER_PUBLIC
113
- GList *poppler_page_get_text_attributes_for_area(PopplerPage *page, PopplerRectangle *area);
114
-
115
- /* A rectangle on a page, with coordinates in PDF points. */
116
- #define POPPLER_TYPE_RECTANGLE (poppler_rectangle_get_type())
117
- /**
118
- * PopplerRectangle:
119
- * @x1: x coordinate of lower left corner
120
- * @y1: y coordinate of lower left corner
121
- * @x2: x coordinate of upper right corner
122
- * @y2: y coordinate of upper right corner
123
- *
124
- * A #PopplerRectangle is used to describe
125
- * locations on a page and bounding boxes
126
- */
127
- struct _PopplerRectangle
128
- {
129
- gdouble x1;
130
- gdouble y1;
131
- gdouble x2;
132
- gdouble y2;
133
- };
134
-
135
- POPPLER_PUBLIC
136
- GType poppler_rectangle_get_type(void) G_GNUC_CONST;
137
- POPPLER_PUBLIC
138
- PopplerRectangle *poppler_rectangle_new(void);
139
- POPPLER_PUBLIC
140
- PopplerRectangle *poppler_rectangle_copy(PopplerRectangle *rectangle);
141
- POPPLER_PUBLIC
142
- void poppler_rectangle_free(PopplerRectangle *rectangle);
143
- POPPLER_PUBLIC
144
- gboolean poppler_rectangle_find_get_match_continued(const PopplerRectangle *rectangle);
145
- POPPLER_PUBLIC
146
- gboolean poppler_rectangle_find_get_ignored_hyphen(const PopplerRectangle *rectangle);
147
-
148
- /* A point on a page, with coordinates in PDF points. */
149
- #define POPPLER_TYPE_POINT (poppler_point_get_type())
150
- /**
151
- * PopplerPoint:
152
- * @x: x coordinate
153
- * @y: y coordinate
154
- *
155
- * A #PopplerPoint is used to describe a location point on a page
156
- */
157
- struct _PopplerPoint
158
- {
159
- gdouble x;
160
- gdouble y;
161
- };
162
-
163
- POPPLER_PUBLIC
164
- GType poppler_point_get_type(void) G_GNUC_CONST;
165
- POPPLER_PUBLIC
166
- PopplerPoint *poppler_point_new(void);
167
- POPPLER_PUBLIC
168
- PopplerPoint *poppler_point_copy(PopplerPoint *point);
169
- POPPLER_PUBLIC
170
- void poppler_point_free(PopplerPoint *point);
171
-
172
- /* PopplerQuadrilateral */
173
-
174
- /* A quadrilateral encompasses a word or group of contiguous words in the
175
- * text underlying the annotation. The coordinates for each quadrilateral are
176
- * given in the order x1 y1 x2 y2 x3 y3 x4 y4 specifying the quadrilateral’s four
177
- * vertices in counterclockwise order */
178
-
179
- #define POPPLER_TYPE_QUADRILATERAL (poppler_quadrilateral_get_type())
180
- /**
181
- * PopplerQuadrilateral:
182
- * @p1: a #PopplerPoint with the first vertex coordinates
183
- * @p2: a #PopplerPoint with the second vertex coordinates
184
- * @p3: a #PopplerPoint with the third vertex coordinates
185
- * @p4: a #PopplerPoint with the fourth vertex coordinates
186
- *
187
- * A #PopplerQuadrilateral is used to describe rectangle-like polygon
188
- * with arbitrary inclination on a page.
189
- *
190
- * Since: 0.26
191
- **/
192
- struct _PopplerQuadrilateral
193
- {
194
- PopplerPoint p1;
195
- PopplerPoint p2;
196
- PopplerPoint p3;
197
- PopplerPoint p4;
198
- };
199
-
200
- POPPLER_PUBLIC
201
- GType poppler_quadrilateral_get_type(void) G_GNUC_CONST;
202
- POPPLER_PUBLIC
203
- PopplerQuadrilateral *poppler_quadrilateral_new(void);
204
- POPPLER_PUBLIC
205
- PopplerQuadrilateral *poppler_quadrilateral_copy(PopplerQuadrilateral *quad);
206
- POPPLER_PUBLIC
207
- void poppler_quadrilateral_free(PopplerQuadrilateral *quad);
208
-
209
- /* A color in RGB */
210
- #define POPPLER_TYPE_COLOR (poppler_color_get_type())
211
-
212
- /**
213
- * PopplerColor:
214
- * @red: the red component of color
215
- * @green: the green component of color
216
- * @blue: the blue component of color
217
- *
218
- * A #PopplerColor describes a RGB color. Color components
219
- * are values between 0 and 65535
220
- */
221
- struct _PopplerColor
222
- {
223
- guint16 red;
224
- guint16 green;
225
- guint16 blue;
226
- };
227
-
228
- POPPLER_PUBLIC
229
- GType poppler_color_get_type(void) G_GNUC_CONST;
230
- POPPLER_PUBLIC
231
- PopplerColor *poppler_color_new(void);
232
- POPPLER_PUBLIC
233
- PopplerColor *poppler_color_copy(PopplerColor *color);
234
- POPPLER_PUBLIC
235
- void poppler_color_free(PopplerColor *color);
236
-
237
- /* Text attributes. */
238
- #define POPPLER_TYPE_TEXT_ATTRIBUTES (poppler_text_attributes_get_type())
239
- /**
240
- * PopplerTextAttributes:
241
- * @font_name: font name
242
- * @font_size: font size
243
- * @is_underlined: if text is underlined
244
- * @color: a #PopplerColor, the foreground color
245
- * @start_index: start position this text attributes apply
246
- * @end_index: end position this text attributes apply
247
- *
248
- * A #PopplerTextAttributes is used to describe text attributes of a range of text
249
- *
250
- * Since: 0.18
251
- */
252
- struct _PopplerTextAttributes
253
- {
254
- gchar *font_name;
255
- gdouble font_size;
256
- gboolean is_underlined;
257
- PopplerColor color;
258
-
259
- gint start_index;
260
- gint end_index;
261
- };
262
-
263
- POPPLER_PUBLIC
264
- GType poppler_text_attributes_get_type(void) G_GNUC_CONST;
265
- POPPLER_PUBLIC
266
- PopplerTextAttributes *poppler_text_attributes_new(void);
267
- POPPLER_PUBLIC
268
- PopplerTextAttributes *poppler_text_attributes_copy(PopplerTextAttributes *text_attrs);
269
- POPPLER_PUBLIC
270
- void poppler_text_attributes_free(PopplerTextAttributes *text_attrs);
271
-
272
- /* Mapping between areas on the current page and PopplerActions */
273
- #define POPPLER_TYPE_LINK_MAPPING (poppler_link_mapping_get_type())
274
-
275
- /**
276
- * PopplerLinkMapping:
277
- * @area: a #PopplerRectangle representing an area of the page
278
- * @action: a #PopplerAction
279
- *
280
- * A #PopplerLinkMapping structure represents the location
281
- * of @action on the page
282
- */
283
- struct _PopplerLinkMapping
284
- {
285
- PopplerRectangle area;
286
- PopplerAction *action;
287
- };
288
-
289
- POPPLER_PUBLIC
290
- GType poppler_link_mapping_get_type(void) G_GNUC_CONST;
291
- POPPLER_PUBLIC
292
- PopplerLinkMapping *poppler_link_mapping_new(void);
293
- POPPLER_PUBLIC
294
- PopplerLinkMapping *poppler_link_mapping_copy(PopplerLinkMapping *mapping);
295
- POPPLER_PUBLIC
296
- void poppler_link_mapping_free(PopplerLinkMapping *mapping);
297
-
298
- /* Page Transition */
299
- #define POPPLER_TYPE_PAGE_TRANSITION (poppler_page_transition_get_type())
300
-
301
- /**
302
- * PopplerPageTransition:
303
- * @type: the type of transtition
304
- * @alignment: the dimension in which the transition effect shall occur.
305
- * Only for #POPPLER_PAGE_TRANSITION_SPLIT and #POPPLER_PAGE_TRANSITION_BLINDS transition types
306
- * @direction: the direction of motion for the transition effect.
307
- * Only for #POPPLER_PAGE_TRANSITION_SPLIT, #POPPLER_PAGE_TRANSITION_BOX and #POPPLER_PAGE_TRANSITION_FLY
308
- * transition types
309
- * @duration: the duration of the transition effect
310
- * @angle: the direction in which the specified transition effect shall moves,
311
- * expressed in degrees counterclockwise starting from a left-to-right direction.
312
- * Only for #POPPLER_PAGE_TRANSITION_WIPE, #POPPLER_PAGE_TRANSITION_GLITTER, #POPPLER_PAGE_TRANSITION_FLY,
313
- * #POPPLER_PAGE_TRANSITION_COVER, #POPPLER_PAGE_TRANSITION_UNCOVER and #POPPLER_PAGE_TRANSITION_PUSH
314
- * transition types
315
- * @scale: the starting or ending scale at which the changes shall be drawn.
316
- * Only for #POPPLER_PAGE_TRANSITION_FLY transition type
317
- * @rectangular: whether the area that will be flown is rectangular and opaque.
318
- * Only for #POPPLER_PAGE_TRANSITION_FLY transition type
319
- *
320
- * A #PopplerPageTransition structures describes a visual transition
321
- * to use when moving between pages during a presentation
322
- */
323
- struct _PopplerPageTransition
324
- {
325
- PopplerPageTransitionType type;
326
- PopplerPageTransitionAlignment alignment;
327
- PopplerPageTransitionDirection direction;
328
- gint duration;
329
- gint angle;
330
- gdouble scale;
331
- gboolean rectangular;
332
- gdouble duration_real;
333
- };
334
-
335
- POPPLER_PUBLIC
336
- GType poppler_page_transition_get_type(void) G_GNUC_CONST;
337
- POPPLER_PUBLIC
338
- PopplerPageTransition *poppler_page_transition_new(void);
339
- POPPLER_PUBLIC
340
- PopplerPageTransition *poppler_page_transition_copy(PopplerPageTransition *transition);
341
- POPPLER_PUBLIC
342
- void poppler_page_transition_free(PopplerPageTransition *transition);
343
-
344
- /* Mapping between areas on the current page and images */
345
- #define POPPLER_TYPE_IMAGE_MAPPING (poppler_image_mapping_get_type())
346
-
347
- /**
348
- * PopplerImageMapping:
349
- * @area: a #PopplerRectangle representing an area of the page
350
- * @image_id: an image identifier
351
- *
352
- * A #PopplerImageMapping structure represents the location
353
- * of an image on the page
354
- */
355
- struct _PopplerImageMapping
356
- {
357
- PopplerRectangle area;
358
- gint image_id;
359
- };
360
-
361
- POPPLER_PUBLIC
362
- GType poppler_image_mapping_get_type(void) G_GNUC_CONST;
363
- POPPLER_PUBLIC
364
- PopplerImageMapping *poppler_image_mapping_new(void);
365
- POPPLER_PUBLIC
366
- PopplerImageMapping *poppler_image_mapping_copy(PopplerImageMapping *mapping);
367
- POPPLER_PUBLIC
368
- void poppler_image_mapping_free(PopplerImageMapping *mapping);
369
-
370
- /* Mapping between areas on the current page and form fields */
371
- #define POPPLER_TYPE_FORM_FIELD_MAPPING (poppler_form_field_mapping_get_type())
372
-
373
- /**
374
- * PopplerFormFieldMapping:
375
- * @area: a #PopplerRectangle representing an area of the page
376
- * @field: a #PopplerFormField
377
- *
378
- * A #PopplerFormFieldMapping structure represents the location
379
- * of @field on the page
380
- */
381
- struct _PopplerFormFieldMapping
382
- {
383
- PopplerRectangle area;
384
- PopplerFormField *field;
385
- };
386
-
387
- POPPLER_PUBLIC
388
- GType poppler_form_field_mapping_get_type(void) G_GNUC_CONST;
389
- POPPLER_PUBLIC
390
- PopplerFormFieldMapping *poppler_form_field_mapping_new(void);
391
- POPPLER_PUBLIC
392
- PopplerFormFieldMapping *poppler_form_field_mapping_copy(PopplerFormFieldMapping *mapping);
393
- POPPLER_PUBLIC
394
- void poppler_form_field_mapping_free(PopplerFormFieldMapping *mapping);
395
-
396
- /* Mapping between areas on the current page and annots */
397
- #define POPPLER_TYPE_ANNOT_MAPPING (poppler_annot_mapping_get_type())
398
-
399
- /**
400
- * PopplerAnnotMapping:
401
- * @area: a #PopplerRectangle representing an area of the page
402
- * @annot: a #PopplerAnnot
403
- *
404
- * A #PopplerAnnotMapping structure represents the location
405
- * of @annot on the page
406
- */
407
- struct _PopplerAnnotMapping
408
- {
409
- PopplerRectangle area;
410
- PopplerAnnot *annot;
411
- };
412
-
413
- POPPLER_PUBLIC
414
- GType poppler_annot_mapping_get_type(void) G_GNUC_CONST;
415
- POPPLER_PUBLIC
416
- PopplerAnnotMapping *poppler_annot_mapping_new(void);
417
- POPPLER_PUBLIC
418
- PopplerAnnotMapping *poppler_annot_mapping_copy(PopplerAnnotMapping *mapping);
419
- POPPLER_PUBLIC
420
- void poppler_annot_mapping_free(PopplerAnnotMapping *mapping);
421
-
422
- G_END_DECLS
423
-
424
- #endif /* __POPPLER_PAGE_H__ */