node-poppler 7.1.0 → 7.2.0

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