node-poppler 5.1.4 → 5.1.5

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 (172) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/package.json +10 -10
  3. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Annot.h +0 -1783
  4. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/AnnotStampImageHelper.h +0 -68
  5. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Array.h +0 -92
  6. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/BBoxOutputDev.h +0 -54
  7. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CMap.h +0 -128
  8. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CachedFile.h +0 -149
  9. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CairoFontEngine.h +0 -122
  10. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CairoOutputDev.h +0 -468
  11. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CairoRescaleBox.h +0 -60
  12. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Catalog.h +0 -318
  13. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CertificateInfo.h +0 -129
  14. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CharCodeToUnicode.h +0 -143
  15. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CharTypes.h +0 -24
  16. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CurlCachedFile.h +0 -37
  17. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/CurlPDFDocBuilder.h +0 -32
  18. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/DateInfo.h +0 -44
  19. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Decrypt.h +0 -147
  20. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Dict.h +0 -126
  21. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Error.h +0 -59
  22. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/ErrorCodes.h +0 -54
  23. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/FDPDFDocBuilder.h +0 -36
  24. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/FILECacheLoader.h +0 -34
  25. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/FileSpec.h +0 -85
  26. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/FontEncodingTables.h +0 -20
  27. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/FontInfo.h +0 -109
  28. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Form.h +0 -734
  29. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Function.h +0 -251
  30. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Gfx.h +0 -373
  31. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/GfxFont.h +0 -466
  32. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/GfxState.h +0 -1759
  33. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/GfxState_helpers.h +0 -90
  34. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/GlobalParams.h +0 -221
  35. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Hints.h +0 -91
  36. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/JArithmeticDecoder.h +0 -131
  37. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/JBIG2Stream.h +0 -130
  38. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/JPEG2000Stream.h +0 -54
  39. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/JSInfo.h +0 -65
  40. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Lexer.h +0 -113
  41. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Linearization.h +0 -43
  42. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Link.h +0 -566
  43. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/LocalPDFDocBuilder.h +0 -32
  44. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/MarkedContentOutputDev.h +0 -132
  45. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Movie.h +0 -123
  46. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/NameToCharCode.h +0 -52
  47. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/NameToUnicodeTable.h +0 -4300
  48. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Object.h +0 -678
  49. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/OptionalContent.h +0 -117
  50. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Outline.h +0 -122
  51. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/OutputDev.h +0 -379
  52. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PDFDoc.h +0 -419
  53. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PDFDocBuilder.h +0 -47
  54. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PDFDocEncoding.h +0 -43
  55. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PDFDocFactory.h +0 -58
  56. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PSOutputDev.h +0 -549
  57. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PSTokenizer.h +0 -47
  58. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Page.h +0 -273
  59. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PageTransition.h +0 -105
  60. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Parser.h +0 -76
  61. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PopplerCache.h +0 -65
  62. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/PreScanOutputDev.h +0 -148
  63. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/ProfileData.h +0 -35
  64. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Rendition.h +0 -164
  65. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/SecurityHandler.h +0 -131
  66. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Sound.h +0 -82
  67. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/SplashOutputDev.h +0 -413
  68. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Stream-CCITT.h +0 -334
  69. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/Stream.h +0 -1504
  70. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/StructElement.h +0 -406
  71. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/StructTreeRoot.h +0 -89
  72. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/TextOutputDev.h +0 -918
  73. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UTF.h +0 -112
  74. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeCClassTables.h +0 -983
  75. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeCompTables.h +0 -328
  76. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeDecompTables.h +0 -7181
  77. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeMap.h +0 -128
  78. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeMapFuncs.h +0 -35
  79. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeMapTables.h +0 -84
  80. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/UnicodeTypeTable.h +0 -49
  81. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/ViewerPreferences.h +0 -87
  82. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/XRef.h +0 -325
  83. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-destination.h +0 -69
  84. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-document.h +0 -135
  85. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-embedded-file.h +0 -55
  86. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-font-private.h +0 -68
  87. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-font.h +0 -95
  88. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-global.h +0 -132
  89. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-image.h +0 -74
  90. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-page-renderer.h +0 -77
  91. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-page-transition.h +0 -85
  92. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-page.h +0 -225
  93. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-rectangle.h +0 -66
  94. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-toc.h +0 -72
  95. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler-version.h +0 -39
  96. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/cpp/poppler_cpp_export.h +0 -42
  97. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiBase.h +0 -66
  98. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiEncodings.h +0 -43
  99. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiIdentifier.h +0 -52
  100. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiTrueType.h +0 -190
  101. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiType1.h +0 -70
  102. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/fofi/FoFiType1C.h +0 -263
  103. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-action.h +0 -454
  104. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-annot.h +0 -333
  105. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-attachment.h +0 -123
  106. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-date.h +0 -32
  107. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-document.h +0 -541
  108. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-enums.h +0 -191
  109. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-features.h +0 -88
  110. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-form-field.h +0 -254
  111. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-layer.h +0 -50
  112. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-macros.h +0 -42
  113. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-media.h +0 -80
  114. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-movie.h +0 -81
  115. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-page.h +0 -424
  116. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler-structure-element.h +0 -425
  117. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/glib/poppler.h +0 -259
  118. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/GooCheckedOps.h +0 -116
  119. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/GooLikely.h +0 -22
  120. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/GooString.h +0 -262
  121. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/GooTimer.h +0 -59
  122. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/ImgWriter.h +0 -39
  123. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/JpegWriter.h +0 -69
  124. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/PNGWriter.h +0 -68
  125. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/TiffWriter.h +0 -70
  126. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/gdir.h +0 -96
  127. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/gfile.h +0 -156
  128. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/gmem.h +0 -201
  129. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/grandom.h +0 -21
  130. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/goo/gstrtod.h +0 -45
  131. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/poppler-config.h +0 -155
  132. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/poppler_private_export.h +0 -42
  133. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/Splash.h +0 -336
  134. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashBitmap.h +0 -127
  135. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashClip.h +0 -131
  136. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashErrorCodes.h +0 -50
  137. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFTFont.h +0 -71
  138. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFTFontEngine.h +0 -72
  139. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFTFontFile.h +0 -64
  140. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFont.h +0 -116
  141. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFontEngine.h +0 -89
  142. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFontFile.h +0 -98
  143. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashFontFileID.h +0 -40
  144. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashGlyphBitmap.h +0 -23
  145. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashMath.h +0 -215
  146. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashPath.h +0 -138
  147. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashPattern.h +0 -107
  148. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashScreen.h +0 -87
  149. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashState.h +0 -132
  150. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashTypes.h +0 -248
  151. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashXPath.h +0 -95
  152. package/src/lib/win32/poppler-22.04.0/Library/include/poppler/splash/SplashXPathScanner.h +0 -136
  153. package/src/lib/win32/poppler-22.04.0/Library/lib/pkgconfig/poppler-cpp.pc +0 -12
  154. package/src/lib/win32/poppler-22.04.0/Library/lib/pkgconfig/poppler-glib.pc +0 -12
  155. package/src/lib/win32/poppler-22.04.0/Library/lib/pkgconfig/poppler.pc +0 -10
  156. package/src/lib/win32/poppler-22.04.0/Library/lib/poppler-cpp.lib +0 -0
  157. package/src/lib/win32/poppler-22.04.0/Library/lib/poppler-glib.lib +0 -0
  158. package/src/lib/win32/poppler-22.04.0/Library/lib/poppler.lib +0 -0
  159. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfattach.1 +0 -60
  160. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfdetach.1 +0 -94
  161. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdffonts.1 +0 -128
  162. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfimages.1 +0 -265
  163. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfinfo.1 +0 -198
  164. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfseparate.1 +0 -60
  165. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdftocairo.1 +0 -346
  166. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdftohtml.1 +0 -118
  167. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdftoppm.1 +0 -230
  168. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdftops.1 +0 -267
  169. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdftotext.1 +0 -157
  170. package/src/lib/win32/poppler-22.04.0/Library/share/man/man1/pdfunite.1 +0 -43
  171. package/src/lib/win32/poppler-22.04.0/share/poppler/CMakeLists.txt +0 -309
  172. package/src/lib/win32/poppler-22.04.0/share/poppler/Makefile +0 -333
