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,128 +0,0 @@
1
- //========================================================================
2
- //
3
- // UnicodeMap.h
4
- //
5
- // Mapping from Unicode to an encoding.
6
- //
7
- // Copyright 2001-2003 Glyph & Cog, LLC
8
- //
9
- //========================================================================
10
-
11
- //========================================================================
12
- //
13
- // Modified under the Poppler project - http://poppler.freedesktop.org
14
- //
15
- // All changes made under the Poppler project to this file are licensed
16
- // under GPL version 2 or later
17
- //
18
- // Copyright (C) 2017 Adrian Johnson <ajohnson@redneon.com>
19
- // Copyright (C) 2018-2022 Albert Astals Cid <aacid@kde.org>
20
- // Copyright (C) 2018 Adam Reichold <adam.reichold@t-online.de>
21
- // Copyright (C) 2019 Volker Krause <vkrause@kde.org>
22
- //
23
- // To see a description of the changes please see the Changelog file that
24
- // came with your tarball or type make ChangeLog if you are building from git
25
- //
26
- //========================================================================
27
-
28
- #ifndef UNICODEMAP_H
29
- #define UNICODEMAP_H
30
-
31
- #include "poppler-config.h"
32
- #include "poppler_private_export.h"
33
- #include "CharTypes.h"
34
-
35
- #include <atomic>
36
- #include <memory>
37
- #include <string>
38
- #include <vector>
39
-
40
- //------------------------------------------------------------------------
41
-
42
- enum UnicodeMapKind
43
- {
44
- unicodeMapUser, // read from a file
45
- unicodeMapResident, // static list of ranges
46
- unicodeMapFunc // function pointer
47
- };
48
-
49
- typedef int (*UnicodeMapFunc)(Unicode u, char *buf, int bufSize);
50
-
51
- struct UnicodeMapRange
52
- {
53
- Unicode start, end; // range of Unicode chars
54
- unsigned int code, nBytes; // first output code
55
- };
56
-
57
- struct UnicodeMapExt;
58
-
59
- //------------------------------------------------------------------------
60
-
61
- class POPPLER_PRIVATE_EXPORT UnicodeMap
62
- {
63
- public:
64
- // Create the UnicodeMap specified by <encodingName>. Sets the
65
- // initial reference count to 1. Returns NULL on failure.
66
- static std::unique_ptr<UnicodeMap> parse(const std::string &encodingNameA);
67
-
68
- // Create a resident UnicodeMap.
69
- UnicodeMap(const char *encodingNameA, bool unicodeOutA, const UnicodeMapRange *rangesA, int lenA);
70
-
71
- // Create a resident UnicodeMap that uses a function instead of a
72
- // list of ranges.
73
- UnicodeMap(const char *encodingNameA, bool unicodeOutA, UnicodeMapFunc funcA);
74
-
75
- UnicodeMap(UnicodeMap &&other) noexcept;
76
- UnicodeMap &operator=(UnicodeMap &&other) noexcept;
77
-
78
- void swap(UnicodeMap &other) noexcept;
79
-
80
- ~UnicodeMap();
81
-
82
- UnicodeMap(const UnicodeMap &) = delete;
83
- UnicodeMap &operator=(const UnicodeMap &) = delete;
84
-
85
- std::string getEncodingName() const { return encodingName; }
86
-
87
- bool isUnicode() const { return unicodeOut; }
88
-
89
- // Return true if this UnicodeMap matches the specified
90
- // <encodingNameA>.
91
- bool match(const std::string &encodingNameA) const;
92
-
93
- // Map Unicode to the target encoding. Fills in <buf> with the
94
- // output and returns the number of bytes used. Output will be
95
- // truncated at <bufSize> bytes. No string terminator is written.
96
- // Returns 0 if no mapping is found.
97
- int mapUnicode(Unicode u, char *buf, int bufSize) const;
98
-
99
- private:
100
- explicit UnicodeMap(const std::string &encodingNameA);
101
-
102
- std::string encodingName;
103
- UnicodeMapKind kind;
104
- bool unicodeOut;
105
- union {
106
- const UnicodeMapRange *ranges; // (user, resident)
107
- UnicodeMapFunc func; // (func)
108
- };
109
- int len; // (user, resident)
110
- UnicodeMapExt *eMaps; // (user)
111
- int eMapsLen; // (user)
112
- };
113
-
114
- //------------------------------------------------------------------------
115
-
116
- class UnicodeMapCache
117
- {
118
- public:
119
- UnicodeMapCache();
120
-
121
- // Get the UnicodeMap for <encodingName>. Returns NULL on failure.
122
- const UnicodeMap *getUnicodeMap(const std::string &encodingName);
123
-
124
- private:
125
- std::vector<std::unique_ptr<UnicodeMap>> cache;
126
- };
127
-
128
- #endif
@@ -1,35 +0,0 @@
1
- //========================================================================
2
- //
3
- // UnicodeMapFuncs.h
4
- //
5
- // Copyright 2001-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) 2008 Koji Otani <sho@bbr.jp>
17
- // Copyright (C) 2017 Adrian Johnson <ajohnson@redneon.com>
18
- // Copyright (C) 2018, 2019 Albert Astals Cid <aacid@kde.org>
19
- // Copyright (C) 2019 Oliver Sander <oliver.sander@tu-dresden.de>
20
- //
21
- // To see a description of the changes please see the Changelog file that
22
- // came with your tarball or type make ChangeLog if you are building from git
23
- //
24
- //========================================================================
25
-
26
- #ifndef UNICODEMAPFUNCS_H
27
- #define UNICODEMAPFUNCS_H
28
-
29
- #include "UTF.h"
30
-
31
- int POPPLER_PRIVATE_EXPORT mapUTF8(Unicode u, char *buf, int bufSize);
32
-
33
- int mapUTF16(Unicode u, char *buf, int bufSize);
34
-
35
- #endif
@@ -1,84 +0,0 @@
1
- //========================================================================
2
- //
3
- // UnicodeMapTables.h
4
- //
5
- // Copyright 2001-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) 2019 Volker Krause <vkrause@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
- static const UnicodeMapRange latin1UnicodeMapRanges[] = {
24
- { 0x000a, 0x000a, 0x0a, 1 }, { 0x000c, 0x000d, 0x0c, 1 }, { 0x0020, 0x007e, 0x20, 1 }, { 0x00a0, 0x00a0, 0x20, 1 }, { 0x00a1, 0x00ac, 0xa1, 1 }, { 0x00ae, 0x00ff, 0xae, 1 }, { 0x010c, 0x010c, 0x43, 1 },
25
- { 0x010d, 0x010d, 0x63, 1 }, { 0x0131, 0x0131, 0x69, 1 }, { 0x0141, 0x0141, 0x4c, 1 }, { 0x0142, 0x0142, 0x6c, 1 }, { 0x0152, 0x0152, 0x4f45, 2 }, { 0x0153, 0x0153, 0x6f65, 2 }, { 0x0160, 0x0160, 0x53, 1 },
26
- { 0x0161, 0x0161, 0x73, 1 }, { 0x0178, 0x0178, 0x59, 1 }, { 0x017d, 0x017d, 0x5a, 1 }, { 0x017e, 0x017e, 0x7a, 1 }, { 0x02c6, 0x02c6, 0x5e, 1 }, { 0x02da, 0x02da, 0xb0, 1 }, { 0x02dc, 0x02dc, 0x7e, 1 },
27
- { 0x2013, 0x2013, 0xad, 1 }, { 0x2014, 0x2014, 0x2d2d, 2 }, { 0x2018, 0x2018, 0x60, 1 }, { 0x2019, 0x2019, 0x27, 1 }, { 0x201a, 0x201a, 0x2c, 1 }, { 0x201c, 0x201c, 0x22, 1 }, { 0x201d, 0x201d, 0x22, 1 },
28
- { 0x201e, 0x201e, 0x2c2c, 2 }, { 0x2022, 0x2022, 0xb7, 1 }, { 0x2026, 0x2026, 0x2e2e2e, 3 }, { 0x2039, 0x2039, 0x3c, 1 }, { 0x203a, 0x203a, 0x3e, 1 }, { 0x2044, 0x2044, 0x2f, 1 }, { 0x2122, 0x2122, 0x544d, 2 },
29
- { 0x2212, 0x2212, 0x2d, 1 }, { 0xf6f9, 0xf6f9, 0x4c, 1 }, { 0xf6fa, 0xf6fa, 0x4f45, 2 }, { 0xf6fc, 0xf6fc, 0xb0, 1 }, { 0xf6fd, 0xf6fd, 0x53, 1 }, { 0xf6fe, 0xf6fe, 0x7e, 1 }, { 0xf6ff, 0xf6ff, 0x5a, 1 },
30
- { 0xf721, 0xf721, 0x21, 1 }, { 0xf724, 0xf724, 0x24, 1 }, { 0xf726, 0xf726, 0x26, 1 }, { 0xf730, 0xf739, 0x30, 1 }, { 0xf73f, 0xf73f, 0x3f, 1 }, { 0xf761, 0xf77a, 0x41, 1 }, { 0xf7a1, 0xf7a2, 0xa1, 1 },
31
- { 0xf7bf, 0xf7bf, 0xbf, 1 }, { 0xf7e0, 0xf7f6, 0xc0, 1 }, { 0xf7f8, 0xf7fe, 0xd8, 1 }, { 0xf7ff, 0xf7ff, 0x59, 1 }, { 0xfb00, 0xfb00, 0x6666, 2 }, { 0xfb01, 0xfb01, 0x6669, 2 }, { 0xfb02, 0xfb02, 0x666c, 2 },
32
- { 0xfb03, 0xfb03, 0x666669, 3 }, { 0xfb04, 0xfb04, 0x66666c, 3 }, { 0xfb05, 0xfb05, 0x7374, 2 }, { 0xfb06, 0xfb06, 0x7374, 2 }
33
- };
34
- #define latin1UnicodeMapLen (sizeof(latin1UnicodeMapRanges) / sizeof(UnicodeMapRange))
35
-
36
- static const UnicodeMapRange ascii7UnicodeMapRanges[] = {
37
- { 0x000a, 0x000a, 0x0a, 1 }, { 0x000c, 0x000d, 0x0c, 1 }, { 0x0020, 0x005f, 0x20, 1 }, { 0x0061, 0x007e, 0x61, 1 }, { 0x00a6, 0x00a6, 0x7c, 1 }, { 0x00a9, 0x00a9, 0x286329, 3 }, { 0x00ae, 0x00ae, 0x285229, 3 },
38
- { 0x00b7, 0x00b7, 0x2a, 1 }, { 0x00bc, 0x00bc, 0x312f34, 3 }, { 0x00bd, 0x00bd, 0x312f32, 3 }, { 0x00be, 0x00be, 0x332f34, 3 }, { 0x00c0, 0x00c0, 0x41, 1 }, { 0x00c1, 0x00c1, 0x41, 1 }, { 0x00c2, 0x00c2, 0x41, 1 },
39
- { 0x00c3, 0x00c3, 0x41, 1 }, { 0x00c4, 0x00c4, 0x41, 1 }, { 0x00c5, 0x00c5, 0x41, 1 }, { 0x00c6, 0x00c6, 0x4145, 2 }, { 0x00c7, 0x00c7, 0x43, 1 }, { 0x00c8, 0x00c8, 0x45, 1 }, { 0x00c9, 0x00c9, 0x45, 1 },
40
- { 0x00ca, 0x00ca, 0x45, 1 }, { 0x00cb, 0x00cb, 0x45, 1 }, { 0x00cc, 0x00cc, 0x49, 1 }, { 0x00cd, 0x00cd, 0x49, 1 }, { 0x00ce, 0x00ce, 0x49, 1 }, { 0x00cf, 0x00cf, 0x49, 1 }, { 0x00d1, 0x00d2, 0x4e, 1 },
41
- { 0x00d3, 0x00d3, 0x4f, 1 }, { 0x00d4, 0x00d4, 0x4f, 1 }, { 0x00d5, 0x00d5, 0x4f, 1 }, { 0x00d6, 0x00d6, 0x4f, 1 }, { 0x00d7, 0x00d7, 0x78, 1 }, { 0x00d8, 0x00d8, 0x4f, 1 }, { 0x00d9, 0x00d9, 0x55, 1 },
42
- { 0x00da, 0x00da, 0x55, 1 }, { 0x00db, 0x00db, 0x55, 1 }, { 0x00dc, 0x00dc, 0x55, 1 }, { 0x00dd, 0x00dd, 0x59, 1 }, { 0x00e0, 0x00e0, 0x61, 1 }, { 0x00e1, 0x00e1, 0x61, 1 }, { 0x00e2, 0x00e2, 0x61, 1 },
43
- { 0x00e3, 0x00e3, 0x61, 1 }, { 0x00e4, 0x00e4, 0x61, 1 }, { 0x00e5, 0x00e5, 0x61, 1 }, { 0x00e6, 0x00e6, 0x6165, 2 }, { 0x00e7, 0x00e7, 0x63, 1 }, { 0x00e8, 0x00e8, 0x65, 1 }, { 0x00e9, 0x00e9, 0x65, 1 },
44
- { 0x00ea, 0x00ea, 0x65, 1 }, { 0x00eb, 0x00eb, 0x65, 1 }, { 0x00ec, 0x00ec, 0x69, 1 }, { 0x00ed, 0x00ed, 0x69, 1 }, { 0x00ee, 0x00ee, 0x69, 1 }, { 0x00ef, 0x00ef, 0x69, 1 }, { 0x00f1, 0x00f2, 0x6e, 1 },
45
- { 0x00f3, 0x00f3, 0x6f, 1 }, { 0x00f4, 0x00f4, 0x6f, 1 }, { 0x00f5, 0x00f5, 0x6f, 1 }, { 0x00f6, 0x00f6, 0x6f, 1 }, { 0x00f7, 0x00f7, 0x2f, 1 }, { 0x00f8, 0x00f8, 0x6f, 1 }, { 0x00f9, 0x00f9, 0x75, 1 },
46
- { 0x00fa, 0x00fa, 0x75, 1 }, { 0x00fb, 0x00fb, 0x75, 1 }, { 0x00fc, 0x00fc, 0x75, 1 }, { 0x00fd, 0x00fd, 0x79, 1 }, { 0x00ff, 0x00ff, 0x79, 1 }, { 0x0131, 0x0131, 0x69, 1 }, { 0x0141, 0x0141, 0x4c, 1 },
47
- { 0x0152, 0x0152, 0x4f45, 2 }, { 0x0153, 0x0153, 0x6f65, 2 }, { 0x0160, 0x0160, 0x53, 1 }, { 0x0178, 0x0178, 0x59, 1 }, { 0x017d, 0x017d, 0x5a, 1 }, { 0x2013, 0x2013, 0x2d, 1 }, { 0x2014, 0x2014, 0x2d2d, 2 },
48
- { 0x2018, 0x2018, 0x60, 1 }, { 0x2019, 0x2019, 0x27, 1 }, { 0x201c, 0x201c, 0x22, 1 }, { 0x201d, 0x201d, 0x22, 1 }, { 0x2022, 0x2022, 0x2a, 1 }, { 0x2026, 0x2026, 0x2e2e2e, 3 }, { 0x2122, 0x2122, 0x544d, 2 },
49
- { 0x2212, 0x2212, 0x2d, 1 }, { 0xf6f9, 0xf6f9, 0x4c, 1 }, { 0xf6fa, 0xf6fa, 0x4f45, 2 }, { 0xf6fd, 0xf6fd, 0x53, 1 }, { 0xf6fe, 0xf6fe, 0x7e, 1 }, { 0xf6ff, 0xf6ff, 0x5a, 1 }, { 0xf721, 0xf721, 0x21, 1 },
50
- { 0xf724, 0xf724, 0x24, 1 }, { 0xf726, 0xf726, 0x26, 1 }, { 0xf730, 0xf739, 0x30, 1 }, { 0xf73f, 0xf73f, 0x3f, 1 }, { 0xf761, 0xf77a, 0x41, 1 }, { 0xf7e0, 0xf7e0, 0x41, 1 }, { 0xf7e1, 0xf7e1, 0x41, 1 },
51
- { 0xf7e2, 0xf7e2, 0x41, 1 }, { 0xf7e3, 0xf7e3, 0x41, 1 }, { 0xf7e4, 0xf7e4, 0x41, 1 }, { 0xf7e5, 0xf7e5, 0x41, 1 }, { 0xf7e6, 0xf7e6, 0x4145, 2 }, { 0xf7e7, 0xf7e7, 0x43, 1 }, { 0xf7e8, 0xf7e8, 0x45, 1 },
52
- { 0xf7e9, 0xf7e9, 0x45, 1 }, { 0xf7ea, 0xf7ea, 0x45, 1 }, { 0xf7eb, 0xf7eb, 0x45, 1 }, { 0xf7ec, 0xf7ec, 0x49, 1 }, { 0xf7ed, 0xf7ed, 0x49, 1 }, { 0xf7ee, 0xf7ee, 0x49, 1 }, { 0xf7ef, 0xf7ef, 0x49, 1 },
53
- { 0xf7f1, 0xf7f2, 0x4e, 1 }, { 0xf7f3, 0xf7f3, 0x4f, 1 }, { 0xf7f4, 0xf7f4, 0x4f, 1 }, { 0xf7f5, 0xf7f5, 0x4f, 1 }, { 0xf7f6, 0xf7f6, 0x4f, 1 }, { 0xf7f8, 0xf7f8, 0x4f, 1 }, { 0xf7f9, 0xf7f9, 0x55, 1 },
54
- { 0xf7fa, 0xf7fa, 0x55, 1 }, { 0xf7fb, 0xf7fb, 0x55, 1 }, { 0xf7fc, 0xf7fc, 0x55, 1 }, { 0xf7fd, 0xf7fd, 0x59, 1 }, { 0xf7ff, 0xf7ff, 0x59, 1 }, { 0xfb00, 0xfb00, 0x6666, 2 }, { 0xfb01, 0xfb01, 0x6669, 2 },
55
- { 0xfb02, 0xfb02, 0x666c, 2 }, { 0xfb03, 0xfb03, 0x666669, 3 }, { 0xfb04, 0xfb04, 0x66666c, 3 }, { 0xfb05, 0xfb05, 0x7374, 2 }, { 0xfb06, 0xfb06, 0x7374, 2 }
56
- };
57
- #define ascii7UnicodeMapLen (sizeof(ascii7UnicodeMapRanges) / sizeof(UnicodeMapRange))
58
-
59
- static const UnicodeMapRange symbolUnicodeMapRanges[] = {
60
- { 0x0020, 0x0021, 0x20, 1 }, { 0x0023, 0x0023, 0x23, 1 }, { 0x0025, 0x0026, 0x25, 1 }, { 0x0028, 0x0029, 0x28, 1 }, { 0x002b, 0x002c, 0x2b, 1 }, { 0x002e, 0x003f, 0x2e, 1 }, { 0x005b, 0x005b, 0x5b, 1 }, { 0x005d, 0x005d, 0x5d, 1 },
61
- { 0x005f, 0x005f, 0x5f, 1 }, { 0x007b, 0x007d, 0x7b, 1 }, { 0x00ac, 0x00ac, 0xd8, 1 }, { 0x00b0, 0x00b1, 0xb0, 1 }, { 0x00b5, 0x00b5, 0x6d, 1 }, { 0x00d7, 0x00d7, 0xb4, 1 }, { 0x00f7, 0x00f7, 0xb8, 1 }, { 0x0192, 0x0192, 0xa6, 1 },
62
- { 0x0391, 0x0392, 0x41, 1 }, { 0x0393, 0x0393, 0x47, 1 }, { 0x0395, 0x0395, 0x45, 1 }, { 0x0396, 0x0396, 0x5a, 1 }, { 0x0397, 0x0397, 0x48, 1 }, { 0x0398, 0x0398, 0x51, 1 }, { 0x0399, 0x0399, 0x49, 1 }, { 0x039a, 0x039d, 0x4b, 1 },
63
- { 0x039e, 0x039e, 0x58, 1 }, { 0x039f, 0x03a0, 0x4f, 1 }, { 0x03a1, 0x03a1, 0x52, 1 }, { 0x03a3, 0x03a5, 0x53, 1 }, { 0x03a6, 0x03a6, 0x46, 1 }, { 0x03a7, 0x03a7, 0x43, 1 }, { 0x03a8, 0x03a8, 0x59, 1 }, { 0x03b1, 0x03b2, 0x61, 1 },
64
- { 0x03b3, 0x03b3, 0x67, 1 }, { 0x03b4, 0x03b5, 0x64, 1 }, { 0x03b6, 0x03b6, 0x7a, 1 }, { 0x03b7, 0x03b7, 0x68, 1 }, { 0x03b8, 0x03b8, 0x71, 1 }, { 0x03b9, 0x03b9, 0x69, 1 }, { 0x03ba, 0x03bb, 0x6b, 1 }, { 0x03bd, 0x03bd, 0x6e, 1 },
65
- { 0x03be, 0x03be, 0x78, 1 }, { 0x03bf, 0x03c0, 0x6f, 1 }, { 0x03c1, 0x03c1, 0x72, 1 }, { 0x03c2, 0x03c2, 0x56, 1 }, { 0x03c3, 0x03c5, 0x73, 1 }, { 0x03c6, 0x03c6, 0x66, 1 }, { 0x03c7, 0x03c7, 0x63, 1 }, { 0x03c8, 0x03c8, 0x79, 1 },
66
- { 0x03c9, 0x03c9, 0x77, 1 }, { 0x03d1, 0x03d1, 0x4a, 1 }, { 0x03d2, 0x03d2, 0xa1, 1 }, { 0x03d5, 0x03d5, 0x6a, 1 }, { 0x03d6, 0x03d6, 0x76, 1 }, { 0x2022, 0x2022, 0xb7, 1 }, { 0x2026, 0x2026, 0xbc, 1 }, { 0x2032, 0x2032, 0xa2, 1 },
67
- { 0x2033, 0x2033, 0xb2, 1 }, { 0x2044, 0x2044, 0xa4, 1 }, { 0x2111, 0x2111, 0xc1, 1 }, { 0x2118, 0x2118, 0xc3, 1 }, { 0x211c, 0x211c, 0xc2, 1 }, { 0x2126, 0x2126, 0x57, 1 }, { 0x2135, 0x2135, 0xc0, 1 }, { 0x2190, 0x2193, 0xac, 1 },
68
- { 0x2194, 0x2194, 0xab, 1 }, { 0x21b5, 0x21b5, 0xbf, 1 }, { 0x21d0, 0x21d3, 0xdc, 1 }, { 0x21d4, 0x21d4, 0xdb, 1 }, { 0x2200, 0x2200, 0x22, 1 }, { 0x2202, 0x2202, 0xb6, 1 }, { 0x2203, 0x2203, 0x24, 1 }, { 0x2205, 0x2205, 0xc6, 1 },
69
- { 0x2206, 0x2206, 0x44, 1 }, { 0x2207, 0x2207, 0xd1, 1 }, { 0x2208, 0x2209, 0xce, 1 }, { 0x220b, 0x220b, 0x27, 1 }, { 0x220f, 0x220f, 0xd5, 1 }, { 0x2211, 0x2211, 0xe5, 1 }, { 0x2212, 0x2212, 0x2d, 1 }, { 0x2217, 0x2217, 0x2a, 1 },
70
- { 0x221a, 0x221a, 0xd6, 1 }, { 0x221d, 0x221d, 0xb5, 1 }, { 0x221e, 0x221e, 0xa5, 1 }, { 0x2220, 0x2220, 0xd0, 1 }, { 0x2227, 0x2228, 0xd9, 1 }, { 0x2229, 0x222a, 0xc7, 1 }, { 0x222b, 0x222b, 0xf2, 1 }, { 0x2234, 0x2234, 0x5c, 1 },
71
- { 0x223c, 0x223c, 0x7e, 1 }, { 0x2245, 0x2245, 0x40, 1 }, { 0x2248, 0x2248, 0xbb, 1 }, { 0x2260, 0x2261, 0xb9, 1 }, { 0x2264, 0x2264, 0xa3, 1 }, { 0x2265, 0x2265, 0xb3, 1 }, { 0x2282, 0x2282, 0xcc, 1 }, { 0x2283, 0x2283, 0xc9, 1 },
72
- { 0x2284, 0x2284, 0xcb, 1 }, { 0x2286, 0x2286, 0xcd, 1 }, { 0x2287, 0x2287, 0xca, 1 }, { 0x2295, 0x2295, 0xc5, 1 }, { 0x2297, 0x2297, 0xc4, 1 }, { 0x22a5, 0x22a5, 0x5e, 1 }, { 0x22c5, 0x22c5, 0xd7, 1 }, { 0x2320, 0x2320, 0xf3, 1 },
73
- { 0x2321, 0x2321, 0xf5, 1 }, { 0x2329, 0x2329, 0xe1, 1 }, { 0x232a, 0x232a, 0xf1, 1 }, { 0x25ca, 0x25ca, 0xe0, 1 }, { 0x2660, 0x2660, 0xaa, 1 }, { 0x2663, 0x2663, 0xa7, 1 }, { 0x2665, 0x2665, 0xa9, 1 }, { 0x2666, 0x2666, 0xa8, 1 },
74
- { 0xf6d9, 0xf6d9, 0xd3, 1 }, { 0xf6da, 0xf6da, 0xd2, 1 }, { 0xf6db, 0xf6db, 0xd4, 1 }, { 0xf8e5, 0xf8e5, 0x60, 1 }, { 0xf8e6, 0xf8e7, 0xbd, 1 }, { 0xf8e8, 0xf8ea, 0xe2, 1 }, { 0xf8eb, 0xf8f4, 0xe6, 1 }, { 0xf8f5, 0xf8f5, 0xf4, 1 },
75
- { 0xf8f6, 0xf8fe, 0xf6, 1 }
76
- };
77
- #define symbolUnicodeMapLen (sizeof(symbolUnicodeMapRanges) / sizeof(UnicodeMapRange))
78
-
79
- static const UnicodeMapRange zapfDingbatsUnicodeMapRanges[] = { { 0x0020, 0x0020, 0x20, 1 }, { 0x2192, 0x2192, 0xd5, 1 }, { 0x2194, 0x2195, 0xd6, 1 }, { 0x2460, 0x2469, 0xac, 1 }, { 0x25a0, 0x25a0, 0x6e, 1 }, { 0x25b2, 0x25b2, 0x73, 1 },
80
- { 0x25bc, 0x25bc, 0x74, 1 }, { 0x25c6, 0x25c6, 0x75, 1 }, { 0x25cf, 0x25cf, 0x6c, 1 }, { 0x25d7, 0x25d7, 0x77, 1 }, { 0x2605, 0x2605, 0x48, 1 }, { 0x260e, 0x260e, 0x25, 1 },
81
- { 0x261b, 0x261b, 0x2a, 1 }, { 0x261e, 0x261e, 0x2b, 1 }, { 0x2660, 0x2660, 0xab, 1 }, { 0x2663, 0x2663, 0xa8, 1 }, { 0x2665, 0x2665, 0xaa, 1 }, { 0x2666, 0x2666, 0xa9, 1 },
82
- { 0x2701, 0x2704, 0x21, 1 }, { 0x2706, 0x2709, 0x26, 1 }, { 0x270c, 0x2727, 0x2c, 1 }, { 0x2729, 0x274b, 0x49, 1 }, { 0x274d, 0x274d, 0x6d, 1 }, { 0x274f, 0x2752, 0x6f, 1 },
83
- { 0x2756, 0x2756, 0x76, 1 }, { 0x2758, 0x275e, 0x78, 1 }, { 0x2761, 0x2767, 0xa1, 1 }, { 0x2776, 0x2794, 0xb6, 1 }, { 0x2798, 0x27af, 0xd8, 1 }, { 0x27b1, 0x27be, 0xf1, 1 } };
84
- #define zapfDingbatsUnicodeMapLen (sizeof(zapfDingbatsUnicodeMapRanges) / sizeof(UnicodeMapRange))
@@ -1,49 +0,0 @@
1
- //========================================================================
2
- //
3
- // UnicodeTypeTable.h
4
- //
5
- // Copyright 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 Ed Catmur <ed@catmur.co.uk>
17
- // Copyright (C) 2012 Adrian Johnson <ajohnson@redneon.com>
18
- // Copyright (C) 2016 Khaled Hosny <khaledhosny@eglug.org>
19
- // Copyright (C) 2019 Adriaan de Groot <groot@kde.org>
20
- // Copyright (C) 2019 Albert Astals Cid <aacid@kde.org>
21
- //
22
- // To see a description of the changes please see the Changelog file that
23
- // came with your tarball or type make ChangeLog if you are building from git
24
- //
25
- //========================================================================
26
-
27
- #ifndef UNICODETYPETABLE_H
28
- #define UNICODETYPETABLE_H
29
-
30
- #include "CharTypes.h"
31
- #include "poppler_private_export.h"
32
-
33
- extern bool unicodeTypeL(Unicode c);
34
-
35
- extern bool unicodeTypeR(Unicode c);
36
-
37
- extern bool unicodeTypeNum(Unicode c);
38
-
39
- extern bool unicodeTypeAlphaNum(Unicode c);
40
-
41
- extern bool unicodeIsAlphabeticPresentationForm(Unicode c);
42
-
43
- extern Unicode unicodeToUpper(Unicode c);
44
-
45
- extern Unicode POPPLER_PRIVATE_EXPORT *unicodeNormalizeNFKC(const Unicode *in, int len, int *out_len, int **indices);
46
-
47
- extern Unicode POPPLER_PRIVATE_EXPORT *unicodeNormalizeNFKC(const Unicode *in, int len, int *out_len, int **indices, bool reverseRTL);
48
-
49
- #endif
@@ -1,87 +0,0 @@
1
- //========================================================================
2
- //
3
- // ViewerPreferences.h
4
- //
5
- // This file is licensed under the GPLv2 or later
6
- //
7
- // Copyright 2011 Pino Toscano <pino@kde.org>
8
- // Copyright 2019 Marek Kasik <mkasik@redhat.com>
9
- // Copyright 2021, 2022 Albert Astals Cid <aacid@kde.org>
10
- //
11
- //========================================================================
12
-
13
- #ifndef VIEWERPREFERENCES_H
14
- #define VIEWERPREFERENCES_H
15
-
16
- #include <vector>
17
-
18
- class Dict;
19
-
20
- //------------------------------------------------------------------------
21
- // ViewerPreferences
22
- //------------------------------------------------------------------------
23
-
24
- class ViewerPreferences
25
- {
26
- public:
27
- enum NonFullScreenPageMode
28
- {
29
- nfpmUseNone,
30
- nfpmUseOutlines,
31
- nfpmUseThumbs,
32
- nfpmUseOC
33
- };
34
- enum Direction
35
- {
36
- directionL2R,
37
- directionR2L
38
- };
39
- enum PrintScaling
40
- {
41
- printScalingNone,
42
- printScalingAppDefault
43
- };
44
- enum Duplex
45
- {
46
- duplexNone,
47
- duplexSimplex,
48
- duplexDuplexFlipShortEdge,
49
- duplexDuplexFlipLongEdge
50
- };
51
-
52
- explicit ViewerPreferences(Dict *prefDict);
53
- ~ViewerPreferences();
54
-
55
- bool getHideToolbar() const { return hideToolbar; }
56
- bool getHideMenubar() const { return hideMenubar; }
57
- bool getHideWindowUI() const { return hideWindowUI; }
58
- bool getFitWindow() const { return fitWindow; }
59
- bool getCenterWindow() const { return centerWindow; }
60
- bool getDisplayDocTitle() const { return displayDocTitle; }
61
- NonFullScreenPageMode getNonFullScreenPageMode() const { return nonFullScreenPageMode; }
62
- Direction getDirection() const { return direction; }
63
- PrintScaling getPrintScaling() const { return printScaling; }
64
- Duplex getDuplex() const { return duplex; }
65
- bool getPickTrayByPDFSize() const { return pickTrayByPDFSize; }
66
- int getNumCopies() const { return numCopies; }
67
- std::vector<std::pair<int, int>> getPrintPageRange() const { return printPageRange; }
68
-
69
- private:
70
- void init();
71
-
72
- bool hideToolbar;
73
- bool hideMenubar;
74
- bool hideWindowUI;
75
- bool fitWindow;
76
- bool centerWindow;
77
- bool displayDocTitle;
78
- NonFullScreenPageMode nonFullScreenPageMode = nfpmUseNone;
79
- Direction direction = directionL2R;
80
- PrintScaling printScaling = printScalingAppDefault;
81
- Duplex duplex = duplexNone;
82
- bool pickTrayByPDFSize;
83
- int numCopies = 1;
84
- std::vector<std::pair<int, int>> printPageRange;
85
- };
86
-
87
- #endif