node-poppler 7.1.0 → 7.1.1

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 (320) hide show
  1. package/README.md +2 -2
  2. package/package.json +6 -3
  3. package/src/index.js +42 -86
  4. package/src/lib/win32/poppler-24.02.0/Library/bin/charset.dll +0 -0
  5. package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/iconv.dll +0 -0
  6. package/src/lib/win32/poppler-24.02.0/Library/bin/lcms2.dll +0 -0
  7. package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/libcrypto-3-x64.dll +0 -0
  8. package/src/lib/win32/poppler-24.02.0/Library/bin/libcurl.dll +0 -0
  9. package/src/lib/win32/poppler-24.02.0/Library/bin/libpng16.dll +0 -0
  10. package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/pdfattach.exe +0 -0
  11. package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/pdfdetach.exe +0 -0
  12. package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/pdffonts.exe +0 -0
  13. package/src/lib/win32/poppler-24.02.0/Library/bin/pdfimages.exe +0 -0
  14. package/src/lib/win32/poppler-24.02.0/Library/bin/pdfinfo.exe +0 -0
  15. package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/pdfseparate.exe +0 -0
  16. package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/pdftocairo.exe +0 -0
  17. package/src/lib/win32/poppler-24.02.0/Library/bin/pdftohtml.exe +0 -0
  18. package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/pdftoppm.exe +0 -0
  19. package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/pdftops.exe +0 -0
  20. package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/pdftotext.exe +0 -0
  21. package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/pdfunite.exe +0 -0
  22. package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/pixman-1-0.dll +0 -0
  23. package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/poppler-cpp.dll +0 -0
  24. package/src/lib/win32/poppler-24.02.0/Library/bin/poppler-glib.dll +0 -0
  25. package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/poppler.dll +0 -0
  26. package/types/index.d.ts +766 -820
  27. package/src/lib/win32/poppler-23.11.0/Library/bin/charset.dll +0 -0
  28. package/src/lib/win32/poppler-23.11.0/Library/bin/lcms2.dll +0 -0
  29. package/src/lib/win32/poppler-23.11.0/Library/bin/libcurl.dll +0 -0
  30. package/src/lib/win32/poppler-23.11.0/Library/bin/libpng16.dll +0 -0
  31. package/src/lib/win32/poppler-23.11.0/Library/bin/pdfimages.exe +0 -0
  32. package/src/lib/win32/poppler-23.11.0/Library/bin/pdfinfo.exe +0 -0
  33. package/src/lib/win32/poppler-23.11.0/Library/bin/pdftohtml.exe +0 -0
  34. package/src/lib/win32/poppler-23.11.0/Library/bin/poppler-glib.dll +0 -0
  35. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/Lerc.dll +0 -0
  36. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/cairo.dll +0 -0
  37. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/deflate.dll +0 -0
  38. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/expat.dll +0 -0
  39. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/fontconfig-1.dll +0 -0
  40. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/freetype.dll +0 -0
  41. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/jpeg8.dll +0 -0
  42. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/libexpat.dll +0 -0
  43. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/liblzma.dll +0 -0
  44. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/libssh2.dll +0 -0
  45. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/libtiff.dll +0 -0
  46. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/libzstd.dll +0 -0
  47. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/openjp2.dll +0 -0
  48. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/tiff.dll +0 -0
  49. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/zlib.dll +0 -0
  50. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/zstd.dll +0 -0
  51. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/Library/bin/zstd.exe +0 -0
  52. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/COPYING +0 -0
  53. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/COPYING.adobe +0 -0
  54. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/COPYING.gpl2 +0 -0
  55. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/README +0 -0
  56. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-0 +0 -0
  57. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-1 +0 -0
  58. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-2 +0 -0
  59. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-3 +0 -0
  60. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-4 +0 -0
  61. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-5 +0 -0
  62. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-6 +0 -0
  63. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-7 +0 -0
  64. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-B5pc +0 -0
  65. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-ETen-B5 +0 -0
  66. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-H-CID +0 -0
  67. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-H-Host +0 -0
  68. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-H-Mac +0 -0
  69. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/Adobe-CNS1-UCS2 +0 -0
  70. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/B5-H +0 -0
  71. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/B5-V +0 -0
  72. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/B5pc-H +0 -0
  73. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/B5pc-UCS2 +0 -0
  74. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/B5pc-UCS2C +0 -0
  75. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/B5pc-V +0 -0
  76. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/CNS-EUC-H +0 -0
  77. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/CNS-EUC-V +0 -0
  78. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/CNS1-H +0 -0
  79. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/CNS1-V +0 -0
  80. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/CNS2-H +0 -0
  81. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/CNS2-V +0 -0
  82. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/ETHK-B5-H +0 -0
  83. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/ETHK-B5-V +0 -0
  84. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/ETen-B5-H +0 -0
  85. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/ETen-B5-UCS2 +0 -0
  86. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/ETen-B5-V +0 -0
  87. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/ETenms-B5-H +0 -0
  88. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/ETenms-B5-V +0 -0
  89. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/HKdla-B5-H +0 -0
  90. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/HKdla-B5-V +0 -0
  91. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/HKdlb-B5-H +0 -0
  92. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/HKdlb-B5-V +0 -0
  93. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/HKgccs-B5-H +0 -0
  94. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/HKgccs-B5-V +0 -0
  95. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/HKm314-B5-H +0 -0
  96. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/HKm314-B5-V +0 -0
  97. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/HKm471-B5-H +0 -0
  98. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/HKm471-B5-V +0 -0
  99. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/HKscs-B5-H +0 -0
  100. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/HKscs-B5-V +0 -0
  101. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/UCS2-B5pc +0 -0
  102. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/UCS2-ETen-B5 +0 -0
  103. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/UniCNS-UCS2-H +0 -0
  104. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/UniCNS-UCS2-V +0 -0
  105. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/UniCNS-UTF16-H +0 -0
  106. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/UniCNS-UTF16-V +0 -0
  107. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/UniCNS-UTF32-H +0 -0
  108. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/UniCNS-UTF32-V +0 -0
  109. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/UniCNS-UTF8-H +0 -0
  110. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-CNS1/UniCNS-UTF8-V +0 -0
  111. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/Adobe-GB1-0 +0 -0
  112. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/Adobe-GB1-1 +0 -0
  113. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/Adobe-GB1-2 +0 -0
  114. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/Adobe-GB1-3 +0 -0
  115. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/Adobe-GB1-4 +0 -0
  116. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/Adobe-GB1-5 +0 -0
  117. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/Adobe-GB1-GBK-EUC +0 -0
  118. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/Adobe-GB1-GBpc-EUC +0 -0
  119. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/Adobe-GB1-H-CID +0 -0
  120. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/Adobe-GB1-H-Host +0 -0
  121. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/Adobe-GB1-H-Mac +0 -0
  122. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/Adobe-GB1-UCS2 +0 -0
  123. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GB-EUC-H +0 -0
  124. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GB-EUC-V +0 -0
  125. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GB-H +0 -0
  126. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GB-V +0 -0
  127. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBK-EUC-H +0 -0
  128. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBK-EUC-UCS2 +0 -0
  129. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBK-EUC-V +0 -0
  130. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBK2K-H +0 -0
  131. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBK2K-V +0 -0
  132. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBKp-EUC-H +0 -0
  133. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBKp-EUC-V +0 -0
  134. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBT-EUC-H +0 -0
  135. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBT-EUC-V +0 -0
  136. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBT-H +0 -0
  137. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBT-V +0 -0
  138. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBTpc-EUC-H +0 -0
  139. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBTpc-EUC-V +0 -0
  140. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBpc-EUC-H +0 -0
  141. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBpc-EUC-UCS2 +0 -0
  142. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBpc-EUC-UCS2C +0 -0
  143. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/GBpc-EUC-V +0 -0
  144. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/UCS2-GBK-EUC +0 -0
  145. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/UCS2-GBpc-EUC +0 -0
  146. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/UniGB-UCS2-H +0 -0
  147. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/UniGB-UCS2-V +0 -0
  148. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/UniGB-UTF16-H +0 -0
  149. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/UniGB-UTF16-V +0 -0
  150. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/UniGB-UTF32-H +0 -0
  151. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/UniGB-UTF32-V +0 -0
  152. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/UniGB-UTF8-H +0 -0
  153. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-GB1/UniGB-UTF8-V +0 -0
  154. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/78-EUC-H +0 -0
  155. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/78-EUC-V +0 -0
  156. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/78-H +0 -0
  157. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/78-RKSJ-H +0 -0
  158. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/78-RKSJ-V +0 -0
  159. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/78-V +0 -0
  160. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/78ms-RKSJ-H +0 -0
  161. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/78ms-RKSJ-V +0 -0
  162. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/83pv-RKSJ-H +0 -0
  163. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/90ms-RKSJ-H +0 -0
  164. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/90ms-RKSJ-UCS2 +0 -0
  165. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/90ms-RKSJ-V +0 -0
  166. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/90msp-RKSJ-H +0 -0
  167. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/90msp-RKSJ-V +0 -0
  168. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/90pv-RKSJ-H +0 -0
  169. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/90pv-RKSJ-UCS2 +0 -0
  170. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/90pv-RKSJ-UCS2C +0 -0
  171. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/90pv-RKSJ-V +0 -0
  172. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Add-H +0 -0
  173. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Add-RKSJ-H +0 -0
  174. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Add-RKSJ-V +0 -0
  175. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Add-V +0 -0
  176. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-0 +0 -0
  177. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-1 +0 -0
  178. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-2 +0 -0
  179. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-3 +0 -0
  180. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-4 +0 -0
  181. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-5 +0 -0
  182. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-6 +0 -0
  183. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-7 +0 -0
  184. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-90ms-RKSJ +0 -0
  185. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-90pv-RKSJ +0 -0
  186. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-H-CID +0 -0
  187. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-H-Host +0 -0
  188. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-H-Mac +0 -0
  189. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-PS-H +0 -0
  190. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-PS-V +0 -0
  191. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Adobe-Japan1-UCS2 +0 -0
  192. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/EUC-H +0 -0
  193. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/EUC-V +0 -0
  194. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Ext-H +0 -0
  195. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Ext-RKSJ-H +0 -0
  196. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Ext-RKSJ-V +0 -0
  197. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Ext-V +0 -0
  198. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/H +0 -0
  199. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Hankaku +0 -0
  200. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Hiragana +0 -0
  201. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Hojo-EUC-H +0 -0
  202. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Hojo-EUC-V +0 -0
  203. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Hojo-H +0 -0
  204. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Hojo-V +0 -0
  205. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Katakana +0 -0
  206. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/NWP-H +0 -0
  207. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/NWP-V +0 -0
  208. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/RKSJ-H +0 -0
  209. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/RKSJ-V +0 -0
  210. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/Roman +0 -0
  211. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UCS2-90ms-RKSJ +0 -0
  212. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UCS2-90pv-RKSJ +0 -0
  213. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniHojo-UCS2-H +0 -0
  214. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniHojo-UCS2-V +0 -0
  215. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniHojo-UTF16-H +0 -0
  216. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniHojo-UTF16-V +0 -0
  217. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniHojo-UTF32-H +0 -0
  218. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniHojo-UTF32-V +0 -0
  219. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniHojo-UTF8-H +0 -0
  220. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniHojo-UTF8-V +0 -0
  221. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS-UCS2-H +0 -0
  222. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS-UCS2-HW-H +0 -0
  223. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS-UCS2-HW-V +0 -0
  224. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS-UCS2-V +0 -0
  225. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS-UTF16-H +0 -0
  226. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS-UTF16-V +0 -0
  227. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS-UTF32-H +0 -0
  228. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS-UTF32-V +0 -0
  229. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS-UTF8-H +0 -0
  230. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS-UTF8-V +0 -0
  231. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS2004-UTF16-H +0 -0
  232. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS2004-UTF16-V +0 -0
  233. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS2004-UTF32-H +0 -0
  234. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS2004-UTF32-V +0 -0
  235. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS2004-UTF8-H +0 -0
  236. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJIS2004-UTF8-V +0 -0
  237. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJISPro-UCS2-HW-V +0 -0
  238. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJISPro-UCS2-V +0 -0
  239. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJISPro-UTF8-V +0 -0
  240. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJISX0213-UTF32-H +0 -0
  241. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJISX0213-UTF32-V +0 -0
  242. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJISX02132004-UTF32-H +0 -0
  243. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/UniJISX02132004-UTF32-V +0 -0
  244. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/V +0 -0
  245. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan1/WP-Symbol +0 -0
  246. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Japan2/Adobe-Japan2-0 +0 -0
  247. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-KR/Adobe-KR-0 +0 -0
  248. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-KR/Adobe-KR-1 +0 -0
  249. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-KR/Adobe-KR-2 +0 -0
  250. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-KR/Adobe-KR-3 +0 -0
  251. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-KR/Adobe-KR-4 +0 -0
  252. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-KR/Adobe-KR-5 +0 -0
  253. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-KR/Adobe-KR-6 +0 -0
  254. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-KR/Adobe-KR-7 +0 -0
  255. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-KR/Adobe-KR-8 +0 -0
  256. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-KR/Adobe-KR-9 +0 -0
  257. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-KR/Adobe-KR-UCS2 +0 -0
  258. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-KR/UniAKR-UTF16-H +0 -0
  259. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-KR/UniAKR-UTF32-H +0 -0
  260. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-KR/UniAKR-UTF8-H +0 -0
  261. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/Adobe-Korea1-0 +0 -0
  262. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/Adobe-Korea1-1 +0 -0
  263. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/Adobe-Korea1-2 +0 -0
  264. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/Adobe-Korea1-H-CID +0 -0
  265. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/Adobe-Korea1-H-Host +0 -0
  266. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/Adobe-Korea1-H-Mac +0 -0
  267. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/Adobe-Korea1-KSCms-UHC +0 -0
  268. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/Adobe-Korea1-KSCpc-EUC +0 -0
  269. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/Adobe-Korea1-UCS2 +0 -0
  270. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/KSC-EUC-H +0 -0
  271. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/KSC-EUC-V +0 -0
  272. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/KSC-H +0 -0
  273. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/KSC-Johab-H +0 -0
  274. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/KSC-Johab-V +0 -0
  275. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/KSC-V +0 -0
  276. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/KSCms-UHC-H +0 -0
  277. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/KSCms-UHC-HW-H +0 -0
  278. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/KSCms-UHC-HW-V +0 -0
  279. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/KSCms-UHC-UCS2 +0 -0
  280. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/KSCms-UHC-V +0 -0
  281. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/KSCpc-EUC-H +0 -0
  282. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/KSCpc-EUC-UCS2 +0 -0
  283. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/KSCpc-EUC-UCS2C +0 -0
  284. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/KSCpc-EUC-V +0 -0
  285. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/UCS2-KSCms-UHC +0 -0
  286. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/UCS2-KSCpc-EUC +0 -0
  287. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/UniKS-UCS2-H +0 -0
  288. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/UniKS-UCS2-V +0 -0
  289. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/UniKS-UTF16-H +0 -0
  290. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/UniKS-UTF16-V +0 -0
  291. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/UniKS-UTF32-H +0 -0
  292. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/UniKS-UTF32-V +0 -0
  293. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/UniKS-UTF8-H +0 -0
  294. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cMap/Adobe-Korea1/UniKS-UTF8-V +0 -0
  295. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cidToUnicode/Adobe-CNS1 +0 -0
  296. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cidToUnicode/Adobe-GB1 +0 -0
  297. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cidToUnicode/Adobe-Japan1 +0 -0
  298. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/cidToUnicode/Adobe-Korea1 +0 -0
  299. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/nameToUnicode/Bulgarian +0 -0
  300. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/nameToUnicode/Greek +0 -0
  301. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/nameToUnicode/Thai +0 -0
  302. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/poppler-data.pc +0 -0
  303. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/poppler-data.pc.in +0 -0
  304. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/Big5 +0 -0
  305. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/Big5ascii +0 -0
  306. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/EUC-CN +0 -0
  307. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/EUC-JP +0 -0
  308. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/GBK +0 -0
  309. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/ISO-2022-CN +0 -0
  310. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/ISO-2022-JP +0 -0
  311. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/ISO-2022-KR +0 -0
  312. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/ISO-8859-6 +0 -0
  313. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/ISO-8859-7 +0 -0
  314. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/ISO-8859-8 +0 -0
  315. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/ISO-8859-9 +0 -0
  316. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/KOI8-R +0 -0
  317. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/Latin2 +0 -0
  318. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/Shift-JIS +0 -0
  319. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/TIS-620 +0 -0
  320. /package/src/lib/win32/{poppler-23.11.0 → poppler-24.02.0}/share/poppler/unicodeMap/Windows-1255 +0 -0