@@ -1,66 +0,0 @@
1
- /*
2
- * Copyright (C) 2009-2010, Pino Toscano <pino@kde.org>
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_RECTANGLE_H
20
- #define POPPLER_RECTANGLE_H
21
-
22
- #include "poppler-global.h"
23
-
24
- namespace poppler {
25
-
26
- template<typename T>
27
- class rectangle
28
- {
29
- public:
30
- rectangle() : x1(), y1(), x2(), y2() { }
31
- rectangle(T _x, T _y, T w, T h) : x1(_x), y1(_y), x2(x1 + w), y2(y1 + h) { }
32
- ~rectangle() { }
33
-
34
- bool is_empty() const { return (x1 == x2) && (y1 == y2); }
35
-
36
- T x() const { return x1; }
37
-
38
- T y() const { return y1; }
39
-
40
- T width() const { return x2 - x1; }
41
-
42
- T height() const { return y2 - y1; }
43
-
44
- T left() const { return x1; }
45
- T top() const { return y1; }
46
- T right() const { return x2; }
47
- T bottom() const { return y2; }
48
-
49
- void set_left(T value) { x1 = value; }
50
- void set_top(T value) { y1 = value; }
51
- void set_right(T value) { x2 = value; }
52
- void set_bottom(T value) { y2 = value; }
53
-
54
- private:
55
- T x1, y1, x2, y2;
56
- };
57
-
58
- typedef rectangle<int> rect;
59
- typedef rectangle<double> rectf;
60
-
61
- POPPLER_CPP_EXPORT std::ostream &operator<<(std::ostream &stream, const rect &r);
62
- POPPLER_CPP_EXPORT std::ostream &operator<<(std::ostream &stream, const rectf &r);
63
-
64
- }
65
-
66
- #endif
@@ -1,72 +0,0 @@
1
- /*
2
- * Copyright (C) 2009, Pino Toscano <pino@kde.org>
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_TOC_H
20
- #define POPPLER_TOC_H
21
-
22
- #include "poppler-global.h"
23
-
24
- #include <vector>
25
-
26
- namespace poppler {
27
-
28
- class toc_private;
29
- class toc_item;
30
- class toc_item_private;
31
-
32
- class POPPLER_CPP_EXPORT toc : public poppler::noncopyable
33
- {
34
- public:
35
- ~toc();
36
-
37
- toc_item *root() const;
38
-
39
- private:
40
- toc();
41
-
42
- toc_private *d;
43
-
44
- friend class toc_private;
45
- };
46
-
47
- class POPPLER_CPP_EXPORT toc_item : public poppler::noncopyable
48
- {
49
- public:
50
- typedef std::vector<toc_item *>::const_iterator iterator;
51
-
52
- ~toc_item();
53
-
54
- ustring title() const;
55
- bool is_open() const;
56
-
57
- std::vector<toc_item *> children() const;
58
- iterator children_begin() const;
59
- iterator children_end() const;
60
-
61
- private:
62
- toc_item();
63
-
64
- toc_item_private *d;
65
- friend class toc;
66
- friend class toc_private;
67
- friend class toc_item_private;
68
- };
69
-
70
- }
71
-
72
- #endif
@@ -1,39 +0,0 @@
1
- /*
2
- * Copyright (C) 2009, Pino Toscano <pino@kde.org>
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_VERSION_H
20
- #define POPPLER_VERSION_H
21
-
22
- #include "poppler-global.h"
23
-
24
- #define POPPLER_VERSION "22.04.0"
25
- #define POPPLER_VERSION_MAJOR 22
26
- #define POPPLER_VERSION_MINOR 4
27
- #define POPPLER_VERSION_MICRO 0
28
-
29
- namespace poppler
30
- {
31
-
32
- POPPLER_CPP_EXPORT std::string version_string();
33
- POPPLER_CPP_EXPORT unsigned int version_major();
34
- POPPLER_CPP_EXPORT unsigned int version_minor();
35
- POPPLER_CPP_EXPORT unsigned int version_micro();
36
-
37
- }
38
-
39
- #endif
@@ -1,42 +0,0 @@
1
-
2
- #ifndef POPPLER_CPP_EXPORT_H
3
- #define POPPLER_CPP_EXPORT_H
4
-
5
- #ifdef POPPLER_CPP_STATIC_DEFINE
6
- # define POPPLER_CPP_EXPORT
7
- # define POPPLER_CPP_NO_EXPORT
8
- #else
9
- # ifndef POPPLER_CPP_EXPORT
10
- # ifdef poppler_cpp_EXPORTS
11
- /* We are building this library */
12
- # define POPPLER_CPP_EXPORT __declspec(dllexport)
13
- # else
14
- /* We are using this library */
15
- # define POPPLER_CPP_EXPORT __declspec(dllimport)
16
- # endif
17
- # endif
18
-
19
- # ifndef POPPLER_CPP_NO_EXPORT
20
- # define POPPLER_CPP_NO_EXPORT
21
- # endif
22
- #endif
23
-
24
- #ifndef POPPLER_CPP_DEPRECATED
25
- # define POPPLER_CPP_DEPRECATED __declspec(deprecated)
26
- #endif
27
-
28
- #ifndef POPPLER_CPP_DEPRECATED_EXPORT
29
- # define POPPLER_CPP_DEPRECATED_EXPORT POPPLER_CPP_EXPORT POPPLER_CPP_DEPRECATED
30
- #endif
31
-
32
- #ifndef POPPLER_CPP_DEPRECATED_NO_EXPORT
33
- # define POPPLER_CPP_DEPRECATED_NO_EXPORT POPPLER_CPP_NO_EXPORT POPPLER_CPP_DEPRECATED
34
- #endif
35
-
36
- #if 0 /* DEFINE_NO_DEPRECATED */
37
- # ifndef POPPLER_CPP_NO_DEPRECATED
38
- # define POPPLER_CPP_NO_DEPRECATED
39
- # endif
40
- #endif
41
-
42
- #endif /* POPPLER_CPP_EXPORT_H */
@@ -1,66 +0,0 @@
1
- //========================================================================
2
- //
3
- // FoFiBase.h
4
- //
5
- // Copyright 1999-2003 Glyph & Cog, LLC
6
- //
7
- //========================================================================
8
-
9
- //========================================================================
10
- //
11
- // Modified under the Poppler project - http://poppler.freedesktop.org
12
- //
13
- // All changes made under the Poppler project to this file are licensed
14
- // under GPL version 2 or later
15
- //
16
- // Copyright (C) 2018 Albert Astals Cid <aacid@kde.org>
17
- // Copyright (C) 2022 Oliver Sander <oliver.sander@tu-dresden.de>
18
- //
19
- // To see a description of the changes please see the Changelog file that
20
- // came with your tarball or type make ChangeLog if you are building from git
21
- //
22
- //========================================================================
23
-
24
- #ifndef FOFIBASE_H
25
- #define FOFIBASE_H
26
-
27
- //------------------------------------------------------------------------
28
-
29
- typedef void (*FoFiOutputFunc)(void *stream, const char *data, int len);
30
-
31
- //------------------------------------------------------------------------
32
- // FoFiBase
33
- //------------------------------------------------------------------------
34
-
35
- class FoFiBase
36
- {
37
- public:
38
- FoFiBase(const FoFiBase &) = delete;
39
- FoFiBase &operator=(const FoFiBase &other) = delete;
40
-
41
- virtual ~FoFiBase();
42
-
43
- protected:
44
- FoFiBase(const unsigned char *fileA, int lenA, bool freeFileDataA);
45
- static char *readFile(const char *fileName, int *fileLen);
46
-
47
- // S = signed / U = unsigned
48
- // 8/16/32/Var = word length, in bytes
49
- // BE = big endian
50
- int getS8(int pos, bool *ok) const;
51
- int getU8(int pos, bool *ok) const;
52
- int getS16BE(int pos, bool *ok) const;
53
- int getU16BE(int pos, bool *ok) const;
54
- int getS32BE(int pos, bool *ok) const;
55
- unsigned int getU32BE(int pos, bool *ok) const;
56
- unsigned int getU32LE(int pos, bool *ok) const;
57
- unsigned int getUVarBE(int pos, int size, bool *ok) const;
58
-
59
- bool checkRegion(int pos, int size) const;
60
-
61
- const unsigned char *file;
62
- int len;
63
- bool freeFileData;
64
- };
65
-
66
- #endif
@@ -1,43 +0,0 @@
1
- //========================================================================
2
- //
3
- // FoFiEncodings.h
4
- //
5
- // Copyright 1999-2003 Glyph & Cog, LLC
6
- //
7
- //========================================================================
8
-
9
- //========================================================================
10
- //
11
- // Modified under the Poppler project - http://poppler.freedesktop.org
12
- //
13
- // All changes made under the Poppler project to this file are licensed
14
- // under GPL version 2 or later
15
- //
16
- // Copyright (C) 2016 Albert Astals Cid <aacid@kde.org>
17
- // Copyright (C) 2019 Volker Krause <vkrause@kde.org>
18
- //
19
- // To see a description of the changes please see the Changelog file that
20
- // came with your tarball or type make ChangeLog if you are building from git
21
- //
22
- //========================================================================
23
-
24
- #ifndef FOFIENCODINGS_H
25
- #define FOFIENCODINGS_H
26
-
27
- //------------------------------------------------------------------------
28
- // Type 1 and 1C font data
29
- //------------------------------------------------------------------------
30
-
31
- extern const char *const fofiType1StandardEncoding[256];
32
- extern const char *const fofiType1ExpertEncoding[256];
33
-
34
- //------------------------------------------------------------------------
35
- // Type 1C font data
36
- //------------------------------------------------------------------------
37
-
38
- extern const char *fofiType1CStdStrings[391];
39
- extern const unsigned short fofiType1CISOAdobeCharset[229];
40
- extern const unsigned short fofiType1CExpertCharset[166];
41
- extern const unsigned short fofiType1CExpertSubsetCharset[87];
42
-
43
- #endif
@@ -1,52 +0,0 @@
1
- //========================================================================
2
- //
3
- // FoFiIdentifier.h
4
- //
5
- // Copyright 2009 Glyph & Cog, LLC
6
- //
7
- //========================================================================
8
-
9
- //========================================================================
10
- //
11
- // Modified under the Poppler project - http://poppler.freedesktop.org
12
- //
13
- // All changes made under the Poppler project to this file are licensed
14
- // under GPL version 2 or later
15
- //
16
- // Copyright (C) 2018 Albert Astals Cid <aacid@kde.org>
17
- //
18
- // To see a description of the changes please see the Changelog file that
19
- // came with your tarball or type make ChangeLog if you are building from git
20
- //
21
- //========================================================================
22
-
23
- #ifndef FOFIIDENTIFIER_H
24
- #define FOFIIDENTIFIER_H
25
-
26
- //------------------------------------------------------------------------
27
- // FoFiIdentifier
28
- //------------------------------------------------------------------------
29
-
30
- enum FoFiIdentifierType
31
- {
32
- fofiIdType1PFA, // Type 1 font in PFA format
33
- fofiIdType1PFB, // Type 1 font in PFB format
34
- fofiIdCFF8Bit, // 8-bit CFF font
35
- fofiIdCFFCID, // CID CFF font
36
- fofiIdTrueType, // TrueType font
37
- fofiIdTrueTypeCollection, // TrueType collection
38
- fofiIdOpenTypeCFF8Bit, // OpenType wrapper with 8-bit CFF font
39
- fofiIdOpenTypeCFFCID, // OpenType wrapper with CID CFF font
40
- fofiIdUnknown, // unknown type
41
- fofiIdError // error in reading the file
42
- };
43
-
44
- class FoFiIdentifier
45
- {
46
- public:
47
- static FoFiIdentifierType identifyMem(const char *file, int len);
48
- static FoFiIdentifierType identifyFile(const char *fileName);
49
- static FoFiIdentifierType identifyStream(int (*getChar)(void *data), void *data);
50
- };
51
-
52
- #endif
@@ -1,190 +0,0 @@
1
- //========================================================================
2
- //
3
- // FoFiTrueType.h
4
- //
5
- // Copyright 1999-2003 Glyph & Cog, LLC
6
- //
7
- //========================================================================
8
-
9
- //========================================================================
10
- //
11
- // Modified under the Poppler project - http://poppler.freedesktop.org
12
- //
13
- // All changes made under the Poppler project to this file are licensed
14
- // under GPL version 2 or later
15
- //
16
- // Copyright (C) 2006 Takashi Iwai <tiwai@suse.de>
17
- // Copyright (C) 2007 Koji Otani <sho@bbr.jp>
18
- // Copyright (C) 2011, 2012, 2018-2020 Albert Astals Cid <aacid@kde.org>
19
- // Copyright (C) 2012 Suzuki Toshiya <mpsuzuki@hiroshima-u.ac.jp>
20
- // Copyright (C) 2016 William Bader <williambader@hotmail.com>
21
- // Copyright (C) 2018 Adam Reichold <adam.reichold@t-online.de>
22
- // Copyright (C) 2022 Oliver Sander <oliver.sander@tu-dresden.de>
23
- //
24
- // To see a description of the changes please see the Changelog file that
25
- // came with your tarball or type make ChangeLog if you are building from git
26
- //
27
- //========================================================================
28
-
29
- #ifndef FOFITRUETYPE_H
30
- #define FOFITRUETYPE_H
31
-
32
- #include <cstddef>
33
- #include <memory>
34
- #include <unordered_map>
35
- #include <string>
36
- #include "FoFiBase.h"
37
- #include "poppler_private_export.h"
38
-
39
- class GooString;
40
- struct TrueTypeTable;
41
- struct TrueTypeCmap;
42
-
43
- //------------------------------------------------------------------------
44
- // FoFiTrueType
45
- //------------------------------------------------------------------------
46
-
47
- class POPPLER_PRIVATE_EXPORT FoFiTrueType : public FoFiBase
48
- {
49
- public:
50
- // Create a FoFiTrueType object from a memory buffer.
51
- static std::unique_ptr<FoFiTrueType> make(const unsigned char *fileA, int lenA, int faceIndexA = 0);
52
-
53
- // Create a FoFiTrueType object from a file on disk.
54
- static std::unique_ptr<FoFiTrueType> load(const char *fileName, int faceIndexA = 0);
55
-
56
- ~FoFiTrueType() override;
57
-
58
- // Returns true if this an OpenType font containing CFF data, false
59
- // if it's a TrueType font (or OpenType font with TrueType data).
60
- bool isOpenTypeCFF() const { return openTypeCFF; }
61
-
62
- // Return the number of cmaps defined by this font.
63
- int getNumCmaps() const;
64
-
65
- // Return the platform ID of the <i>th cmap.
66
- int getCmapPlatform(int i) const;
67
-
68
- // Return the encoding ID of the <i>th cmap.
69
- int getCmapEncoding(int i) const;
70
-
71
- // Return the index of the cmap for <platform>, <encoding>. Returns
72
- // -1 if there is no corresponding cmap.
73
- int findCmap(int platform, int encoding) const;
74
-
75
- // Return the GID corresponding to <c> according to the <i>th cmap.
76
- int mapCodeToGID(int i, unsigned int c) const;
77
-
78
- // map gid to vertical glyph gid if exist.
79
- // if not exist return original gid
80
- unsigned int mapToVertGID(unsigned int orgGID);
81
-
82
- // Returns the GID corresponding to <name> according to the post
83
- // table. Returns 0 if there is no mapping for <name> or if the
84
- // font does not have a post table.
85
- int mapNameToGID(const char *name) const;
86
-
87
- // Return the mapping from CIDs to GIDs, and return the number of
88
- // CIDs in *<nCIDs>. This is only useful for CID fonts. (Only
89
- // useful for OpenType CFF fonts.)
90
- int *getCIDToGIDMap(int *nCIDs) const;
91
-
92
- // Returns the least restrictive embedding licensing right (as
93
- // defined by the TrueType spec):
94
- // * 4: OS/2 table is missing or invalid
95
- // * 3: installable embedding
96
- // * 2: editable embedding
97
- // * 1: preview & print embedding
98
- // * 0: restricted license embedding
99
- int getEmbeddingRights() const;
100
-
101
- // Return the font matrix as an array of six numbers. (Only useful
102
- // for OpenType CFF fonts.)
103
- void getFontMatrix(double *mat) const;
104
-
105
- // Convert to a Type 42 font, suitable for embedding in a PostScript
106
- // file. <psName> will be used as the PostScript font name (so we
107
- // don't need to depend on the 'name' table in the font). The
108
- // <encoding> array specifies the mapping from char codes to names.
109
- // If <encoding> is NULL, the encoding is unknown or undefined. The
110
- // <codeToGID> array specifies the mapping from char codes to GIDs.
111
- // (Not useful for OpenType CFF fonts.)
112
- void convertToType42(const char *psName, char **encoding, int *codeToGID, FoFiOutputFunc outputFunc, void *outputStream) const;
113
-
114
- // Convert to a Type 1 font, suitable for embedding in a PostScript
115
- // file. This is only useful with 8-bit fonts. If <newEncoding> is
116
- // not NULL, it will be used in place of the encoding in the Type 1C
117
- // font. If <ascii> is true the eexec section will be hex-encoded,
118
- // otherwise it will be left as binary data. If <psName> is
119
- // non-NULL, it will be used as the PostScript font name. (Only
120
- // useful for OpenType CFF fonts.)
121
- void convertToType1(const char *psName, const char **newEncoding, bool ascii, FoFiOutputFunc outputFunc, void *outputStream) const;
122
-
123
- // Convert to a Type 2 CIDFont, suitable for embedding in a
124
- // PostScript file. <psName> will be used as the PostScript font
125
- // name (so we don't need to depend on the 'name' table in the
126
- // font). The <cidMap> array maps CIDs to GIDs; it has <nCIDs>
127
- // entries. (Not useful for OpenType CFF fonts.)
128
- void convertToCIDType2(const char *psName, const int *cidMap, int nCIDs, bool needVerticalMetrics, FoFiOutputFunc outputFunc, void *outputStream) const;
129
-
130
- // Convert to a Type 0 CIDFont, suitable for embedding in a
131
- // PostScript file. <psName> will be used as the PostScript font
132
- // name. (Only useful for OpenType CFF fonts.)
133
- void convertToCIDType0(const char *psName, int *cidMap, int nCIDs, FoFiOutputFunc outputFunc, void *outputStream) const;
134
-
135
- // Convert to a Type 0 (but non-CID) composite font, suitable for
136
- // embedding in a PostScript file. <psName> will be used as the
137
- // PostScript font name (so we don't need to depend on the 'name'
138
- // table in the font). The <cidMap> array maps CIDs to GIDs; it has
139
- // <nCIDs> entries. (Not useful for OpenType CFF fonts.)
140
- void convertToType0(const char *psName, int *cidMap, int nCIDs, bool needVerticalMetrics, int *maxValidGlyph, FoFiOutputFunc outputFunc, void *outputStream) const;
141
-
142
- // Convert to a Type 0 (but non-CID) composite font, suitable for
143
- // embedding in a PostScript file. <psName> will be used as the
144
- // PostScript font name. (Only useful for OpenType CFF fonts.)
145
- void convertToType0(const char *psName, int *cidMap, int nCIDs, FoFiOutputFunc outputFunc, void *outputStream) const;
146
-
147
- // Returns a pointer to the CFF font embedded in this OpenType font.
148
- // If successful, sets *<start> and *<length>, and returns true.
149
- // Otherwise returns false. (Only useful for OpenType CFF fonts).
150
- bool getCFFBlock(char **start, int *length) const;
151
-
152
- // setup vert/vrt2 GSUB for default lang
153
- int setupGSUB(const char *scriptName);
154
-
155
- // setup vert/vrt2 GSUB for specified lang
156
- int setupGSUB(const char *scriptName, const char *languageName);
157
-
158
- private:
159
- FoFiTrueType(const unsigned char *fileA, int lenA, bool freeFileDataA, int faceIndexA);
160
- void cvtEncoding(char **encoding, FoFiOutputFunc outputFunc, void *outputStream) const;
161
- void cvtCharStrings(char **encoding, const int *codeToGID, FoFiOutputFunc outputFunc, void *outputStream) const;
162
- void cvtSfnts(FoFiOutputFunc outputFunc, void *outputStream, const GooString *name, bool needVerticalMetrics, int *maxUsedGlyph) const;
163
- void dumpString(const unsigned char *s, int length, FoFiOutputFunc outputFunc, void *outputStream) const;
164
- unsigned int computeTableChecksum(const unsigned char *data, int length) const;
165
- void parse();
166
- void readPostTable();
167
- int seekTable(const char *tag) const;
168
- unsigned int charToTag(const char *tagName);
169
- unsigned int doMapToVertGID(unsigned int orgGID);
170
- unsigned int scanLookupList(unsigned int listIndex, unsigned int orgGID);
171
- unsigned int scanLookupSubTable(unsigned int subTable, unsigned int orgGID);
172
- int checkGIDInCoverage(unsigned int coverage, unsigned int orgGID);
173
-
174
- TrueTypeTable *tables;
175
- int nTables;
176
- TrueTypeCmap *cmaps;
177
- int nCmaps;
178
- int nGlyphs;
179
- int locaFmt;
180
- int bbox[4];
181
- std::unordered_map<std::string, int> nameToGID;
182
- bool openTypeCFF;
183
-
184
- bool parsedOk;
185
- int faceIndex;
186
- unsigned int gsubFeatureTable;
187
- unsigned int gsubLookupList;
188
- };
189
-
190
- #endif
@@ -1,70 +0,0 @@
1
- //========================================================================
2
- //
3
- // FoFiType1.h
4
- //
5
- // Copyright 1999-2003 Glyph & Cog, LLC
6
- //
7
- //========================================================================
8
-
9
- //========================================================================
10
- //
11
- // Modified under the Poppler project - http://poppler.freedesktop.org
12
- //
13
- // All changes made under the Poppler project to this file are licensed
14
- // under GPL version 2 or later
15
- //
16
- // Copyright (C) 2018 Albert Astals Cid <aacid@kde.org>
17
- // Copyright (C) 2022 Oliver Sander <oliver.sander@tu-dresden.de>
18
- //
19
- // To see a description of the changes please see the Changelog file that
20
- // came with your tarball or type make ChangeLog if you are building from git
21
- //
22
- //========================================================================
23
-
24
- #ifndef FOFITYPE1_H
25
- #define FOFITYPE1_H
26
-
27
- #include "FoFiBase.h"
28
-
29
- //------------------------------------------------------------------------
30
- // FoFiType1
31
- //------------------------------------------------------------------------
32
-
33
- class FoFiType1 : public FoFiBase
34
- {
35
- public:
36
- // Create a FoFiType1 object from a memory buffer.
37
- static FoFiType1 *make(const unsigned char *fileA, int lenA);
38
-
39
- // Create a FoFiType1 object from a file on disk.
40
- static FoFiType1 *load(const char *fileName);
41
-
42
- ~FoFiType1() override;
43
-
44
- // Return the font name.
45
- const char *getName();
46
-
47
- // Return the encoding, as an array of 256 names (any of which may
48
- // be NULL).
49
- char **getEncoding();
50
-
51
- // Return the font matrix as an array of six numbers.
52
- void getFontMatrix(double *mat);
53
-
54
- // Write a version of the Type 1 font file with a new encoding.
55
- void writeEncoded(const char **newEncoding, FoFiOutputFunc outputFunc, void *outputStream) const;
56
-
57
- private:
58
- FoFiType1(const unsigned char *fileA, int lenA, bool freeFileDataA);
59
-
60
- char *getNextLine(char *line) const;
61
- void parse();
62
- void undoPFB();
63
-
64
- char *name;
65
- char **encoding;
66
- double fontMatrix[6];
67
- bool parsed;
68
- };
69
-
70
- #endif