package/types/index.d.ts CHANGED
@@ -1,823 +1,769 @@
1
1
  export default Poppler;
2
2
  export class Poppler {
3
- /** @param {string} [binPath] - Path of poppler-utils binaries. */
4
- constructor(binPath?: string);
5
- popplerPath: string;
6
- /**
7
- * @author Frazer Smith
8
- * @description Embeds files (attachments) into a PDF file.
9
- * @param {string} file - Filepath of the PDF file to read.
10
- * @param {string} fileToAttach - Filepath of the attachment to be embedded into the PDF file.
11
- * @param {string} outputFile - Filepath of the file to output the results to.
12
- * @param {object} [options] - Object containing options to pass to binary.
13
- * @param {boolean} [options.printVersionInfo] - Print copyright and version info.
14
- * @param {boolean} [options.replace] - Replace embedded file with same name (if it exists).
15
- * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
16
- */
17
- pdfAttach(
18
- file: string,
19
- fileToAttach: string,
20
- outputFile: string,
21
- options?: {
22
- printVersionInfo?: boolean;
23
- replace?: boolean;
24
- }
25
- ): Promise<string>;
26
- /**
27
- * @author Frazer Smith
28
- * @description Lists or extracts embedded files (attachments) from a PDF file.
29
- * @param {string} file - Filepath of the PDF file to read.
30
- * @param {object} [options] - Object containing options to pass to binary.
31
- * @param {boolean} [options.listEmbedded] - List all of the embedded files in the PDF file.
32
- * File names are converted to the text encoding specified by `options.outputEncoding`.
33
- * @param {string} [options.ownerPassword] - Owner password (for encrypted files).
34
- * @param {string} [options.outputEncoding] - Sets the encoding to use for text output.
35
- * This defaults to `UTF-8`.
36
- * @param {string} [options.outputPath] - Set the file name used when saving an embedded file with
37
- * the save option enabled, or the directory if `options.saveall` is used.
38
- * @param {boolean} [options.printVersionInfo] - Print copyright and version info.
39
- * @param {boolean} [options.saveAllFiles] - Save all of the embedded files. This uses the file
40
- * names associated with the embedded files (as printed by `options.listEmbedded`).
41
- * By default, the files are saved in the current directory; this can be changed
42
- * with `options.outputPath`.
43
- * @param {string} [options.saveFile] - Save the specified embedded file.
44
- * By default, this uses the file name associated with the embedded file (as printed by
45
- * `options.listEmbedded`); the file name can be changed with `options.outputPath`.
46
- * @param {number} [options.saveSpecificFile] - Save the specified embedded file.
47
- * By default, this uses the file name associated with the embedded file (as printed by
48
- * `options.listEmbedded`); the file name can be changed with `options.outputPath`.
49
- * @param {string} [options.userPassword] - User password (for encrypted files).
50
- * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
51
- */
52
- pdfDetach(
53
- file: string,
54
- options?: {
55
- listEmbedded?: boolean;
56
- ownerPassword?: string;
57
- outputEncoding?: string;
58
- outputPath?: string;
59
- printVersionInfo?: boolean;
60
- saveAllFiles?: boolean;
61
- saveFile?: string;
62
- saveSpecificFile?: number;
63
- userPassword?: string;
64
- }
65
- ): Promise<string>;
66
- /**
67
- * @author Frazer Smith
68
- * @description Lists the fonts used in a PDF file along with various information for each font.
69
- * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
70
- * @param {object} [options] - Object containing options to pass to binary.
71
- * @param {number} [options.firstPageToExamine] - Specifies the first page to examine.
72
- * @param {number} [options.lastPageToExamine] - Specifies the last page to examine.
73
- * @param {boolean} [options.listSubstitutes] - List the substitute fonts that poppler
74
- * will use for non-embedded fonts.
75
- * @param {string} [options.ownerPassword] - Owner password (for encrypted files).
76
- * @param {boolean} [options.printVersionInfo] - Print copyright and version info.
77
- * @param {string} [options.userPassword] - User password (for encrypted files). *
78
- * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
79
- */
80
- pdfFonts(
81
- file: Buffer | string,
82
- options?: {
83
- firstPageToExamine?: number;
84
- lastPageToExamine?: number;
85
- listSubstitutes?: boolean;
86
- ownerPassword?: string;
87
- printVersionInfo?: boolean;
88
- userPassword?: string;
89
- }
90
- ): Promise<string>;
91
- /**
92
- * @author Frazer Smith
93
- * @description Saves images from a PDF file as PPM, PBM, PNG, TIFF, JPEG, JPEG2000, or JBIG2 files.
94
- * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
95
- * @param {string} [outputPrefix] - Filename prefix of output files.
96
- * @param {object} [options] - Object containing options to pass to binary.
97
- * @param {boolean} [options.allFiles] - Write JPEG, JPEG2000, JBIG2, and CCITT images in their native format.
98
- * CMYK files are written as TIFF files. All other images are written as PNG files.
99
- * @param {boolean} [options.ccittFile] - Generate CCITT images as CCITT files.
100
- * @param {number} [options.firstPageToConvert] - Specifies the first page to convert.
101
- * @param {number} [options.lastPageToConvert] - Specifies the last page to convert.
102
- * @param {boolean} [options.list] - Instead of writing the images, list the
103
- * images along with various information for each image.
104
- * NOTE: Do not specify the outputPrefix with this option.
105
- * @param {boolean} [options.jbig2File] - Generate JBIG2 images as JBIG2 files.
106
- * @param {boolean} [options.jpeg2000File] - Generate JPEG2000 images at JP2 files.
107
- * @param {boolean} [options.jpegFile] - Generate JPEG images as JPEG files.
108
- * @param {string} [options.ownerPassword] - Owner password (for encrypted files).
109
- * @param {boolean} [options.pngFile] - Change the default output format to PNG.
110
- * @param {boolean} [options.printVersionInfo] - Print copyright and version info.
111
- * @param {boolean} [options.tiffFile] - Change the default output format to TIFF.
112
- * @param {string} [options.userPassword] - Specify the user password for the PDF file.
113
- * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
114
- */
115
- pdfImages(
116
- file: Buffer | string,
117
- outputPrefix?: string,
118
- options?: {
119
- allFiles?: boolean;
120
- ccittFile?: boolean;
121
- firstPageToConvert?: number;
122
- lastPageToConvert?: number;
123
- list?: boolean;
124
- jbig2File?: boolean;
125
- jpeg2000File?: boolean;
126
- jpegFile?: boolean;
127
- ownerPassword?: string;
128
- pngFile?: boolean;
129
- printVersionInfo?: boolean;
130
- tiffFile?: boolean;
131
- userPassword?: string;
132
- }
133
- ): Promise<string>;
134
- /**
135
- * @author Frazer Smith
136
- * @description Prints the contents of the `Info` dictionary from a PDF file.
137
- * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
138
- * @param {object} [options] - Object containing options to pass to binary.
139
- * @param {number} [options.firstPageToConvert] - First page to print.
140
- * @param {number} [options.lastPageToConvert] - Last page to print.
141
- * @param {boolean} [options.listEncodingOptions] - List the available encodings.
142
- * @param {string} [options.outputEncoding] - Sets the encoding to use for text output.
143
- * This defaults to `UTF-8`.
144
- * @param {string} [options.ownerPassword] - Owner password (for encrypted files).
145
- * @param {boolean} [options.printAsJson] - Print result as a JSON object.
146
- * @param {boolean} [options.printBoundingBoxes] - Prints the page box bounding boxes:
147
- * MediaBox, CropBox, BleedBox, TrimBox, and ArtBox.
148
- * @param {boolean} [options.printDocStruct] - Prints the logical document structure
149
- * of a Tagged-PDF file.
150
- * @param {boolean} [options.printDocStructText] - Print the textual content along with the
151
- * document structure of a Tagged-PDF file. Note that extracting text this way might be slow
152
- *
153
- * for big PDF files.
154
- * @param {boolean} [options.printIsoDates] - Prints dates in ISO-8601 format (including the time zone).
155
- * @param {boolean} [options.printJS] - Prints all JavaScript in the PDF file.
156
- * @param {boolean} [options.printMetadata] - Prints document-level metadata. (This is the `Metadata`
157
- * stream from the PDF file's Catalog object).
158
- * @param {boolean} [options.printNamedDests] - Print a list of all named destinations. If a page range
159
- * is specified using the `options.firstPageToConvert` and `options.lastPageToConvert` options, only destinations
160
- * in the page range are listed.
161
- * @param {boolean} [options.printRawDates] - Prints the raw (undecoded) date strings, directly from the PDF file.
162
- * @param {boolean} [options.printUrls] - Print all URLs in the PDF; only URLs referenced by PDF objects
163
- * such as Link Annotations are listed, not URL strings in the text content.
164
- * @param {boolean} [options.printVersionInfo] - Print copyright and version info.
165
- * @param {string} [options.userPassword] - User password (for encrypted files).
166
- * @returns {Promise<object|string>} A promise that resolves with a stdout string or JSON object if
167
- * `options.printAsJson` is `true`, or rejects with an `Error` object.
168
- */
169
- pdfInfo(
170
- file: Buffer | string,
171
- options?: {
172
- firstPageToConvert?: number;
173
- lastPageToConvert?: number;
174
- listEncodingOptions?: boolean;
175
- outputEncoding?: string;
176
- ownerPassword?: string;
177
- printAsJson?: boolean;
178
- printBoundingBoxes?: boolean;
179
- printDocStruct?: boolean;
180
- printDocStructText?: boolean;
181
- printIsoDates?: boolean;
182
- printJS?: boolean;
183
- printMetadata?: boolean;
184
- printNamedDests?: boolean;
185
- printRawDates?: boolean;
186
- printUrls?: boolean;
187
- printVersionInfo?: boolean;
188
- userPassword?: string;
189
- }
190
- ): Promise<object | string>;
191
- /**
192
- * @author Frazer Smith
193
- * @description Extracts single pages from a PDF file,
194
- * and writes one PDF file for each page to outputPattern.
195
- * This will not work if the file is encrypted.
196
- * @param {string} file - Filepath of the PDF file to read.
197
- * @param {string} outputPattern - Should contain %d (or any variant respecting printf format),
198
- * since %d is replaced by the page number.
199
- * As an example, `sample-%d.pdf` will produce `sample-1.pdf` for a single page document.
200
- * @param {object} [options] - Object containing options to pass to binary.
201
- * @param {number} [options.firstPageToExtract] - Specifies the first page to extract.
202
- * This defaults to page 1.
203
- * @param {number} [options.lastPageToExtract] - Specifies the last page to extract.
204
- * This defaults to the last page of the PDF file.
205
- * @param {boolean} [options.printVersionInfo] - Print copyright and version info.
206
- * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
207
- */
208
- pdfSeparate(
209
- file: string,
210
- outputPattern: string,
211
- options?: {
212
- firstPageToExtract?: number;
213
- lastPageToExtract?: number;
214
- printVersionInfo?: boolean;
215
- }
216
- ): Promise<string>;
217
- /**
218
- * @author Frazer Smith
219
- * @description Converts a PDF file to EPS/JPEG/PDF/PNG/PS/SVG/TIFF.
220
- * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
221
- * @param {string} [outputFile] - Filepath of the file to output the results to.
222
- *
223
- * If `undefined` then will write output to stdout. Using stdout is not valid with image formats
224
- * (jpeg, png, and tiff) unless `options.singleFile` is set to `true`.
225
- * Encoding is set to `binary` if used with `options.singleFile` or `options.pdfFile`.
226
- *
227
- * If not set then the output filename will be derived from the PDF file name.
228
- * @param {object} [options] - Object containing options to pass to binary.
229
- * @param {('best'|'default'|'fast'|'good'|'gray'|'none'|'subpixel')} [options.antialias] - Set the cairo
230
- * antialias option used for text and drawing in image files (or rasterized regions in vector output).
231
- * @param {boolean} [options.cropBox] - Uses the crop box rather than media box when
232
- * generating the files (PNG/JPEG/TIFF only).
233
- * @param {number} [options.cropHeight] - Specifies the height of crop area in pixels
234
- * (image output) or points (vector output).
235
- * @param {number} [options.cropSize] - Specifies the size of crop square in pixels
236
- * (image output) or points (vector output).
237
- * @param {number} [options.cropWidth] - Specifies the width of crop area in pixels
238
- * (image output) or points (vector output).
239
- * @param {number} [options.cropXAxis] - Specifies the x-coordinate of the crop area top left
240
- * corner in pixels (image output) or points (vector output).
241
- * @param {number} [options.cropYAxis] - Specifies the y-coordinate of the crop area top left
242
- * corner in pixels (image output) or points (vector output).
243
- * @param {boolean} [options.duplex] - Adds the %%IncludeFeature: *Duplex DuplexNoTumble DSC
244
- * comment to the PostScript file (PS only). This tells the print manager to enable duplexing.
245
- * @param {boolean} [options.epsFile] - Generate an EPS file. An EPS file contains a single image,
246
- * so if you use this option with a multi-page PDF file, you must use `options.firstPageToConvert` and
247
- * `options.lastPageToConvert` to specify a single page.
248
- * The page size options (originalPageSizes, paperSize, paperWidth, paperHeight) can not be used
249
- * with this option.
250
- * @param {boolean} [options.evenPagesOnly] - Generates only the even numbered pages.
251
- * @param {boolean} [options.fillPage] - Expand PDF pages smaller than the paper to fill the
252
- * paper (PS,PDF,SVG only). By default, these pages are not scaled.
253
- * @param {number} [options.firstPageToConvert] - Specifies the first page to convert.
254
- * @param {boolean} [options.grayscaleFile] - Generate grayscale file (PNG, JPEG, and TIFF only).
255
- * @param {string} [options.iccFile] - Use the specified ICC file as the output profile
256
- * (PNG only). The profile will be embedded in the PNG file.
257
- * @param {boolean} [options.jpegFile] - Generate JPEG file(s).
258
- * @param {string} [options.jpegOptions] - When used with `options.jpegFile`, this option can
259
- * be used to control the JPEG compression parameters. It takes a string of the form
260
- * `"<opt>=<val>[,<opt>=<val>]"`. Currently available options are:
261
- * - `quality` Selects the JPEG quality value. The value must be an integer between 0 and 100.
262
- * - `progressive` Select progressive JPEG output. The possible values are "y", "n", indicating
263
- * progressive (yes) or non-progressive (no), respectively.
264
- * - `optimize` Sets whether to compute optimal Huffman coding tables for the JPEG output, which
265
- * will create smaller files but make an extra pass over the data. The value must be "y" or "n",
266
- * with "y" performing optimization, otherwise the default Huffman tables are used.
267
- *
268
- * Example: `"quality=95,optimize=y"`.
269
- * @param {number} [options.lastPageToConvert] - Specifies the last page to convert.
270
- * @param {boolean} [options.monochromeFile] - Generate monochrome file (PNG and TIFF only).
271
- * @param {boolean} [options.noCenter] - By default, PDF pages smaller than the paper
272
- * (after any scaling) are centered on the paper. This option causes them to be aligned to
273
- * the lower-left corner of the paper instead (PS,PDF,SVG only).
274
- * @param {boolean} [options.noCrop] - By default, printing output is cropped to the CropBox
275
- * specified in the PDF file. This option disables cropping (PS, PDF, SVG only).
276
- * @param {boolean} [options.noShrink] - Do not scale PDF pages which are larger than the paper
277
- * (PS,PDF,SVG only). By default, pages larger than the paper are shrunk to fit.
278
- * @param {boolean} [options.oddPagesOnly] - Generates only the odd numbered pages.
279
- * @param {boolean} [options.originalPageSizes] - Set the paper size of each page to match
280
- * the size specified in the PDF file.
281
- * @param {string} [options.ownerPassword] - Specify the owner password for the PDF file.
282
- * Providing this will bypass all security restrictions.
283
- * @param {number} [options.paperHeight] - Set the paper height, in points (PS, PDF, SVG only).
284
- * @param {('A3'|'A4'|'legal'|'letter'|'match')} [options.paperSize] - Set the paper size to one of `A3`, `A4`,
285
- * `legal`, or `letter` (PS,PDF,SVG only). This can also be set to `match`, which will set the paper size
286
- * of each page to match the size specified in the PDF file. If none of the paperSize,
287
- * paperWidth, or paperHeight options are specified the default is to match the paper size.
288
- * @param {number} [options.paperWidth] - Set the paper width, in points (PS,PDF,SVG only).
289
- * @param {boolean} [options.pdfFile] - Generate PDF file.
290
- * @param {boolean} [options.pngFile] - Generate PNG file(s).
291
- * @param {boolean} [options.printVersionInfo] - Print copyright and version information.
292
- * @param {boolean} [options.printDocStruct] - If the input file contains structural information
293
- * about the document's content, write this information to the output file (PDF only).
294
- * @param {boolean} [options.psFile] - Generate PS file.
295
- * @param {boolean} [options.psLevel2] - Generate Level 2 PostScript (PS only).
296
- * @param {boolean} [options.psLevel3] - Generate Level 3 PostScript (PS only). This enables all
297
- * Level 2 features plus shading patterns and masked images. This is the default setting.
298
- * @param {boolean} [options.quiet] - Do not print any messages or errors.
299
- * @param {number} [options.resolutionXAxis] - Specifies the X resolution, in pixels per inch of
300
- * image files (or rasterized regions in vector output). The default is 150 PPI.
301
- * @param {number} [options.resolutionXYAxis] - Specifies the X and Y resolution, in pixels per
302
- * inch of image files (or rasterized regions in vector output). The default is 150 PPI.
303
- * @param {number} [options.resolutionYAxis] - Specifies the Y resolution, in pixels per inch of
304
- * image files (or rasterized regions in vector output). The default is 150 PPI.
305
- * @param {number} [options.scalePageTo] - Scales the long side of each page (width for landscape
306
- * pages, height for portrait pages) to fit in scale-to pixels. The size of the short side will
307
- * be determined by the aspect ratio of the page (PNG/JPEG/TIFF only).
308
- * @param {number} [options.scalePageToXAxis] - Scales each page horizontally to fit in scale-to-x
309
- * pixels. If scale-to-y is set to -1, the vertical size will determined by the aspect ratio of
310
- * the page (PNG/JPEG/TIFF only).
311
- * @param {number} [options.scalePageToYAxis] - Scales each page vertically to fit in scale-to-y
312
- * pixels. If scale-to-x is set to -1, the horizontal size will determined by the aspect ratio of
313
- * the page (PNG/JPEG/TIFF only).
314
- * @param {boolean} [options.singleFile] - Writes only the first page and does not add digits.
315
- * Can only be used with `options.jpegFile`, `options.pngFile`, and `options.tiffFile`.
316
- * @param {boolean} [options.svgFile] - Generate SVG (Scalable Vector Graphics) file.
317
- * @param {('deflate'|'jpeg'|'lzw'|'none'|'packbits')} [options.tiffCompression] - Set TIFF compression.
318
- * @param {boolean} [options.tiffFile] - Generate TIFF file(s).
319
- * @param {boolean} [options.transparentPageColor] - Use a transparent page color
320
- * instead of white (PNG and TIFF only).
321
- * @param {string} [options.userPassword] - Specify the user password for the PDF file.
322
- * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
323
- */
324
- pdfToCairo(
325
- file: Buffer | string,
326
- outputFile?: string,
327
- options?: {
328
- antialias?:
329
- | "best"
330
- | "default"
331
- | "fast"
332
- | "good"
333
- | "gray"
334
- | "none"
335
- | "subpixel";
336
- cropBox?: boolean;
337
- cropHeight?: number;
338
- cropSize?: number;
339
- cropWidth?: number;
340
- cropXAxis?: number;
341
- cropYAxis?: number;
342
- duplex?: boolean;
343
- epsFile?: boolean;
344
- evenPagesOnly?: boolean;
345
- fillPage?: boolean;
346
- firstPageToConvert?: number;
347
- grayscaleFile?: boolean;
348
- iccFile?: string;
349
- jpegFile?: boolean;
350
- jpegOptions?: string;
351
- lastPageToConvert?: number;
352
- monochromeFile?: boolean;
353
- noCenter?: boolean;
354
- noCrop?: boolean;
355
- noShrink?: boolean;
356
- oddPagesOnly?: boolean;
357
- originalPageSizes?: boolean;
358
- ownerPassword?: string;
359
- paperHeight?: number;
360
- paperSize?: "A3" | "A4" | "legal" | "letter" | "match";
361
- paperWidth?: number;
362
- pdfFile?: boolean;
363
- pngFile?: boolean;
364
- printVersionInfo?: boolean;
365
- printDocStruct?: boolean;
366
- psFile?: boolean;
367
- psLevel2?: boolean;
368
- psLevel3?: boolean;
369
- quiet?: boolean;
370
- resolutionXAxis?: number;
371
- resolutionXYAxis?: number;
372
- resolutionYAxis?: number;
373
- scalePageTo?: number;
374
- scalePageToXAxis?: number;
375
- scalePageToYAxis?: number;
376
- singleFile?: boolean;
377
- svgFile?: boolean;
378
- tiffCompression?: "deflate" | "jpeg" | "lzw" | "none" | "packbits";
379
- tiffFile?: boolean;
380
- transparentPageColor?: boolean;
381
- userPassword?: string;
382
- }
383
- ): Promise<string>;
384
- /**
385
- * @author Frazer Smith
386
- * @description Converts a PDF file to HTML.
387
- * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
388
- * @param {string} [outputFile] - Filepath of the file to output the results to.
389
- * If `undefined` then Poppler will use the directory and name of the original file
390
- * and create a new file, with `-html` appended to the end of the filename.
391
- *
392
- * Required if `file` is a Buffer.
393
- * @param {object} [options] - Object containing options to pass to binary.
394
- * @param {boolean} [options.complexOutput] - Generate complex output.
395
- * @param {boolean} [options.dataUrls] - Use data URLs instead of external images in HTML.
396
- * @param {boolean} [options.exchangePdfLinks] - Exchange .pdf links with .html.
397
- * @param {boolean} [options.extractHidden] - Force hidden text extraction.
398
- * @param {number} [options.firstPageToConvert] - First page to print.
399
- * @param {boolean} [options.fontFullName] - Outputs the font name without any substitutions.
400
- * @param {boolean} [options.ignoreImages] - Ignore images.
401
- * @param {('JPG'|'PNG')} [options.imageFormat] - Image file format for Splash output (JPG or PNG).
402
- * If complexOutput is selected, but imageFormat is not specified, PNG will be assumed.
403
- * @param {number} [options.lastPageToConvert] - Last page to print.
404
- * @param {boolean} [options.noDrm] - Override document DRM settings.
405
- * @param {boolean} [options.noFrames] - Generate no frames. Not supported in complex output mode.
406
- * @param {boolean} [options.noMergeParagraph] - Do not merge paragraphs.
407
- * @param {boolean} [options.noRoundedCoordinates] - Do not round coordinates
408
- * (with XML output only).
409
- * @param {string} [options.outputEncoding] - Sets the encoding to use for text output.
410
- * This defaults to `UTF-8`.
411
- * @param {string} [options.ownerPassword] - Owner password (for encrypted files).
412
- * @param {boolean} [options.printVersionInfo] - Print copyright and version info.
413
- * @param {boolean} [options.quiet] - Do not print any messages or errors.
414
- * @param {boolean} [options.singlePage] - generate single HTML that includes all pages.
415
- * @param {boolean} [options.stdout] - Use standard output.
416
- * @param {string} [options.userPassword] - User password (for encrypted files).
417
- * @param {number} [options.wordBreakThreshold] - Adjust the word break threshold percent.
418
- * Default is 10. Word break occurs when distance between two adjacent characters is greater
419
- * than this percent of character height.
420
- * @param {boolean} [options.xmlOutput] - Output for XML post-processing.
421
- * @param {number} [options.zoom] - Zoom the PDF document (default 1.5).
422
- * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
423
- */
424
- pdfToHtml(
425
- file: Buffer | string,
426
- outputFile?: string,
427
- options?: {
428
- complexOutput?: boolean;
429
- dataUrls?: boolean;
430
- exchangePdfLinks?: boolean;
431
- extractHidden?: boolean;
432
- firstPageToConvert?: number;
433
- fontFullName?: boolean;
434
- ignoreImages?: boolean;
435
- imageFormat?: "JPG" | "PNG";
436
- lastPageToConvert?: number;
437
- noDrm?: boolean;
438
- noFrames?: boolean;
439
- noMergeParagraph?: boolean;
440
- noRoundedCoordinates?: boolean;
441
- outputEncoding?: string;
442
- ownerPassword?: string;
443
- printVersionInfo?: boolean;
444
- quiet?: boolean;
445
- singlePage?: boolean;
446
- stdout?: boolean;
447
- userPassword?: string;
448
- wordBreakThreshold?: number;
449
- xmlOutput?: boolean;
450
- zoom?: number;
451
- }
452
- ): Promise<string>;
453
- /**
454
- * @author Frazer Smith
455
- * @description Converts a PDF file to colour image files in Portable Pixmap (PPM) format,
456
- * grayscale image files in Portable Graymap (PGM) format, or monochrome image files
457
- * in Portable Bitmap (PBM) format.
458
- * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
459
- * @param {string} outputPath - Filepath to output the results to.
460
- * @param {object} [options] - Object containing options to pass to binary.
461
- * @param {('no'|'yes')} [options.antialiasFonts] - Enable or disable font anti-aliasing.
462
- * This defaults to `yes`.
463
- * @param {('no'|'yes')} [options.antialiasVectors] - Enable or disable vector anti-aliasing.
464
- * This defaults to `yes`.
465
- * @param {boolean} [options.cropBox] - Uses the crop box rather than media box when
466
- * generating the files (PNG/JPEG/TIFF only).
467
- * @param {number} [options.cropHeight] - Specifies the height of crop area in pixels
468
- * (image output) or points (vector output).
469
- * @param {number} [options.cropSize] - Specifies the size of crop square in pixels
470
- * (image output) or points (vector output).
471
- * @param {number} [options.cropWidth] - Specifies the width of crop area in pixels
472
- * (image output) or points (vector output).
473
- * @param {number} [options.cropXAxis] - Specifies the x-coordinate of the crop area top left
474
- * corner in pixels (image output) or points (vector output).
475
- * @param {number} [options.cropYAxis] - Specifies the y-coordinate of the crop area top left
476
- * corner in pixels (image output) or points (vector output).
477
- * @param {string} [options.defaultCmykProfile] - If Poppler is compiled with colour management support, this option
478
- * sets the DefaultCMYK color space to the ICC profile stored in the display profile file passed.
479
- * @param {string} [options.defaultGrayProfile] - If Poppler is compiled with colour management support, this option
480
- * sets the DefaultGray color space to the ICC profile stored in the display profile file passed.
481
- * @param {string} [options.defaultRgbProfile] - If Poppler is compiled with colour management support, this option
482
- * sets the DefaultRGB color space to the ICC profile stored in the display profile file passed.
483
- * @param {string} [options.displayProfile] - If Poppler is compiled with colour management support, this option
484
- * sets the display profile to the ICC profile stored in the display profile file passed.
485
- * @param {boolean} [options.evenPagesOnly] - Generates only the even numbered pages.
486
- * @param {number} [options.firstPageToConvert] - Specifies the first page to convert.
487
- * @param {('no'|'yes')} [options.freetype] - Enable or disable FreeType (a TrueType / Type 1 font rasterizer).
488
- * This defaults to `yes`.
489
- * @param {boolean} [options.forcePageNumber] - Force page number even if there is only one page.
490
- * @param {boolean} [options.grayscaleFile] - Generate grayscale PGM file (instead of a color PPM file).
491
- * @param {boolean} [options.hideAnnotations] - Hide annotations.
492
- * @param {boolean} [options.jpegFile] - Generate JPEG file instead a PPM file.
493
- * @param {number} [options.lastPageToConvert] - Specifies the last page to convert.
494
- * @param {boolean} [options.monochromeFile] - Generate monochrome PBM file (instead of a color PPM file).
495
- * @param {boolean} [options.oddPagesOnly] - Generates only the odd numbered pages.
496
- * @param {string} [options.ownerPassword] - Specify the owner password for the PDF file.
497
- * Providing this will bypass all security restrictions.
498
- * @param {boolean} [options.pngFile] - Generate PNG file instead a PPM file.
499
- * @param {boolean} [options.printProgress] - Print progress info as each page is generated.
500
- * Three space-separated fields are printed to STDERR: the number of the current page, the number
501
- * of the last page that will be generated, and the path to the file written to.
502
- * @param {boolean} [options.printVersionInfo] - Print copyright and version information.
503
- * @param {boolean} [options.quiet] - Do not print any messages or errors.
504
- * @param {number} [options.resolutionXAxis] - Specifies the X resolution, in pixels per inch of
505
- * image files (or rasterized regions in vector output). The default is 150 PPI.
506
- * @param {number} [options.resolutionXYAxis] - Specifies the X and Y resolution, in pixels per
507
- * inch of image files (or rasterized regions in vector output). The default is 150 PPI.
508
- * @param {number} [options.resolutionYAxis] - Specifies the Y resolution, in pixels per inch of
509
- * image files (or rasterized regions in vector output). The default is 150 PPI.
510
- * @param {number} [options.scalePageTo] - Scales the long side of each page (width for landscape
511
- * pages, height for portrait pages) to fit in scale-to pixels. The size of the short side will
512
- * be determined by the aspect ratio of the page.
513
- * @param {number} [options.scalePageToXAxis] - Scales each page horizontally to fit in scale-to-x
514
- * pixels. If scale-to-y is set to -1, the vertical size will determined by the aspect ratio of
515
- * the page.
516
- * @param {number} [options.scalePageToYAxis] - Scales each page vertically to fit in scale-to-y
517
- * pixels. If scale-to-x is set to -1, the horizontal size will determined by the aspect ratio of
518
- * the page.
519
- * @param {string} [options.separator] - Specify single character separator between name and page number.
520
- * @param {boolean} [options.singleFile] - Writes only the first page and does not add digits.
521
- * @param {('none'|'shape'|'solid')} [options.thinLineMode] - Specifies the thin line mode. This defaults to `none`.
522
- * @param {('deflate'|'jpeg'|'lzw'|'none'|'packbits')} [options.tiffCompression] - Set TIFF compression.
523
- * @param {boolean} [options.tiffFile] - Generate TIFF file instead a PPM file.
524
- * @param {string} [options.userPassword] - Specify the user password for the PDF file.
525
- * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
526
- */
527
- pdfToPpm(
528
- file: Buffer | string,
529
- outputPath: string,
530
- options?: {
531
- antialiasFonts?: "no" | "yes";
532
- antialiasVectors?: "no" | "yes";
533
- cropBox?: boolean;
534
- cropHeight?: number;
535
- cropSize?: number;
536
- cropWidth?: number;
537
- cropXAxis?: number;
538
- cropYAxis?: number;
539
- defaultCmykProfile?: string;
540
- defaultGrayProfile?: string;
541
- defaultRgbProfile?: string;
542
- displayProfile?: string;
543
- evenPagesOnly?: boolean;
544
- firstPageToConvert?: number;
545
- freetype?: "no" | "yes";
546
- forcePageNumber?: boolean;
547
- grayscaleFile?: boolean;
548
- hideAnnotations?: boolean;
549
- jpegFile?: boolean;
550
- lastPageToConvert?: number;
551
- monochromeFile?: boolean;
552
- oddPagesOnly?: boolean;
553
- ownerPassword?: string;
554
- pngFile?: boolean;
555
- printProgress?: boolean;
556
- printVersionInfo?: boolean;
557
- quiet?: boolean;
558
- resolutionXAxis?: number;
559
- resolutionXYAxis?: number;
560
- resolutionYAxis?: number;
561
- scalePageTo?: number;
562
- scalePageToXAxis?: number;
563
- scalePageToYAxis?: number;
564
- separator?: string;
565
- singleFile?: boolean;
566
- thinLineMode?: "none" | "shape" | "solid";
567
- tiffCompression?: "deflate" | "jpeg" | "lzw" | "none" | "packbits";
568
- tiffFile?: boolean;
569
- userPassword?: string;
570
- }
571
- ): Promise<string>;
572
- /**
573
- * @author Frazer Smith
574
- * @description Converts a PDF file to PostScript (PS).
575
- * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
576
- * @param {string} [outputFile] - Filepath of the file to output the results to.
577
- * If `undefined` then will write output to stdout.
578
- * @param {object} [options] - Object containing options to pass to binary.
579
- * @param {('no'|'yes')} [options.antialias] - Enable anti-aliasing on rasterization, accepts `no` or `yes`.
580
- * @param {boolean} [options.binary] - Write binary data in Level 1 PostScript. By default,
581
- * pdftops writes hex-encoded data in Level 1 PostScript. Binary data is non-standard in Level 1
582
- * PostScript but reduces the file size and can be useful when Level 1 PostScript is required
583
- * only for its restricted use of PostScript operators.
584
- * @param {string} [options.defaultCmykProfile] - If Poppler is compiled with colour management support, this option
585
- * sets the DefaultCMYK color space to the ICC profile stored in the display profile file passed.
586
- * @param {string} [options.defaultGrayProfile] - If Poppler is compiled with colour management support, this option
587
- * sets the DefaultGray color space to the ICC profile stored in the display profile file passed.
588
- * @param {string} [options.defaultRgbProfile] - If Poppler is compiled with colour management support, this option
589
- * sets the DefaultRGB color space to the ICC profile stored in the display profile file passed.
590
- * @param {boolean} [options.duplex] - Set the Duplex pagedevice entry in the PostScript file.
591
- * This tells duplex-capable printers to enable duplexing.
592
- * @param {boolean} [options.epsFile] - Generate an EPS file. An EPS file contains a single image,
593
- * so if you use this option with a multi-page PDF file, you must use `options.firstPageToConvert` and
594
- * `options.lastPageToConvert` to specify a single page.
595
- * The page size options (originalPageSizes, paperSize, paperWidth, paperHeight) can not be used
596
- * with this option.
597
- * @param {boolean} [options.fillPage] - Expand PDF pages smaller than the paper to fill the
598
- * paper. By default, these pages are not scaled.
599
- * @param {number} [options.firstPageToConvert] - Specifies the first page to convert.
600
- * @param {number} [options.form] - Generate PostScript form which can be imported by software
601
- * that understands forms.
602
- * A form contains a single page, so if you use this option with a multi-page PDF file,
603
- * you must use `options.firstPageToConvert` and `options.lastPageToConvert` to specify a single page.
604
- * The `options.level1` option cannot be used with `options.form`.
605
- * No more than one of the mode options (`options.epsFile`, `options.form`) may be given.
606
- * @param {number} [options.lastPageToConvert] - Specifies the last page to convert.
607
- * @param {boolean} [options.level1] - Generate Level 1 PostScript. The resulting PostScript
608
- * files will be significantly larger (if they contain images), but will print on Level 1 printers.
609
- * This also converts all images to black and white.
610
- * @param {boolean} [options.level1Sep] - Generate Level 1 separable PostScript.
611
- * All colors are converted to CMYK. Images are written with separate stream data for the four components.
612
- * @param {boolean} [options.level2] - Generate Level 2 PostScript.
613
- * Level 2 supports color images and image compression. This is the default setting.
614
- * @param {boolean} [options.level2Sep] - Generate Level 2 separable PostScript. All colors are
615
- * converted to CMYK. The PostScript separation convention operators are used to handle custom (spot) colors.
616
- * @param {boolean} [options.level3] - Generate Level 3 PostScript.
617
- * This enables all Level 2 featuresplus CID font embedding.
618
- * @param {boolean} [options.level3Sep] - Generate Level 3 separable PostScript.
619
- * The separation handling is the same as for `options.level2Sep`.
620
- * @param {boolean} [options.noEmbedCIDFonts] - By default, any CID PostScript fonts which are
621
- * embedded in the PDF file are copied into the PostScript file. This option disables that embedding.
622
- * No attempt is made to substitute for non-embedded CID PostScript fonts.
623
- * @param {boolean} [options.noEmbedCIDTrueTypeFonts] - By default, any CID TrueType fonts which are
624
- * embedded in the PDF file are copied into the PostScript file. This option disables that embedding.
625
- * No attempt is made to substitute for non-embedded CID TrueType fonts.
626
- * @param {boolean} [options.noEmbedTrueTypeFonts] - By default, any TrueType fonts which are embedded
627
- * in the PDF file are copied into the PostScript file. This option causes pdfToPs to substitute base fonts instead.
628
- * Embedded fonts make PostScript files larger, but may be necessary for readable output.
629
- * Also, some PostScript interpreters do not have TrueType rasterizers.
630
- * @param {boolean} [options.noEmbedType1Fonts] - By default, any Type 1 fonts which are embedded in the PDF file
631
- * are copied into the PostScript file. This option causes pdfToPs to substitute base fonts instead.
632
- * Embedded fonts make PostScript files larger, but may be necessary for readable output.
633
- * @param {boolean} [options.noCenter] - By default, PDF pages smaller than the paper
634
- * (after any scaling) are centered on the paper. This option causes them to be aligned to
635
- * the lower-left corner of the paper instead.
636
- * @param {boolean} [options.noCrop] - By default, printing output is cropped to the CropBox
637
- * specified in the PDF file. This option disables cropping.
638
- * @param {boolean} [options.noShrink] - Do not scale PDF pages which are larger than the paper.
639
- * By default, pages larger than the paper are shrunk to fit.
640
- * @param {boolean} [options.opi] - Generate OPI comments for all images and forms which have OPI information.
641
- * @param {boolean} [options.optimizecolorspace] - By default, bitmap images in the PDF pass through to the
642
- * output PostScript in their original color space, which produces predictable results.
643
- * This option converts RGB and CMYK images into Gray images if every pixel of the image has equal components.
644
- * This can fix problems when doing color separations of PDFs that contain embedded black and
645
- * white images encoded as RGB.
646
- * @param {boolean} [options.originalPageSizes] - Set the paper size of each page to match
647
- * the size specified in the PDF file.
648
- * @param {boolean} [options.overprint] - Enable overprinting.
649
- * @param {string} [options.ownerPassword] - Owner password (for encrypted files).
650
- * @param {number} [options.paperHeight] - Set the paper height, in points.
651
- * @param {('A3'|'A4'|'legal'|'letter'|'match')} [options.paperSize] - Set the paper size to one of `A3`, `A4`,
652
- * `legal`, or `letter`. This can also be set to `match`, which will set the paper size
653
- * of each page to match the size specified in the PDF file. If none of the paperSize,
654
- * paperWidth, or paperHeight options are specified the default is to match the paper size.
655
- * @param {number} [options.paperWidth] - Set the paper width, in points.
656
- * @param {boolean} [options.passfonts] - By default, references to non-embedded 8-bit fonts
657
- * in the PDF file are substituted with the closest `Helvetica`, `Times-Roman`, or `Courier` font.
658
- * This option passes references to non-embedded fonts through to the PostScript file.
659
- * @param {boolean} [options.preload] - Preload images and forms.
660
- * @param {boolean} [options.printVersionInfo] - Print copyright and version information.
661
- * @param {('CMYK8'|'MONO8'|'RGB8')} [options.processColorFormat] - Sets the process color format as it is used
662
- * during rasterization and transparency reduction.
663
- *
664
- * The default depends on the other settings: For `options.level1` the default is MONO8; for `options.level1Sep`,
665
- * `options.level2Sep`, `options.level3Sep`, or `options.overprint` the default is CMYK8; in all other
666
- * cases RGB8 is the default.
667
- * If `option.processColorProfile` is set then `options.processColorFormat` is inferred from the specified ICC profile.
668
- * @param {string} [options.processColorProfile] - Sets the ICC profile that is assumed during
669
- * rasterization and transparency reduction.
670
- * @param {boolean} [options.quiet] - Do not print any messages or errors.
671
- * @param {('always'|'never'|'whenneeded')} [options.rasterize] - By default, pdfToPs rasterizes pages as needed,
672
- * for example, if they contain transparencies. To force rasterization, set `rasterize` to `always`.
673
- * Use this to eliminate fonts.
674
- * To prevent rasterization, set `rasterize` to `never`.
675
- * This may produce files that display incorrectly.
676
- * @param {number} [options.resolutionXYAxis] - Specifies the X and Y resolution, in pixels per
677
- * inch of image files (or rasterized regions in vector output). The default is 300 PPI.
678
- * @param {string} [options.userPassword] - User password (for encrypted files).
679
- * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
680
- */
681
- pdfToPs(
682
- file: Buffer | string,
683
- outputFile?: string,
684
- options?: {
685
- antialias?: "no" | "yes";
686
- binary?: boolean;
687
- defaultCmykProfile?: string;
688
- defaultGrayProfile?: string;
689
- defaultRgbProfile?: string;
690
- duplex?: boolean;
691
- epsFile?: boolean;
692
- fillPage?: boolean;
693
- firstPageToConvert?: number;
694
- form?: number;
695
- lastPageToConvert?: number;
696
- level1?: boolean;
697
- level1Sep?: boolean;
698
- level2?: boolean;
699
- level2Sep?: boolean;
700
- level3?: boolean;
701
- level3Sep?: boolean;
702
- noEmbedCIDFonts?: boolean;
703
- noEmbedCIDTrueTypeFonts?: boolean;
704
- noEmbedTrueTypeFonts?: boolean;
705
- noEmbedType1Fonts?: boolean;
706
- noCenter?: boolean;
707
- noCrop?: boolean;
708
- noShrink?: boolean;
709
- opi?: boolean;
710
- optimizecolorspace?: boolean;
711
- originalPageSizes?: boolean;
712
- overprint?: boolean;
713
- ownerPassword?: string;
714
- paperHeight?: number;
715
- paperSize?: "A3" | "A4" | "legal" | "letter" | "match";
716
- paperWidth?: number;
717
- passfonts?: boolean;
718
- preload?: boolean;
719
- printVersionInfo?: boolean;
720
- processColorFormat?: "CMYK8" | "MONO8" | "RGB8";
721
- processColorProfile?: string;
722
- quiet?: boolean;
723
- rasterize?: "always" | "never" | "whenneeded";
724
- resolutionXYAxis?: number;
725
- userPassword?: string;
726
- }
727
- ): Promise<string>;
728
- /**
729
- * @author Frazer Smith
730
- * @description Converts a PDF file to TXT.
731
- * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
732
- * @param {string} [outputFile] - Filepath of the file to output the results to.
733
- * If `undefined` then will write output to stdout.
734
- * @param {object} [options] - Object containing options to pass to binary.
735
- * @param {boolean} [options.boundingBoxXhtml] - Generate an XHTML file containing bounding
736
- * box information for each word in the file.
737
- * @param {boolean} [options.boundingBoxXhtmlLayout] - Generate an XHTML file containing
738
- * bounding box information for each block, line, and word in the file.
739
- * @param {boolean} [options.cropBox] - Use the crop box rather than the media box with
740
- * `options.boundingBoxXhtml` and `options.boundingBoxXhtmlLayout`
741
- * @param {number} [options.cropHeight] - Specifies the height of crop area in pixels
742
- * (image output) or points (vector output).
743
- * @param {number} [options.cropWidth] - Specifies the width of crop area in pixels
744
- * (image output) or points (vector output).
745
- * @param {number} [options.cropXAxis] - Specifies the x-coordinate of the crop area top left
746
- * corner in pixels (image output) or points (vector output).
747
- * @param {number} [options.cropYAxis] - Specifies the y-coordinate of the crop area top left
748
- * corner in pixels (image output) or points (vector output).
749
- * @param {('dos'|'mac'|'unix')} [options.eolConvention] - Sets the end-of-line convention to use for
750
- * text output: dos; mac; unix.
751
- * @param {number} [options.firstPageToConvert] - Specifies the first page to convert.
752
- * @param {number} [options.fixedWidthLayout] - Assume fixed-pitch (or tabular) text, with the
753
- * specified character width (in points). This forces physical layout mode.
754
- * @param {boolean} [options.generateHtmlMetaFile] - Generate simple HTML file, including the
755
- * meta information. This simply wraps the text in `<pre>` and `</pre>` and prepends the meta headers.
756
- * @param {boolean} [options.generateTsvFile] - Generate a TSV file containing the bounding box
757
- * information for each block, line, and word in the file.
758
- * @param {number} [options.lastPageToConvert] - Specifies the last page to convert.
759
- * @param {boolean} [options.listEncodingOptions] - List the available encodings.
760
- * @param {boolean} [options.maintainLayout] - Maintain (as best as possible) the original physical
761
- * layout of the text. The default is to undo physical layout (columns, hyphenation, etc.) and
762
- * output the text in reading order.
763
- * @param {boolean} [options.noDiagonalText] - Discard diagonal text.
764
- * @param {boolean} [options.noPageBreaks] - Do not insert page breaks (form feed characters)
765
- * between pages.
766
- * @param {string} [options.outputEncoding] - Sets the encoding to use for text output.
767
- * This defaults to `UTF-8`.
768
- * @param {string} [options.ownerPassword] - Owner password (for encrypted files).
769
- * @param {boolean} [options.printVersionInfo] - Print copyright and version information.
770
- * @param {boolean} [options.quiet] - Do not print any messages or errors.
771
- * @param {boolean} [options.rawLayout] - Keep the text in content stream order. This is a
772
- * hack which often undoes column formatting, etc. Use of raw mode is no longer recommended.
773
- * @param {string} [options.userPassword] - User password (for encrypted files).
774
- * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
775
- */
776
- pdfToText(
777
- file: Buffer | string,
778
- outputFile?: string,
779
- options?: {
780
- boundingBoxXhtml?: boolean;
781
- boundingBoxXhtmlLayout?: boolean;
782
- cropBox?: boolean;
783
- cropHeight?: number;
784
- cropWidth?: number;
785
- cropXAxis?: number;
786
- cropYAxis?: number;
787
- eolConvention?: "dos" | "mac" | "unix";
788
- firstPageToConvert?: number;
789
- fixedWidthLayout?: number;
790
- generateHtmlMetaFile?: boolean;
791
- generateTsvFile?: boolean;
792
- lastPageToConvert?: number;
793
- listEncodingOptions?: boolean;
794
- maintainLayout?: boolean;
795
- noDiagonalText?: boolean;
796
- noPageBreaks?: boolean;
797
- outputEncoding?: string;
798
- ownerPassword?: string;
799
- printVersionInfo?: boolean;
800
- quiet?: boolean;
801
- rawLayout?: boolean;
802
- userPassword?: string;
803
- }
804
- ): Promise<string>;
805
- /**
806
- * @author Frazer Smith
807
- * @description Merges several PDF files in order of their occurrence in the files array to
808
- * one PDF result file.
809
- * @param {string[]} files - Filepaths of the PDF files to merge.
810
- * An entire directory of PDF files can be merged like so: `path/to/directory/*.pdf`.
811
- * @param {string} outputFile - Filepath of the file to output the resulting merged PDF to.
812
- * @param {object} [options] - Object containing options to pass to binary.
813
- * @param {boolean} [options.printVersionInfo] - Print copyright and version information.
814
- * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
815
- */
816
- pdfUnite(
817
- files: string[],
818
- outputFile: string,
819
- options?: {
820
- printVersionInfo?: boolean;
821
- }
822
- ): Promise<string>;
3
+ /** @param {string} [binPath] - Path of poppler-utils binaries. */
4
+ constructor(binPath?: string);
5
+ popplerPath: string;
6
+ /**
7
+ * @author Frazer Smith
8
+ * @description Embeds files (attachments) into a PDF file.
9
+ * @param {string} file - Filepath of the PDF file to read.
10
+ * @param {string} fileToAttach - Filepath of the attachment to be embedded into the PDF file.
11
+ * @param {string} outputFile - Filepath of the file to output the results to.
12
+ * @param {object} [options] - Object containing options to pass to binary.
13
+ * @param {boolean} [options.printVersionInfo] - Print copyright and version info.
14
+ * @param {boolean} [options.replace] - Replace embedded file with same name (if it exists).
15
+ * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
16
+ */
17
+ pdfAttach(file: string, fileToAttach: string, outputFile: string, options?: {
18
+ printVersionInfo?: boolean;
19
+ replace?: boolean;
20
+ }): Promise<string>;
21
+ /**
22
+ * @author Frazer Smith
23
+ * @description Lists or extracts embedded files (attachments) from a PDF file.
24
+ * @param {string} file - Filepath of the PDF file to read.
25
+ * @param {object} [options] - Object containing options to pass to binary.
26
+ * @param {boolean} [options.listEmbedded] - List all of the embedded files in the PDF file.
27
+ * File names are converted to the text encoding specified by `options.outputEncoding`.
28
+ * @param {string} [options.outputEncoding] - Sets the encoding to use for text output.
29
+ * This defaults to `UTF-8`.
30
+ * @param {string} [options.ownerPassword] - Owner password (for encrypted files).
31
+ * @param {string} [options.outputPath] - Set the file name used when saving an embedded file with
32
+ * the save option enabled, or the directory if `options.saveall` is used.
33
+ * @param {boolean} [options.printVersionInfo] - Print copyright and version info.
34
+ * @param {boolean} [options.saveAllFiles] - Save all of the embedded files. This uses the file
35
+ * names associated with the embedded files (as printed by `options.listEmbedded`).
36
+ * By default, the files are saved in the current directory; this can be changed
37
+ * with `options.outputPath`.
38
+ * @param {string} [options.saveFile] - Save the specified embedded file.
39
+ * By default, this uses the file name associated with the embedded file (as printed by
40
+ * `options.listEmbedded`); the file name can be changed with `options.outputPath`.
41
+ * @param {number} [options.saveSpecificFile] - Save the specified embedded file.
42
+ * By default, this uses the file name associated with the embedded file (as printed by
43
+ * `options.listEmbedded`); the file name can be changed with `options.outputPath`.
44
+ * @param {string} [options.userPassword] - User password (for encrypted files).
45
+ * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
46
+ */
47
+ pdfDetach(file: string, options?: {
48
+ listEmbedded?: boolean;
49
+ outputEncoding?: string;
50
+ ownerPassword?: string;
51
+ outputPath?: string;
52
+ printVersionInfo?: boolean;
53
+ saveAllFiles?: boolean;
54
+ saveFile?: string;
55
+ saveSpecificFile?: number;
56
+ userPassword?: string;
57
+ }): Promise<string>;
58
+ /**
59
+ * @author Frazer Smith
60
+ * @description Lists the fonts used in a PDF file along with various information for each font.
61
+ * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
62
+ * @param {object} [options] - Object containing options to pass to binary.
63
+ * @param {number} [options.firstPageToExamine] - Specifies the first page to examine.
64
+ * @param {number} [options.lastPageToExamine] - Specifies the last page to examine.
65
+ * @param {boolean} [options.listSubstitutes] - List the substitute fonts that poppler
66
+ * will use for non-embedded fonts.
67
+ * @param {string} [options.ownerPassword] - Owner password (for encrypted files).
68
+ * @param {boolean} [options.printVersionInfo] - Print copyright and version info.
69
+ * @param {string} [options.userPassword] - User password (for encrypted files).
70
+ * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
71
+ */
72
+ pdfFonts(file: Buffer | string, options?: {
73
+ firstPageToExamine?: number;
74
+ lastPageToExamine?: number;
75
+ listSubstitutes?: boolean;
76
+ ownerPassword?: string;
77
+ printVersionInfo?: boolean;
78
+ userPassword?: string;
79
+ }): Promise<string>;
80
+ /**
81
+ * @author Frazer Smith
82
+ * @description Saves images from a PDF file as PPM, PBM, PNG, TIFF, JPEG, JPEG2000, or JBIG2 files.
83
+ * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
84
+ * @param {string} [outputPrefix] - Filename prefix of output files.
85
+ * @param {object} [options] - Object containing options to pass to binary.
86
+ * @param {boolean} [options.allFiles] - Write JPEG, JPEG2000, JBIG2, and CCITT images in their native format.
87
+ * CMYK files are written as TIFF files. All other images are written as PNG files.
88
+ * @param {boolean} [options.ccittFile] - Generate CCITT images as CCITT files.
89
+ * @param {number} [options.firstPageToConvert] - Specifies the first page to convert.
90
+ * @param {number} [options.lastPageToConvert] - Specifies the last page to convert.
91
+ * @param {boolean} [options.jbig2File] - Generate JBIG2 images as JBIG2 files.
92
+ * @param {boolean} [options.jpeg2000File] - Generate JPEG2000 images at JP2 files.
93
+ * @param {boolean} [options.jpegFile] - Generate JPEG images as JPEG files.
94
+ * @param {boolean} [options.list] - Instead of writing the images, list the
95
+ * images along with various information for each image.
96
+ * NOTE: Do not specify the outputPrefix with this option.
97
+ * @param {string} [options.ownerPassword] - Owner password (for encrypted files).
98
+ * @param {boolean} [options.pngFile] - Change the default output format to PNG.
99
+ * @param {boolean} [options.printVersionInfo] - Print copyright and version info.
100
+ * @param {boolean} [options.tiffFile] - Change the default output format to TIFF.
101
+ * @param {string} [options.userPassword] - Specify the user password for the PDF file.
102
+ * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
103
+ */
104
+ pdfImages(file: Buffer | string, outputPrefix?: string, options?: {
105
+ allFiles?: boolean;
106
+ ccittFile?: boolean;
107
+ firstPageToConvert?: number;
108
+ lastPageToConvert?: number;
109
+ jbig2File?: boolean;
110
+ jpeg2000File?: boolean;
111
+ jpegFile?: boolean;
112
+ list?: boolean;
113
+ ownerPassword?: string;
114
+ pngFile?: boolean;
115
+ printVersionInfo?: boolean;
116
+ tiffFile?: boolean;
117
+ userPassword?: string;
118
+ }): Promise<string>;
119
+ /**
120
+ * @author Frazer Smith
121
+ * @description Prints the contents of the `Info` dictionary from a PDF file.
122
+ * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
123
+ * @param {object} [options] - Object containing options to pass to binary.
124
+ * @param {number} [options.firstPageToConvert] - First page to print.
125
+ * @param {number} [options.lastPageToConvert] - Last page to print.
126
+ * @param {boolean} [options.listEncodingOptions] - List the available encodings.
127
+ * @param {string} [options.outputEncoding] - Sets the encoding to use for text output.
128
+ * This defaults to `UTF-8`.
129
+ * @param {string} [options.ownerPassword] - Owner password (for encrypted files).
130
+ * @param {boolean} [options.printAsJson] - Print result as a JSON object.
131
+ * @param {boolean} [options.printBoundingBoxes] - Prints the page box bounding boxes:
132
+ * MediaBox, CropBox, BleedBox, TrimBox, and ArtBox.
133
+ * @param {boolean} [options.printDocStruct] - Prints the logical document structure
134
+ * of a Tagged-PDF file.
135
+ * @param {boolean} [options.printDocStructText] - Print the textual content along with the
136
+ * document structure of a Tagged-PDF file. Note that extracting text this way might be slow
137
+ * for big PDF files.
138
+ * @param {boolean} [options.printIsoDates] - Prints dates in ISO-8601 format (including the time zone).
139
+ * @param {boolean} [options.printJS] - Prints all JavaScript in the PDF file.
140
+ * @param {boolean} [options.printMetadata] - Prints document-level metadata. (This is the `Metadata`
141
+ * stream from the PDF file's Catalog object).
142
+ * @param {boolean} [options.printNamedDests] - Print a list of all named destinations. If a page range
143
+ * is specified using the `options.firstPageToConvert` and `options.lastPageToConvert` options, only destinations
144
+ * in the page range are listed.
145
+ * @param {boolean} [options.printRawDates] - Prints the raw (undecoded) date strings, directly from the PDF file.
146
+ * @param {boolean} [options.printUrls] - Print all URLs in the PDF; only URLs referenced by PDF objects
147
+ * such as Link Annotations are listed, not URL strings in the text content.
148
+ * @param {boolean} [options.printVersionInfo] - Print copyright and version info.
149
+ * @param {string} [options.userPassword] - User password (for encrypted files).
150
+ * @returns {Promise<object|string>} A promise that resolves with a stdout string or JSON object if
151
+ * `options.printAsJson` is `true`, or rejects with an `Error` object.
152
+ */
153
+ pdfInfo(file: Buffer | string, options?: {
154
+ firstPageToConvert?: number;
155
+ lastPageToConvert?: number;
156
+ listEncodingOptions?: boolean;
157
+ outputEncoding?: string;
158
+ ownerPassword?: string;
159
+ printAsJson?: boolean;
160
+ printBoundingBoxes?: boolean;
161
+ printDocStruct?: boolean;
162
+ printDocStructText?: boolean;
163
+ printIsoDates?: boolean;
164
+ printJS?: boolean;
165
+ printMetadata?: boolean;
166
+ printNamedDests?: boolean;
167
+ printRawDates?: boolean;
168
+ printUrls?: boolean;
169
+ printVersionInfo?: boolean;
170
+ userPassword?: string;
171
+ }): Promise<object | string>;
172
+ /**
173
+ * @author Frazer Smith
174
+ * @description Extracts single pages from a PDF file,
175
+ * and writes one PDF file for each page to outputPattern.
176
+ * This will not work if the file is encrypted.
177
+ * @param {string} file - Filepath of the PDF file to read.
178
+ * @param {string} outputPattern - Should contain %d (or any variant respecting printf format),
179
+ * since %d is replaced by the page number.
180
+ * As an example, `sample-%d.pdf` will produce `sample-1.pdf` for a single page document.
181
+ * @param {object} [options] - Object containing options to pass to binary.
182
+ * @param {number} [options.firstPageToExtract] - Specifies the first page to extract.
183
+ * This defaults to page 1.
184
+ * @param {number} [options.lastPageToExtract] - Specifies the last page to extract.
185
+ * This defaults to the last page of the PDF file.
186
+ * @param {boolean} [options.printVersionInfo] - Print copyright and version info.
187
+ * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
188
+ */
189
+ pdfSeparate(file: string, outputPattern: string, options?: {
190
+ firstPageToExtract?: number;
191
+ lastPageToExtract?: number;
192
+ printVersionInfo?: boolean;
193
+ }): Promise<string>;
194
+ /**
195
+ * @author Frazer Smith
196
+ * @description Converts a PDF file to EPS/JPEG/PDF/PNG/PS/SVG/TIFF.
197
+ * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
198
+ * @param {string} [outputFile] - Filepath of the file to output the results to.
199
+ *
200
+ * If `undefined` then will write output to stdout. Using stdout is not valid with image formats
201
+ * (jpeg, png, and tiff) unless `options.singleFile` is set to `true`.
202
+ * Encoding is set to `binary` if used with `options.singleFile` or `options.pdfFile`.
203
+ *
204
+ * If not set then the output filename will be derived from the PDF file name.
205
+ * @param {object} [options] - Object containing options to pass to binary.
206
+ * @param {('best'|'default'|'fast'|'good'|'gray'|'none'|'subpixel')} [options.antialias] - Set the cairo
207
+ * antialias option used for text and drawing in image files (or rasterized regions in vector output).
208
+ * @param {boolean} [options.cropBox] - Uses the crop box rather than media box when
209
+ * generating the files (PNG/JPEG/TIFF only).
210
+ * @param {number} [options.cropHeight] - Specifies the height of crop area in pixels
211
+ * (image output) or points (vector output).
212
+ * @param {number} [options.cropSize] - Specifies the size of crop square in pixels
213
+ * (image output) or points (vector output).
214
+ * @param {number} [options.cropWidth] - Specifies the width of crop area in pixels
215
+ * (image output) or points (vector output).
216
+ * @param {number} [options.cropXAxis] - Specifies the x-coordinate of the crop area top left
217
+ * corner in pixels (image output) or points (vector output).
218
+ * @param {number} [options.cropYAxis] - Specifies the y-coordinate of the crop area top left
219
+ * corner in pixels (image output) or points (vector output).
220
+ * @param {boolean} [options.duplex] - Adds the %%IncludeFeature: *Duplex DuplexNoTumble DSC
221
+ * comment to the PostScript file (PS only). This tells the print manager to enable duplexing.
222
+ * @param {boolean} [options.epsFile] - Generate an EPS file. An EPS file contains a single image,
223
+ * so if you use this option with a multi-page PDF file, you must use `options.firstPageToConvert` and
224
+ * `options.lastPageToConvert` to specify a single page.
225
+ * The page size options (originalPageSizes, paperSize, paperWidth, paperHeight) can not be used
226
+ * with this option.
227
+ * @param {boolean} [options.evenPagesOnly] - Generates only the even numbered pages.
228
+ * @param {boolean} [options.fillPage] - Expand PDF pages smaller than the paper to fill the
229
+ * paper (PS,PDF,SVG only). By default, these pages are not scaled.
230
+ * @param {number} [options.firstPageToConvert] - Specifies the first page to convert.
231
+ * @param {boolean} [options.grayscaleFile] - Generate grayscale file (PNG, JPEG, and TIFF only).
232
+ * @param {string} [options.iccFile] - Use the specified ICC file as the output profile
233
+ * (PNG only). The profile will be embedded in the PNG file.
234
+ * @param {boolean} [options.jpegFile] - Generate JPEG file(s).
235
+ * @param {string} [options.jpegOptions] - When used with `options.jpegFile`, this option can
236
+ * be used to control the JPEG compression parameters. It takes a string of the form
237
+ * `"<opt>=<val>[,<opt>=<val>]"`. Currently available options are:
238
+ * - `quality` Selects the JPEG quality value. The value must be an integer between 0 and 100.
239
+ * - `progressive` Select progressive JPEG output. The possible values are "y", "n", indicating
240
+ * progressive (yes) or non-progressive (no), respectively.
241
+ * - `optimize` Sets whether to compute optimal Huffman coding tables for the JPEG output, which
242
+ * will create smaller files but make an extra pass over the data. The value must be "y" or "n",
243
+ * with "y" performing optimization, otherwise the default Huffman tables are used.
244
+ *
245
+ * Example: `"quality=95,optimize=y"`.
246
+ * @param {number} [options.lastPageToConvert] - Specifies the last page to convert.
247
+ * @param {boolean} [options.monochromeFile] - Generate monochrome file (PNG and TIFF only).
248
+ * @param {boolean} [options.noCenter] - By default, PDF pages smaller than the paper
249
+ * (after any scaling) are centered on the paper. This option causes them to be aligned to
250
+ * the lower-left corner of the paper instead (PS,PDF,SVG only).
251
+ * @param {boolean} [options.noCrop] - By default, printing output is cropped to the CropBox
252
+ * specified in the PDF file. This option disables cropping (PS, PDF, SVG only).
253
+ * @param {boolean} [options.noShrink] - Do not scale PDF pages which are larger than the paper
254
+ * (PS,PDF,SVG only). By default, pages larger than the paper are shrunk to fit.
255
+ * @param {boolean} [options.oddPagesOnly] - Generates only the odd numbered pages.
256
+ * @param {boolean} [options.originalPageSizes] - Set the paper size of each page to match
257
+ * the size specified in the PDF file.
258
+ * @param {string} [options.ownerPassword] - Specify the owner password for the PDF file.
259
+ * Providing this will bypass all security restrictions.
260
+ * @param {number} [options.paperHeight] - Set the paper height, in points (PS, PDF, SVG only).
261
+ * @param {('A3'|'A4'|'legal'|'letter'|'match')} [options.paperSize] - Set the paper size to one of `A3`, `A4`,
262
+ * `legal`, or `letter` (PS,PDF,SVG only). This can also be set to `match`, which will set the paper size
263
+ * of each page to match the size specified in the PDF file. If none of the paperSize,
264
+ * paperWidth, or paperHeight options are specified the default is to match the paper size.
265
+ * @param {number} [options.paperWidth] - Set the paper width, in points (PS,PDF,SVG only).
266
+ * @param {boolean} [options.pdfFile] - Generate PDF file.
267
+ * @param {boolean} [options.pngFile] - Generate PNG file(s).
268
+ * @param {boolean} [options.printVersionInfo] - Print copyright and version information.
269
+ * @param {boolean} [options.printDocStruct] - If the input file contains structural information
270
+ * about the document's content, write this information to the output file (PDF only).
271
+ * @param {boolean} [options.psFile] - Generate PS file.
272
+ * @param {boolean} [options.psLevel2] - Generate Level 2 PostScript (PS only).
273
+ * @param {boolean} [options.psLevel3] - Generate Level 3 PostScript (PS only). This enables all
274
+ * Level 2 features plus shading patterns and masked images. This is the default setting.
275
+ * @param {boolean} [options.quiet] - Do not print any messages or errors.
276
+ * @param {number} [options.resolutionXAxis] - Specifies the X resolution, in pixels per inch of
277
+ * image files (or rasterized regions in vector output). The default is 150 PPI.
278
+ * @param {number} [options.resolutionXYAxis] - Specifies the X and Y resolution, in pixels per
279
+ * inch of image files (or rasterized regions in vector output). The default is 150 PPI.
280
+ * @param {number} [options.resolutionYAxis] - Specifies the Y resolution, in pixels per inch of
281
+ * image files (or rasterized regions in vector output). The default is 150 PPI.
282
+ * @param {number} [options.scalePageTo] - Scales the long side of each page (width for landscape
283
+ * pages, height for portrait pages) to fit in scale-to pixels. The size of the short side will
284
+ * be determined by the aspect ratio of the page (PNG/JPEG/TIFF only).
285
+ * @param {number} [options.scalePageToXAxis] - Scales each page horizontally to fit in scale-to-x
286
+ * pixels. If scale-to-y is set to -1, the vertical size will determined by the aspect ratio of
287
+ * the page (PNG/JPEG/TIFF only).
288
+ * @param {number} [options.scalePageToYAxis] - Scales each page vertically to fit in scale-to-y
289
+ * pixels. If scale-to-x is set to -1, the horizontal size will determined by the aspect ratio of
290
+ * the page (PNG/JPEG/TIFF only).
291
+ * @param {boolean} [options.singleFile] - Writes only the first page and does not add digits.
292
+ * Can only be used with `options.jpegFile`, `options.pngFile`, and `options.tiffFile`.
293
+ * @param {boolean} [options.svgFile] - Generate SVG (Scalable Vector Graphics) file.
294
+ * @param {('deflate'|'jpeg'|'lzw'|'none'|'packbits')} [options.tiffCompression] - Set TIFF compression.
295
+ * @param {boolean} [options.tiffFile] - Generate TIFF file(s).
296
+ * @param {boolean} [options.transparentPageColor] - Use a transparent page color
297
+ * instead of white (PNG and TIFF only).
298
+ * @param {string} [options.userPassword] - Specify the user password for the PDF file.
299
+ * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
300
+ */
301
+ pdfToCairo(file: Buffer | string, outputFile?: string, options?: {
302
+ antialias?: ('best' | 'default' | 'fast' | 'good' | 'gray' | 'none' | 'subpixel');
303
+ cropBox?: boolean;
304
+ cropHeight?: number;
305
+ cropSize?: number;
306
+ cropWidth?: number;
307
+ cropXAxis?: number;
308
+ cropYAxis?: number;
309
+ duplex?: boolean;
310
+ epsFile?: boolean;
311
+ evenPagesOnly?: boolean;
312
+ fillPage?: boolean;
313
+ firstPageToConvert?: number;
314
+ grayscaleFile?: boolean;
315
+ iccFile?: string;
316
+ jpegFile?: boolean;
317
+ jpegOptions?: string;
318
+ lastPageToConvert?: number;
319
+ monochromeFile?: boolean;
320
+ noCenter?: boolean;
321
+ noCrop?: boolean;
322
+ noShrink?: boolean;
323
+ oddPagesOnly?: boolean;
324
+ originalPageSizes?: boolean;
325
+ ownerPassword?: string;
326
+ paperHeight?: number;
327
+ paperSize?: ('A3' | 'A4' | 'legal' | 'letter' | 'match');
328
+ paperWidth?: number;
329
+ pdfFile?: boolean;
330
+ pngFile?: boolean;
331
+ printVersionInfo?: boolean;
332
+ printDocStruct?: boolean;
333
+ psFile?: boolean;
334
+ psLevel2?: boolean;
335
+ psLevel3?: boolean;
336
+ quiet?: boolean;
337
+ resolutionXAxis?: number;
338
+ resolutionXYAxis?: number;
339
+ resolutionYAxis?: number;
340
+ scalePageTo?: number;
341
+ scalePageToXAxis?: number;
342
+ scalePageToYAxis?: number;
343
+ singleFile?: boolean;
344
+ svgFile?: boolean;
345
+ tiffCompression?: ('deflate' | 'jpeg' | 'lzw' | 'none' | 'packbits');
346
+ tiffFile?: boolean;
347
+ transparentPageColor?: boolean;
348
+ userPassword?: string;
349
+ }): Promise<string>;
350
+ /**
351
+ * @author Frazer Smith
352
+ * @description Converts a PDF file to HTML.
353
+ * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
354
+ * @param {string} [outputFile] - Filepath of the file to output the results to.
355
+ * If `undefined` then Poppler will use the directory and name of the original file
356
+ * and create a new file, with `-html` appended to the end of the filename.
357
+ *
358
+ * Required if `file` is a Buffer.
359
+ * @param {object} [options] - Object containing options to pass to binary.
360
+ * @param {boolean} [options.complexOutput] - Generate complex output.
361
+ * @param {boolean} [options.dataUrls] - Use data URLs instead of external images in HTML.
362
+ * @param {boolean} [options.exchangePdfLinks] - Exchange .pdf links with .html.
363
+ * @param {boolean} [options.extractHidden] - Force hidden text extraction.
364
+ * @param {number} [options.firstPageToConvert] - First page to print.
365
+ * @param {boolean} [options.fontFullName] - Outputs the font name without any substitutions.
366
+ * @param {boolean} [options.ignoreImages] - Ignore images.
367
+ * @param {('JPG'|'PNG')} [options.imageFormat] - Image file format for Splash output (JPG or PNG).
368
+ * If complexOutput is selected, but imageFormat is not specified, PNG will be assumed.
369
+ * @param {number} [options.lastPageToConvert] - Last page to print.
370
+ * @param {boolean} [options.noDrm] - Override document DRM settings.
371
+ * @param {boolean} [options.noFrames] - Generate no frames. Not supported in complex output mode.
372
+ * @param {boolean} [options.noMergeParagraph] - Do not merge paragraphs.
373
+ * @param {boolean} [options.noRoundedCoordinates] - Do not round coordinates
374
+ * (with XML output only).
375
+ * @param {string} [options.outputEncoding] - Sets the encoding to use for text output.
376
+ * This defaults to `UTF-8`.
377
+ * @param {string} [options.ownerPassword] - Owner password (for encrypted files).
378
+ * @param {boolean} [options.printVersionInfo] - Print copyright and version info.
379
+ * @param {boolean} [options.quiet] - Do not print any messages or errors.
380
+ * @param {boolean} [options.singlePage] - Generate single HTML that includes all pages.
381
+ * @param {boolean} [options.stdout] - Use standard output.
382
+ * @param {string} [options.userPassword] - User password (for encrypted files).
383
+ * @param {number} [options.wordBreakThreshold] - Adjust the word break threshold percent.
384
+ * Default is 10. Word break occurs when distance between two adjacent characters is greater
385
+ * than this percent of character height.
386
+ * @param {boolean} [options.xmlOutput] - Output for XML post-processing.
387
+ * @param {number} [options.zoom] - Zoom the PDF document (default 1.5).
388
+ * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
389
+ */
390
+ pdfToHtml(file: Buffer | string, outputFile?: string, options?: {
391
+ complexOutput?: boolean;
392
+ dataUrls?: boolean;
393
+ exchangePdfLinks?: boolean;
394
+ extractHidden?: boolean;
395
+ firstPageToConvert?: number;
396
+ fontFullName?: boolean;
397
+ ignoreImages?: boolean;
398
+ imageFormat?: ('JPG' | 'PNG');
399
+ lastPageToConvert?: number;
400
+ noDrm?: boolean;
401
+ noFrames?: boolean;
402
+ noMergeParagraph?: boolean;
403
+ noRoundedCoordinates?: boolean;
404
+ outputEncoding?: string;
405
+ ownerPassword?: string;
406
+ printVersionInfo?: boolean;
407
+ quiet?: boolean;
408
+ singlePage?: boolean;
409
+ stdout?: boolean;
410
+ userPassword?: string;
411
+ wordBreakThreshold?: number;
412
+ xmlOutput?: boolean;
413
+ zoom?: number;
414
+ }): Promise<string>;
415
+ /**
416
+ * @author Frazer Smith
417
+ * @description Converts a PDF file to colour image files in Portable Pixmap (PPM) format,
418
+ * grayscale image files in Portable Graymap (PGM) format, or monochrome image files
419
+ * in Portable Bitmap (PBM) format.
420
+ * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
421
+ * @param {string} outputPath - Filepath to output the results to.
422
+ * @param {object} [options] - Object containing options to pass to binary.
423
+ * @param {('no'|'yes')} [options.antialiasFonts] - Enable or disable font anti-aliasing.
424
+ * This defaults to `yes`.
425
+ * @param {('no'|'yes')} [options.antialiasVectors] - Enable or disable vector anti-aliasing.
426
+ * This defaults to `yes`.
427
+ * @param {boolean} [options.cropBox] - Uses the crop box rather than media box when
428
+ * generating the files (PNG/JPEG/TIFF only).
429
+ * @param {number} [options.cropHeight] - Specifies the height of crop area in pixels
430
+ * (image output) or points (vector output).
431
+ * @param {number} [options.cropSize] - Specifies the size of crop square in pixels
432
+ * (image output) or points (vector output).
433
+ * @param {number} [options.cropWidth] - Specifies the width of crop area in pixels
434
+ * (image output) or points (vector output).
435
+ * @param {number} [options.cropXAxis] - Specifies the x-coordinate of the crop area top left
436
+ * corner in pixels (image output) or points (vector output).
437
+ * @param {number} [options.cropYAxis] - Specifies the y-coordinate of the crop area top left
438
+ * corner in pixels (image output) or points (vector output).
439
+ * @param {string} [options.defaultCmykProfile] - If Poppler is compiled with colour management support, this option
440
+ * sets the DefaultCMYK color space to the ICC profile stored in the display profile file passed.
441
+ * @param {string} [options.defaultGrayProfile] - If Poppler is compiled with colour management support, this option
442
+ * sets the DefaultGray color space to the ICC profile stored in the display profile file passed.
443
+ * @param {string} [options.defaultRgbProfile] - If Poppler is compiled with colour management support, this option
444
+ * sets the DefaultRGB color space to the ICC profile stored in the display profile file passed.
445
+ * @param {string} [options.displayProfile] - If Poppler is compiled with colour management support, this option
446
+ * sets the display profile to the ICC profile stored in the display profile file passed.
447
+ * @param {boolean} [options.evenPagesOnly] - Generates only the even numbered pages.
448
+ * @param {number} [options.firstPageToConvert] - Specifies the first page to convert.
449
+ * @param {('no'|'yes')} [options.freetype] - Enable or disable FreeType (a TrueType / Type 1 font rasterizer).
450
+ * This defaults to `yes`.
451
+ * @param {boolean} [options.forcePageNumber] - Force page number even if there is only one page.
452
+ * @param {boolean} [options.grayscaleFile] - Generate grayscale PGM file (instead of a color PPM file).
453
+ * @param {boolean} [options.hideAnnotations] - Hide annotations.
454
+ * @param {boolean} [options.jpegFile] - Generate JPEG file instead a PPM file.
455
+ * @param {number} [options.lastPageToConvert] - Specifies the last page to convert.
456
+ * @param {boolean} [options.monochromeFile] - Generate monochrome PBM file (instead of a color PPM file).
457
+ * @param {boolean} [options.oddPagesOnly] - Generates only the odd numbered pages.
458
+ * @param {string} [options.ownerPassword] - Specify the owner password for the PDF file.
459
+ * Providing this will bypass all security restrictions.
460
+ * @param {boolean} [options.pngFile] - Generate PNG file instead a PPM file.
461
+ * @param {boolean} [options.printProgress] - Print progress info as each page is generated.
462
+ * Three space-separated fields are printed to STDERR: the number of the current page, the number
463
+ * of the last page that will be generated, and the path to the file written to.
464
+ * @param {boolean} [options.printVersionInfo] - Print copyright and version information.
465
+ * @param {boolean} [options.quiet] - Do not print any messages or errors.
466
+ * @param {number} [options.resolutionXAxis] - Specifies the X resolution, in pixels per inch of
467
+ * image files (or rasterized regions in vector output). The default is 150 PPI.
468
+ * @param {number} [options.resolutionXYAxis] - Specifies the X and Y resolution, in pixels per
469
+ * inch of image files (or rasterized regions in vector output). The default is 150 PPI.
470
+ * @param {number} [options.resolutionYAxis] - Specifies the Y resolution, in pixels per inch of
471
+ * image files (or rasterized regions in vector output). The default is 150 PPI.
472
+ * @param {number} [options.scalePageTo] - Scales the long side of each page (width for landscape
473
+ * pages, height for portrait pages) to fit in scale-to pixels. The size of the short side will
474
+ * be determined by the aspect ratio of the page.
475
+ * @param {number} [options.scalePageToXAxis] - Scales each page horizontally to fit in scale-to-x
476
+ * pixels. If scale-to-y is set to -1, the vertical size will determined by the aspect ratio of
477
+ * the page.
478
+ * @param {number} [options.scalePageToYAxis] - Scales each page vertically to fit in scale-to-y
479
+ * pixels. If scale-to-x is set to -1, the horizontal size will determined by the aspect ratio of
480
+ * the page.
481
+ * @param {string} [options.separator] - Specify single character separator between name and page number.
482
+ * @param {boolean} [options.singleFile] - Writes only the first page and does not add digits.
483
+ * @param {('none'|'shape'|'solid')} [options.thinLineMode] - Specifies the thin line mode. This defaults to `none`.
484
+ * @param {('deflate'|'jpeg'|'lzw'|'none'|'packbits')} [options.tiffCompression] - Set TIFF compression.
485
+ * @param {boolean} [options.tiffFile] - Generate TIFF file instead a PPM file.
486
+ * @param {string} [options.userPassword] - Specify the user password for the PDF file.
487
+ * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
488
+ */
489
+ pdfToPpm(file: Buffer | string, outputPath: string, options?: {
490
+ antialiasFonts?: ('no' | 'yes');
491
+ antialiasVectors?: ('no' | 'yes');
492
+ cropBox?: boolean;
493
+ cropHeight?: number;
494
+ cropSize?: number;
495
+ cropWidth?: number;
496
+ cropXAxis?: number;
497
+ cropYAxis?: number;
498
+ defaultCmykProfile?: string;
499
+ defaultGrayProfile?: string;
500
+ defaultRgbProfile?: string;
501
+ displayProfile?: string;
502
+ evenPagesOnly?: boolean;
503
+ firstPageToConvert?: number;
504
+ freetype?: ('no' | 'yes');
505
+ forcePageNumber?: boolean;
506
+ grayscaleFile?: boolean;
507
+ hideAnnotations?: boolean;
508
+ jpegFile?: boolean;
509
+ lastPageToConvert?: number;
510
+ monochromeFile?: boolean;
511
+ oddPagesOnly?: boolean;
512
+ ownerPassword?: string;
513
+ pngFile?: boolean;
514
+ printProgress?: boolean;
515
+ printVersionInfo?: boolean;
516
+ quiet?: boolean;
517
+ resolutionXAxis?: number;
518
+ resolutionXYAxis?: number;
519
+ resolutionYAxis?: number;
520
+ scalePageTo?: number;
521
+ scalePageToXAxis?: number;
522
+ scalePageToYAxis?: number;
523
+ separator?: string;
524
+ singleFile?: boolean;
525
+ thinLineMode?: ('none' | 'shape' | 'solid');
526
+ tiffCompression?: ('deflate' | 'jpeg' | 'lzw' | 'none' | 'packbits');
527
+ tiffFile?: boolean;
528
+ userPassword?: string;
529
+ }): Promise<string>;
530
+ /**
531
+ * @author Frazer Smith
532
+ * @description Converts a PDF file to PostScript (PS).
533
+ * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
534
+ * @param {string} [outputFile] - Filepath of the file to output the results to.
535
+ * If `undefined` then will write output to stdout.
536
+ * @param {object} [options] - Object containing options to pass to binary.
537
+ * @param {('no'|'yes')} [options.antialias] - Enable anti-aliasing on rasterization, accepts `no` or `yes`.
538
+ * @param {boolean} [options.binary] - Write binary data in Level 1 PostScript. By default,
539
+ * pdftops writes hex-encoded data in Level 1 PostScript. Binary data is non-standard in Level 1
540
+ * PostScript but reduces the file size and can be useful when Level 1 PostScript is required
541
+ * only for its restricted use of PostScript operators.
542
+ * @param {string} [options.defaultCmykProfile] - If Poppler is compiled with colour management support, this option
543
+ * sets the DefaultCMYK color space to the ICC profile stored in the display profile file passed.
544
+ * @param {string} [options.defaultGrayProfile] - If Poppler is compiled with colour management support, this option
545
+ * sets the DefaultGray color space to the ICC profile stored in the display profile file passed.
546
+ * @param {string} [options.defaultRgbProfile] - If Poppler is compiled with colour management support, this option
547
+ * sets the DefaultRGB color space to the ICC profile stored in the display profile file passed.
548
+ * @param {boolean} [options.duplex] - Set the Duplex pagedevice entry in the PostScript file.
549
+ * This tells duplex-capable printers to enable duplexing.
550
+ * @param {boolean} [options.epsFile] - Generate an EPS file. An EPS file contains a single image,
551
+ * so if you use this option with a multi-page PDF file, you must use `options.firstPageToConvert` and
552
+ * `options.lastPageToConvert` to specify a single page.
553
+ * The page size options (originalPageSizes, paperSize, paperWidth, paperHeight) can not be used
554
+ * with this option.
555
+ * @param {boolean} [options.fillPage] - Expand PDF pages smaller than the paper to fill the
556
+ * paper. By default, these pages are not scaled.
557
+ * @param {number} [options.firstPageToConvert] - Specifies the first page to convert.
558
+ * @param {number} [options.form] - Generate PostScript form which can be imported by software
559
+ * that understands forms.
560
+ * A form contains a single page, so if you use this option with a multi-page PDF file,
561
+ * you must use `options.firstPageToConvert` and `options.lastPageToConvert` to specify a single page.
562
+ * The `options.level1` option cannot be used with `options.form`.
563
+ * No more than one of the mode options (`options.epsFile`, `options.form`) may be given.
564
+ * @param {number} [options.lastPageToConvert] - Specifies the last page to convert.
565
+ * @param {boolean} [options.level1] - Generate Level 1 PostScript. The resulting PostScript
566
+ * files will be significantly larger (if they contain images), but will print on Level 1 printers.
567
+ * This also converts all images to black and white.
568
+ * @param {boolean} [options.level1Sep] - Generate Level 1 separable PostScript.
569
+ * All colors are converted to CMYK. Images are written with separate stream data for the four components.
570
+ * @param {boolean} [options.level2] - Generate Level 2 PostScript.
571
+ * Level 2 supports color images and image compression. This is the default setting.
572
+ * @param {boolean} [options.level2Sep] - Generate Level 2 separable PostScript. All colors are
573
+ * converted to CMYK. The PostScript separation convention operators are used to handle custom (spot) colors.
574
+ * @param {boolean} [options.level3] - Generate Level 3 PostScript.
575
+ * This enables all Level 2 featuresplus CID font embedding.
576
+ * @param {boolean} [options.level3Sep] - Generate Level 3 separable PostScript.
577
+ * The separation handling is the same as for `options.level2Sep`.
578
+ * @param {boolean} [options.noCenter] - By default, PDF pages smaller than the paper
579
+ * (after any scaling) are centered on the paper. This option causes them to be aligned to
580
+ * the lower-left corner of the paper instead.
581
+ * @param {boolean} [options.noCrop] - By default, printing output is cropped to the CropBox
582
+ * specified in the PDF file. This option disables cropping.
583
+ * @param {boolean} [options.noEmbedCIDFonts] - By default, any CID PostScript fonts which are
584
+ * embedded in the PDF file are copied into the PostScript file. This option disables that embedding.
585
+ * No attempt is made to substitute for non-embedded CID PostScript fonts.
586
+ * @param {boolean} [options.noEmbedCIDTrueTypeFonts] - By default, any CID TrueType fonts which are
587
+ * embedded in the PDF file are copied into the PostScript file. This option disables that embedding.
588
+ * No attempt is made to substitute for non-embedded CID TrueType fonts.
589
+ * @param {boolean} [options.noEmbedTrueTypeFonts] - By default, any TrueType fonts which are embedded
590
+ * in the PDF file are copied into the PostScript file. This option causes pdfToPs to substitute base fonts instead.
591
+ * Embedded fonts make PostScript files larger, but may be necessary for readable output.
592
+ * Also, some PostScript interpreters do not have TrueType rasterizers.
593
+ * @param {boolean} [options.noEmbedType1Fonts] - By default, any Type 1 fonts which are embedded in the PDF file
594
+ * are copied into the PostScript file. This option causes pdfToPs to substitute base fonts instead.
595
+ * Embedded fonts make PostScript files larger, but may be necessary for readable output.
596
+ * @param {boolean} [options.noShrink] - Do not scale PDF pages which are larger than the paper.
597
+ * By default, pages larger than the paper are shrunk to fit.
598
+ * @param {boolean} [options.opi] - Generate OPI comments for all images and forms which have OPI information.
599
+ * @param {boolean} [options.optimizecolorspace] - By default, bitmap images in the PDF pass through to the
600
+ * output PostScript in their original color space, which produces predictable results.
601
+ * This option converts RGB and CMYK images into Gray images if every pixel of the image has equal components.
602
+ * This can fix problems when doing color separations of PDFs that contain embedded black and
603
+ * white images encoded as RGB.
604
+ * @param {boolean} [options.originalPageSizes] - Set the paper size of each page to match
605
+ * the size specified in the PDF file.
606
+ * @param {boolean} [options.overprint] - Enable overprinting.
607
+ * @param {string} [options.ownerPassword] - Owner password (for encrypted files).
608
+ * @param {number} [options.paperHeight] - Set the paper height, in points.
609
+ * @param {('A3'|'A4'|'legal'|'letter'|'match')} [options.paperSize] - Set the paper size to one of `A3`, `A4`,
610
+ * `legal`, or `letter`. This can also be set to `match`, which will set the paper size
611
+ * of each page to match the size specified in the PDF file. If none of the paperSize,
612
+ * paperWidth, or paperHeight options are specified the default is to match the paper size.
613
+ * @param {number} [options.paperWidth] - Set the paper width, in points.
614
+ * @param {boolean} [options.passfonts] - By default, references to non-embedded 8-bit fonts
615
+ * in the PDF file are substituted with the closest `Helvetica`, `Times-Roman`, or `Courier` font.
616
+ * This option passes references to non-embedded fonts through to the PostScript file.
617
+ * @param {boolean} [options.preload] - Preload images and forms.
618
+ * @param {boolean} [options.printVersionInfo] - Print copyright and version information.
619
+ * @param {('CMYK8'|'MONO8'|'RGB8')} [options.processColorFormat] - Sets the process color format as it is used
620
+ * during rasterization and transparency reduction.
621
+ *
622
+ * The default depends on the other settings: For `options.level1` the default is MONO8; for `options.level1Sep`,
623
+ * `options.level2Sep`, `options.level3Sep`, or `options.overprint` the default is CMYK8; in all other
624
+ * cases RGB8 is the default.
625
+ * If `option.processColorProfile` is set then `options.processColorFormat` is inferred from the specified ICC profile.
626
+ * @param {string} [options.processColorProfile] - Sets the ICC profile that is assumed during
627
+ * rasterization and transparency reduction.
628
+ * @param {boolean} [options.quiet] - Do not print any messages or errors.
629
+ * @param {('always'|'never'|'whenneeded')} [options.rasterize] - By default, pdfToPs rasterizes pages as needed,
630
+ * for example, if they contain transparencies. To force rasterization, set `rasterize` to `always`.
631
+ * Use this to eliminate fonts.
632
+ * To prevent rasterization, set `rasterize` to `never`.
633
+ * This may produce files that display incorrectly.
634
+ * @param {number} [options.resolutionXYAxis] - Specifies the X and Y resolution, in pixels per
635
+ * inch of image files (or rasterized regions in vector output). The default is 300 PPI.
636
+ * @param {string} [options.userPassword] - User password (for encrypted files).
637
+ * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
638
+ */
639
+ pdfToPs(file: Buffer | string, outputFile?: string, options?: {
640
+ antialias?: ('no' | 'yes');
641
+ binary?: boolean;
642
+ defaultCmykProfile?: string;
643
+ defaultGrayProfile?: string;
644
+ defaultRgbProfile?: string;
645
+ duplex?: boolean;
646
+ epsFile?: boolean;
647
+ fillPage?: boolean;
648
+ firstPageToConvert?: number;
649
+ form?: number;
650
+ lastPageToConvert?: number;
651
+ level1?: boolean;
652
+ level1Sep?: boolean;
653
+ level2?: boolean;
654
+ level2Sep?: boolean;
655
+ level3?: boolean;
656
+ level3Sep?: boolean;
657
+ noCenter?: boolean;
658
+ noCrop?: boolean;
659
+ noEmbedCIDFonts?: boolean;
660
+ noEmbedCIDTrueTypeFonts?: boolean;
661
+ noEmbedTrueTypeFonts?: boolean;
662
+ noEmbedType1Fonts?: boolean;
663
+ noShrink?: boolean;
664
+ opi?: boolean;
665
+ optimizecolorspace?: boolean;
666
+ originalPageSizes?: boolean;
667
+ overprint?: boolean;
668
+ ownerPassword?: string;
669
+ paperHeight?: number;
670
+ paperSize?: ('A3' | 'A4' | 'legal' | 'letter' | 'match');
671
+ paperWidth?: number;
672
+ passfonts?: boolean;
673
+ preload?: boolean;
674
+ printVersionInfo?: boolean;
675
+ processColorFormat?: ('CMYK8' | 'MONO8' | 'RGB8');
676
+ processColorProfile?: string;
677
+ quiet?: boolean;
678
+ rasterize?: ('always' | 'never' | 'whenneeded');
679
+ resolutionXYAxis?: number;
680
+ userPassword?: string;
681
+ }): Promise<string>;
682
+ /**
683
+ * @author Frazer Smith
684
+ * @description Converts a PDF file to TXT.
685
+ * @param {Buffer|string} file - PDF file as Buffer, or filepath of the PDF file to read.
686
+ * @param {string} [outputFile] - Filepath of the file to output the results to.
687
+ * If `undefined` then will write output to stdout.
688
+ * @param {object} [options] - Object containing options to pass to binary.
689
+ * @param {boolean} [options.boundingBoxXhtml] - Generate an XHTML file containing bounding
690
+ * box information for each word in the file.
691
+ * @param {boolean} [options.boundingBoxXhtmlLayout] - Generate an XHTML file containing
692
+ * bounding box information for each block, line, and word in the file.
693
+ * @param {boolean} [options.cropBox] - Use the crop box rather than the media box with
694
+ * `options.boundingBoxXhtml` and `options.boundingBoxXhtmlLayout`.
695
+ * @param {number} [options.cropHeight] - Specifies the height of crop area in pixels
696
+ * (image output) or points (vector output).
697
+ * @param {number} [options.cropWidth] - Specifies the width of crop area in pixels
698
+ * (image output) or points (vector output).
699
+ * @param {number} [options.cropXAxis] - Specifies the x-coordinate of the crop area top left
700
+ * corner in pixels (image output) or points (vector output).
701
+ * @param {number} [options.cropYAxis] - Specifies the y-coordinate of the crop area top left
702
+ * corner in pixels (image output) or points (vector output).
703
+ * @param {('dos'|'mac'|'unix')} [options.eolConvention] - Sets the end-of-line convention to use for
704
+ * text output: dos; mac; unix.
705
+ * @param {number} [options.firstPageToConvert] - Specifies the first page to convert.
706
+ * @param {number} [options.fixedWidthLayout] - Assume fixed-pitch (or tabular) text, with the
707
+ * specified character width (in points). This forces physical layout mode.
708
+ * @param {boolean} [options.generateHtmlMetaFile] - Generate simple HTML file, including the
709
+ * meta information. This simply wraps the text in `<pre>` and `</pre>` and prepends the meta headers.
710
+ * @param {boolean} [options.generateTsvFile] - Generate a TSV file containing the bounding box
711
+ * information for each block, line, and word in the file.
712
+ * @param {number} [options.lastPageToConvert] - Specifies the last page to convert.
713
+ * @param {boolean} [options.listEncodingOptions] - List the available encodings.
714
+ * @param {boolean} [options.maintainLayout] - Maintain (as best as possible) the original physical
715
+ * layout of the text. The default is to undo physical layout (columns, hyphenation, etc.) and
716
+ * output the text in reading order.
717
+ * @param {boolean} [options.noDiagonalText] - Discard diagonal text.
718
+ * @param {boolean} [options.noPageBreaks] - Do not insert page breaks (form feed characters)
719
+ * between pages.
720
+ * @param {string} [options.outputEncoding] - Sets the encoding to use for text output.
721
+ * This defaults to `UTF-8`.
722
+ * @param {string} [options.ownerPassword] - Owner password (for encrypted files).
723
+ * @param {boolean} [options.printVersionInfo] - Print copyright and version information.
724
+ * @param {boolean} [options.quiet] - Do not print any messages or errors.
725
+ * @param {boolean} [options.rawLayout] - Keep the text in content stream order. This is a
726
+ * hack which often undoes column formatting, etc. Use of raw mode is no longer recommended.
727
+ * @param {string} [options.userPassword] - User password (for encrypted files).
728
+ * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
729
+ */
730
+ pdfToText(file: Buffer | string, outputFile?: string, options?: {
731
+ boundingBoxXhtml?: boolean;
732
+ boundingBoxXhtmlLayout?: boolean;
733
+ cropBox?: boolean;
734
+ cropHeight?: number;
735
+ cropWidth?: number;
736
+ cropXAxis?: number;
737
+ cropYAxis?: number;
738
+ eolConvention?: ('dos' | 'mac' | 'unix');
739
+ firstPageToConvert?: number;
740
+ fixedWidthLayout?: number;
741
+ generateHtmlMetaFile?: boolean;
742
+ generateTsvFile?: boolean;
743
+ lastPageToConvert?: number;
744
+ listEncodingOptions?: boolean;
745
+ maintainLayout?: boolean;
746
+ noDiagonalText?: boolean;
747
+ noPageBreaks?: boolean;
748
+ outputEncoding?: string;
749
+ ownerPassword?: string;
750
+ printVersionInfo?: boolean;
751
+ quiet?: boolean;
752
+ rawLayout?: boolean;
753
+ userPassword?: string;
754
+ }): Promise<string>;
755
+ /**
756
+ * @author Frazer Smith
757
+ * @description Merges several PDF files in order of their occurrence in the files array to
758
+ * one PDF result file.
759
+ * @param {string[]} files - Filepaths of the PDF files to merge.
760
+ * An entire directory of PDF files can be merged like so: `path/to/directory/*.pdf`.
761
+ * @param {string} outputFile - Filepath of the file to output the resulting merged PDF to.
762
+ * @param {object} [options] - Object containing options to pass to binary.
763
+ * @param {boolean} [options.printVersionInfo] - Print copyright and version information.
764
+ * @returns {Promise<string>} A promise that resolves with a stdout string, or rejects with an `Error` object.
765
+ */
766
+ pdfUnite(files: string[], outputFile: string, options?: {
767
+ printVersionInfo?: boolean;
768
+ }): Promise<string>;
823
769
  }