@medicus.ai/medicus-report-pdf-generator 1.0.319 → 1.0.321

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 (280) hide show
  1. package/index.js +13 -24
  2. package/package.json +1 -1
  3. package/test.js +38 -24
  4. package/qpdf-bin/bin/fix-qdf.exe +0 -0
  5. package/qpdf-bin/bin/libgcc_s_dw2-1.dll +0 -0
  6. package/qpdf-bin/bin/libstdc++-6.dll +0 -0
  7. package/qpdf-bin/bin/libwinpthread-1.dll +0 -0
  8. package/qpdf-bin/bin/qpdf.exe +0 -0
  9. package/qpdf-bin/bin/qpdf30.dll +0 -0
  10. package/qpdf-bin/bin/zlib-flate.exe +0 -0
  11. package/qpdf-bin/include/qpdf/Buffer.hh +0 -77
  12. package/qpdf-bin/include/qpdf/BufferInputSource.hh +0 -62
  13. package/qpdf-bin/include/qpdf/ClosedFileInputSource.hh +0 -77
  14. package/qpdf-bin/include/qpdf/Constants.h +0 -247
  15. package/qpdf-bin/include/qpdf/DLL.h +0 -140
  16. package/qpdf-bin/include/qpdf/FileInputSource.hh +0 -64
  17. package/qpdf-bin/include/qpdf/InputSource.hh +0 -100
  18. package/qpdf-bin/include/qpdf/JSON.hh +0 -404
  19. package/qpdf-bin/include/qpdf/ObjectHandle.hh +0 -95
  20. package/qpdf-bin/include/qpdf/PDFVersion.hh +0 -65
  21. package/qpdf-bin/include/qpdf/Pipeline.hh +0 -115
  22. package/qpdf-bin/include/qpdf/Pl_Buffer.hh +0 -76
  23. package/qpdf-bin/include/qpdf/Pl_Concatenate.hh +0 -64
  24. package/qpdf-bin/include/qpdf/Pl_Count.hh +0 -52
  25. package/qpdf-bin/include/qpdf/Pl_DCT.hh +0 -102
  26. package/qpdf-bin/include/qpdf/Pl_Discard.hh +0 -41
  27. package/qpdf-bin/include/qpdf/Pl_Flate.hh +0 -126
  28. package/qpdf-bin/include/qpdf/Pl_Function.hh +0 -70
  29. package/qpdf-bin/include/qpdf/Pl_OStream.hh +0 -50
  30. package/qpdf-bin/include/qpdf/Pl_QPDFTokenizer.hh +0 -59
  31. package/qpdf-bin/include/qpdf/Pl_RunLength.hh +0 -60
  32. package/qpdf-bin/include/qpdf/Pl_StdioFile.hh +0 -53
  33. package/qpdf-bin/include/qpdf/Pl_String.hh +0 -57
  34. package/qpdf-bin/include/qpdf/PointerHolder.hh +0 -245
  35. package/qpdf-bin/include/qpdf/QIntC.hh +0 -310
  36. package/qpdf-bin/include/qpdf/QPDF.hh +0 -1050
  37. package/qpdf-bin/include/qpdf/QPDFAcroFormDocumentHelper.hh +0 -250
  38. package/qpdf-bin/include/qpdf/QPDFAnnotationObjectHelper.hh +0 -105
  39. package/qpdf-bin/include/qpdf/QPDFCryptoImpl.hh +0 -82
  40. package/qpdf-bin/include/qpdf/QPDFCryptoProvider.hh +0 -107
  41. package/qpdf-bin/include/qpdf/QPDFDocumentHelper.hh +0 -57
  42. package/qpdf-bin/include/qpdf/QPDFEFStreamObjectHelper.hh +0 -110
  43. package/qpdf-bin/include/qpdf/QPDFEmbeddedFileDocumentHelper.hh +0 -87
  44. package/qpdf-bin/include/qpdf/QPDFExc.hh +0 -89
  45. package/qpdf-bin/include/qpdf/QPDFFileSpecObjectHelper.hh +0 -105
  46. package/qpdf-bin/include/qpdf/QPDFFormFieldObjectHelper.hh +0 -211
  47. package/qpdf-bin/include/qpdf/QPDFJob.hh +0 -725
  48. package/qpdf-bin/include/qpdf/QPDFLogger.hh +0 -164
  49. package/qpdf-bin/include/qpdf/QPDFMatrix.hh +0 -93
  50. package/qpdf-bin/include/qpdf/QPDFNameTreeObjectHelper.hh +0 -183
  51. package/qpdf-bin/include/qpdf/QPDFNumberTreeObjectHelper.hh +0 -200
  52. package/qpdf-bin/include/qpdf/QPDFObjGen.hh +0 -137
  53. package/qpdf-bin/include/qpdf/QPDFObject.hh +0 -36
  54. package/qpdf-bin/include/qpdf/QPDFObjectHandle.hh +0 -1590
  55. package/qpdf-bin/include/qpdf/QPDFObjectHelper.hh +0 -70
  56. package/qpdf-bin/include/qpdf/QPDFOutlineDocumentHelper.hh +0 -97
  57. package/qpdf-bin/include/qpdf/QPDFOutlineObjectHelper.hh +0 -109
  58. package/qpdf-bin/include/qpdf/QPDFPageDocumentHelper.hh +0 -130
  59. package/qpdf-bin/include/qpdf/QPDFPageLabelDocumentHelper.hh +0 -97
  60. package/qpdf-bin/include/qpdf/QPDFPageObjectHelper.hh +0 -423
  61. package/qpdf-bin/include/qpdf/QPDFStreamFilter.hh +0 -67
  62. package/qpdf-bin/include/qpdf/QPDFSystemError.hh +0 -57
  63. package/qpdf-bin/include/qpdf/QPDFTokenizer.hh +0 -214
  64. package/qpdf-bin/include/qpdf/QPDFUsage.hh +0 -36
  65. package/qpdf-bin/include/qpdf/QPDFWriter.hh +0 -626
  66. package/qpdf-bin/include/qpdf/QPDFXRefEntry.hh +0 -73
  67. package/qpdf-bin/include/qpdf/QTC.hh +0 -43
  68. package/qpdf-bin/include/qpdf/QUtil.hh +0 -491
  69. package/qpdf-bin/include/qpdf/RandomDataProvider.hh +0 -44
  70. package/qpdf-bin/include/qpdf/Types.h +0 -34
  71. package/qpdf-bin/include/qpdf/auto_job_c_att.hh +0 -14
  72. package/qpdf-bin/include/qpdf/auto_job_c_copy_att.hh +0 -9
  73. package/qpdf-bin/include/qpdf/auto_job_c_enc.hh +0 -20
  74. package/qpdf-bin/include/qpdf/auto_job_c_main.hh +0 -96
  75. package/qpdf-bin/include/qpdf/auto_job_c_pages.hh +0 -10
  76. package/qpdf-bin/include/qpdf/auto_job_c_set_page_labels.hh +0 -7
  77. package/qpdf-bin/include/qpdf/auto_job_c_uo.hh +0 -12
  78. package/qpdf-bin/include/qpdf/qpdf-c.h +0 -1024
  79. package/qpdf-bin/include/qpdf/qpdfjob-c.h +0 -156
  80. package/qpdf-bin/include/qpdf/qpdflogger-c.h +0 -100
  81. package/qpdf-bin/lib/cmake/qpdf/libqpdfTargets-release.cmake +0 -29
  82. package/qpdf-bin/lib/cmake/qpdf/libqpdfTargets.cmake +0 -114
  83. package/qpdf-bin/lib/cmake/qpdf/qpdfConfig.cmake +0 -26
  84. package/qpdf-bin/lib/cmake/qpdf/qpdfConfigVersion.cmake +0 -65
  85. package/qpdf-bin/lib/libqpdf.a +0 -0
  86. package/qpdf-bin/lib/libqpdf_static.a +0 -0
  87. package/qpdf-bin/lib/pkgconfig/libqpdf.pc +0 -11
  88. package/qpdf-bin/share/doc/qpdf/examples/extend-c-api-impl.cc +0 -29
  89. package/qpdf-bin/share/doc/qpdf/examples/extend-c-api.c +0 -67
  90. package/qpdf-bin/share/doc/qpdf/examples/extend-c-api.h +0 -25
  91. package/qpdf-bin/share/doc/qpdf/examples/pdf-attach-file.cc +0 -216
  92. package/qpdf-bin/share/doc/qpdf/examples/pdf-bookmarks.cc +0 -196
  93. package/qpdf-bin/share/doc/qpdf/examples/pdf-c-objects.c +0 -92
  94. package/qpdf-bin/share/doc/qpdf/examples/pdf-count-strings.cc +0 -103
  95. package/qpdf-bin/share/doc/qpdf/examples/pdf-create.cc +0 -374
  96. package/qpdf-bin/share/doc/qpdf/examples/pdf-custom-filter.cc +0 -412
  97. package/qpdf-bin/share/doc/qpdf/examples/pdf-double-page-size.cc +0 -97
  98. package/qpdf-bin/share/doc/qpdf/examples/pdf-filter-tokens.cc +0 -192
  99. package/qpdf-bin/share/doc/qpdf/examples/pdf-invert-images.cc +0 -147
  100. package/qpdf-bin/share/doc/qpdf/examples/pdf-linearize.c +0 -77
  101. package/qpdf-bin/share/doc/qpdf/examples/pdf-mod-info.cc +0 -172
  102. package/qpdf-bin/share/doc/qpdf/examples/pdf-name-number-tree.cc +0 -173
  103. package/qpdf-bin/share/doc/qpdf/examples/pdf-npages.cc +0 -46
  104. package/qpdf-bin/share/doc/qpdf/examples/pdf-overlay-page.cc +0 -88
  105. package/qpdf-bin/share/doc/qpdf/examples/pdf-parse-content.cc +0 -82
  106. package/qpdf-bin/share/doc/qpdf/examples/pdf-set-form-values.cc +0 -76
  107. package/qpdf-bin/share/doc/qpdf/examples/pdf-split-pages.cc +0 -71
  108. package/qpdf-bin/share/doc/qpdf/examples/qpdf-job.cc +0 -105
  109. package/qpdf-bin/share/doc/qpdf/examples/qpdfjob-c-save-attachment.c +0 -95
  110. package/qpdf-bin/share/doc/qpdf/examples/qpdfjob-c.c +0 -58
  111. package/qpdf-bin/share/doc/qpdf/examples/qpdfjob-remove-annotations.cc +0 -71
  112. package/qpdf-bin/share/doc/qpdf/examples/qpdfjob-save-attachment.cc +0 -49
  113. package/qpdf-bin/share/doc/qpdf/manual-html/.buildinfo +0 -4
  114. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/acknowledgement.rst.txt +0 -18
  115. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/cli.rst.txt +0 -4083
  116. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/contributing.rst.txt +0 -172
  117. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/design.rst.txt +0 -1203
  118. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/download.rst.txt +0 -15
  119. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/encryption.rst.txt +0 -406
  120. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/index.rst.txt +0 -45
  121. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/installation.rst.txt +0 -796
  122. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/json.rst.txt +0 -904
  123. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/library.rst.txt +0 -113
  124. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/license.rst.txt +0 -12
  125. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/linearization.rst.txt +0 -197
  126. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/object-streams.rst.txt +0 -186
  127. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/overview.rst.txt +0 -38
  128. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/packaging.rst.txt +0 -150
  129. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/qdf.rst.txt +0 -114
  130. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/qpdf-job.rst.txt +0 -262
  131. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/release-notes.rst.txt +0 -3874
  132. package/qpdf-bin/share/doc/qpdf/manual-html/_sources/weak-crypto.rst.txt +0 -196
  133. package/qpdf-bin/share/doc/qpdf/manual-html/_static/_sphinx_javascript_frameworks_compat.js +0 -123
  134. package/qpdf-bin/share/doc/qpdf/manual-html/_static/basic.css +0 -906
  135. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/badge_only.css +0 -1
  136. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/Roboto-Slab-Bold.woff +0 -0
  137. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
  138. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/Roboto-Slab-Regular.woff +0 -0
  139. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
  140. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/fontawesome-webfont.eot +0 -0
  141. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/fontawesome-webfont.svg +0 -2671
  142. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/fontawesome-webfont.ttf +0 -0
  143. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/fontawesome-webfont.woff +0 -0
  144. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/fontawesome-webfont.woff2 +0 -0
  145. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/lato-bold-italic.woff +0 -0
  146. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/lato-bold-italic.woff2 +0 -0
  147. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/lato-bold.woff +0 -0
  148. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/lato-bold.woff2 +0 -0
  149. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/lato-normal-italic.woff +0 -0
  150. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/lato-normal-italic.woff2 +0 -0
  151. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/lato-normal.woff +0 -0
  152. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/fonts/lato-normal.woff2 +0 -0
  153. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/theme.css +0 -4
  154. package/qpdf-bin/share/doc/qpdf/manual-html/_static/css/wraptable.css +0 -4
  155. package/qpdf-bin/share/doc/qpdf/manual-html/_static/doctools.js +0 -149
  156. package/qpdf-bin/share/doc/qpdf/manual-html/_static/documentation_options.js +0 -13
  157. package/qpdf-bin/share/doc/qpdf/manual-html/_static/file.png +0 -0
  158. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-bold.eot +0 -0
  159. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-bold.ttf +0 -0
  160. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-bold.woff +0 -0
  161. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-bold.woff2 +0 -0
  162. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-bolditalic.eot +0 -0
  163. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-bolditalic.ttf +0 -0
  164. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-bolditalic.woff +0 -0
  165. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-bolditalic.woff2 +0 -0
  166. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-italic.eot +0 -0
  167. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-italic.ttf +0 -0
  168. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-italic.woff +0 -0
  169. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-italic.woff2 +0 -0
  170. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-regular.eot +0 -0
  171. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-regular.ttf +0 -0
  172. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-regular.woff +0 -0
  173. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/Lato/lato-regular.woff2 +0 -0
  174. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.eot +0 -0
  175. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.ttf +0 -0
  176. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff +0 -0
  177. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff2 +0 -0
  178. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.eot +0 -0
  179. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.ttf +0 -0
  180. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff +0 -0
  181. package/qpdf-bin/share/doc/qpdf/manual-html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff2 +0 -0
  182. package/qpdf-bin/share/doc/qpdf/manual-html/_static/jquery.js +0 -2
  183. package/qpdf-bin/share/doc/qpdf/manual-html/_static/js/badge_only.js +0 -1
  184. package/qpdf-bin/share/doc/qpdf/manual-html/_static/js/theme.js +0 -1
  185. package/qpdf-bin/share/doc/qpdf/manual-html/_static/js/versions.js +0 -228
  186. package/qpdf-bin/share/doc/qpdf/manual-html/_static/language_data.js +0 -192
  187. package/qpdf-bin/share/doc/qpdf/manual-html/_static/minus.png +0 -0
  188. package/qpdf-bin/share/doc/qpdf/manual-html/_static/plus.png +0 -0
  189. package/qpdf-bin/share/doc/qpdf/manual-html/_static/pygments.css +0 -75
  190. package/qpdf-bin/share/doc/qpdf/manual-html/_static/qpdf.svg +0 -7
  191. package/qpdf-bin/share/doc/qpdf/manual-html/_static/searchtools.js +0 -635
  192. package/qpdf-bin/share/doc/qpdf/manual-html/_static/sphinx_highlight.js +0 -154
  193. package/qpdf-bin/share/doc/qpdf/manual-html/acknowledgement.html +0 -137
  194. package/qpdf-bin/share/doc/qpdf/manual-html/cli.html +0 -3140
  195. package/qpdf-bin/share/doc/qpdf/manual-html/contributing.html +0 -269
  196. package/qpdf-bin/share/doc/qpdf/manual-html/design.html +0 -1213
  197. package/qpdf-bin/share/doc/qpdf/manual-html/download.html +0 -136
  198. package/qpdf-bin/share/doc/qpdf/manual-html/encryption.html +0 -541
  199. package/qpdf-bin/share/doc/qpdf/manual-html/genindex.html +0 -124
  200. package/qpdf-bin/share/doc/qpdf/manual-html/index.html +0 -259
  201. package/qpdf-bin/share/doc/qpdf/manual-html/installation.html +0 -842
  202. package/qpdf-bin/share/doc/qpdf/manual-html/json.html +0 -946
  203. package/qpdf-bin/share/doc/qpdf/manual-html/library.html +0 -225
  204. package/qpdf-bin/share/doc/qpdf/manual-html/license.html +0 -134
  205. package/qpdf-bin/share/doc/qpdf/manual-html/linearization.html +0 -296
  206. package/qpdf-bin/share/doc/qpdf/manual-html/object-streams.html +0 -278
  207. package/qpdf-bin/share/doc/qpdf/manual-html/objects.inv +0 -0
  208. package/qpdf-bin/share/doc/qpdf/manual-html/overview.html +0 -157
  209. package/qpdf-bin/share/doc/qpdf/manual-html/packaging.html +0 -261
  210. package/qpdf-bin/share/doc/qpdf/manual-html/qdf.html +0 -217
  211. package/qpdf-bin/share/doc/qpdf/manual-html/qpdf-job.html +0 -369
  212. package/qpdf-bin/share/doc/qpdf/manual-html/qpdf-options.html +0 -889
  213. package/qpdf-bin/share/doc/qpdf/manual-html/release-notes.html +0 -3858
  214. package/qpdf-bin/share/doc/qpdf/manual-html/search.html +0 -139
  215. package/qpdf-bin/share/doc/qpdf/manual-html/searchindex.js +0 -1
  216. package/qpdf-bin/share/doc/qpdf/manual-html/weak-crypto.html +0 -314
  217. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/.buildinfo +0 -4
  218. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/_sphinx_javascript_frameworks_compat.js +0 -123
  219. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/basic.css +0 -906
  220. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/badge_only.css +0 -1
  221. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/Roboto-Slab-Bold.woff +0 -0
  222. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
  223. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/Roboto-Slab-Regular.woff +0 -0
  224. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
  225. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/fontawesome-webfont.eot +0 -0
  226. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/fontawesome-webfont.svg +0 -2671
  227. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/fontawesome-webfont.ttf +0 -0
  228. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/fontawesome-webfont.woff +0 -0
  229. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/fontawesome-webfont.woff2 +0 -0
  230. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/lato-bold-italic.woff +0 -0
  231. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/lato-bold-italic.woff2 +0 -0
  232. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/lato-bold.woff +0 -0
  233. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/lato-bold.woff2 +0 -0
  234. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/lato-normal-italic.woff +0 -0
  235. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/lato-normal-italic.woff2 +0 -0
  236. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/lato-normal.woff +0 -0
  237. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/fonts/lato-normal.woff2 +0 -0
  238. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/theme.css +0 -4
  239. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/css/wraptable.css +0 -4
  240. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/doctools.js +0 -149
  241. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/documentation_options.js +0 -13
  242. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/file.png +0 -0
  243. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-bold.eot +0 -0
  244. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-bold.ttf +0 -0
  245. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-bold.woff +0 -0
  246. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-bold.woff2 +0 -0
  247. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-bolditalic.eot +0 -0
  248. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-bolditalic.ttf +0 -0
  249. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-bolditalic.woff +0 -0
  250. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-bolditalic.woff2 +0 -0
  251. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-italic.eot +0 -0
  252. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-italic.ttf +0 -0
  253. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-italic.woff +0 -0
  254. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-italic.woff2 +0 -0
  255. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-regular.eot +0 -0
  256. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-regular.ttf +0 -0
  257. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-regular.woff +0 -0
  258. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/Lato/lato-regular.woff2 +0 -0
  259. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.eot +0 -0
  260. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.ttf +0 -0
  261. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff +0 -0
  262. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/RobotoSlab/roboto-slab-v7-bold.woff2 +0 -0
  263. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.eot +0 -0
  264. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.ttf +0 -0
  265. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff +0 -0
  266. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/fonts/RobotoSlab/roboto-slab-v7-regular.woff2 +0 -0
  267. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/jquery.js +0 -2
  268. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/js/badge_only.js +0 -1
  269. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/js/theme.js +0 -1
  270. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/js/versions.js +0 -228
  271. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/language_data.js +0 -192
  272. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/minus.png +0 -0
  273. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/plus.png +0 -0
  274. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/pygments.css +0 -75
  275. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/qpdf.svg +0 -7
  276. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/searchtools.js +0 -635
  277. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/_static/sphinx_highlight.js +0 -154
  278. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/index.html +0 -11000
  279. package/qpdf-bin/share/doc/qpdf/manual-single-page-html/objects.inv +0 -0
  280. package/qpdf-bin/share/doc/qpdf/qpdf-manual.pdf +0 -0
package/index.js CHANGED
@@ -233,31 +233,20 @@ module.exports = {
233
233
  // Write original PDF (unencrypted)
234
234
  fs.writeFileSync(PDF_FILE_PATH, fileBuffer);
235
235
 
236
- // Encrypt PDF using local qpdf
237
- if (!fs.existsSync(QPDF_PATH)) throw new Error(`qpdf not found at ${QPDF_PATH}`);
236
+
238
237
 
239
- await new Promise((resolve, reject) => {
240
- execFile(
241
- QPDF_PATH,
242
- [
243
- '--encrypt',
244
- reportData.pdfPassword, // user password
245
- reportData.pdfPassword, // owner password
246
- '256', // AES 256 encryption
247
- '--',
248
- PDF_FILE_PATH,
249
- ENCRYPTED_PDF_PATH,
250
- ],
251
- (error, stdout, stderr) => {
252
- if (error) {
253
- console.error('Encryption failed:', stderr);
254
- return reject(error);
255
- }
256
- console.log('Encrypted PDF saved at:', ENCRYPTED_PDF_PATH);
257
- resolve();
258
- }
259
- );
260
- });
238
+ (async () => {
239
+ const qpdf = await import('node-qpdf2');
240
+
241
+ qpdf.default.encrypt({
242
+ input: pdfPassword,
243
+ output: ENCRYPTED_PDF_PATH,
244
+ keyLength: 256,
245
+ password: reportData.pdfPassword,
246
+ }).then(() => {
247
+ console.log('Encrypted!');
248
+ });
249
+ })();
261
250
 
262
251
  const encryptedBuffer = fs.readFileSync(ENCRYPTED_PDF_PATH);
263
252
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medicus.ai/medicus-report-pdf-generator",
3
- "version": "1.0.319",
3
+ "version": "1.0.321",
4
4
  "description": "Nasco corporate report - latest update in 12/10/2023 - Fix HRC for bionext",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/test.js CHANGED
@@ -1,4 +1,5 @@
1
1
  const fs = require("fs");
2
+ // const {encrypt} = require('node-qpdf2');
2
3
  const { execFile } = require("child_process");
3
4
  const {
4
5
  generateHTMLWellbeingReportWithSmartReport,
@@ -100,31 +101,44 @@ async function tttt() {
100
101
  // Write original PDF
101
102
  fs.writeFileSync(PDF_FILE_PATH, fileBuffer);
102
103
 
103
- // Encrypt PDF using local qpdf.exe
104
- await new Promise((resolve, reject) => {
105
- execFile(
106
- QPDF_PATH,
107
- [
108
- "--encrypt",
109
- "user123",
110
- "owner123",
111
- "256", // Use AES-256
112
- "--",
113
- PDF_FILE_PATH,
114
- ENCRYPTED_PATH
115
- ],
116
- (error, stdout, stderr) => {
117
- if (error) {
118
- console.error("Encryption failed:", stderr);
119
- return reject(error);
120
- }
121
- console.log("Encrypted PDF saved at:", ENCRYPTED_PATH);
122
- resolve();
123
- }
124
- );
125
- });
104
+ (async () => {
105
+ const qpdf = await import('node-qpdf2');
106
+
107
+ qpdf.encrypt({
108
+ input: PDF_FILE_PATH,
109
+ output: ENCRYPTED_PATH,
110
+ keyLength: 256,
111
+ password: 'yourpassword',
112
+ }).then(() => {
113
+ console.log('Encrypted!');
114
+ });
115
+ })();
126
116
 
127
- return fs.readFileSync(ENCRYPTED_PATH);
117
+ // Encrypt PDF using local qpdf.exe
118
+ // await new Promise((resolve, reject) => {
119
+ // execFile(
120
+ // QPDF_PATH,
121
+ // [
122
+ // "--encrypt",
123
+ // "user123",
124
+ // "owner123",
125
+ // "256", // ✅ Use AES-256
126
+ // "--",
127
+ // PDF_FILE_PATH,
128
+ // ENCRYPTED_PATH
129
+ // ],
130
+ // (error, stdout, stderr) => {
131
+ // if (error) {
132
+ // console.error("Encryption failed:", stderr);
133
+ // return reject(error);
134
+ // }
135
+ // console.log("Encrypted PDF saved at:", ENCRYPTED_PATH);
136
+ // resolve();
137
+ // }
138
+ // );
139
+ // });
140
+
141
+ // return fs.readFileSync(ENCRYPTED_PATH);
128
142
  }
129
143
 
130
144
  tttt();
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,77 +0,0 @@
1
- // Copyright (c) 2005-2021 Jay Berkenbilt
2
- // Copyright (c) 2022-2025 Jay Berkenbilt and Manfred Holger
3
- //
4
- // This file is part of qpdf.
5
- //
6
- // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
7
- // in compliance with the License. You may obtain a copy of the License at
8
- //
9
- // http://www.apache.org/licenses/LICENSE-2.0
10
- //
11
- // Unless required by applicable law or agreed to in writing, software distributed under the License
12
- // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13
- // or implied. See the License for the specific language governing permissions and limitations under
14
- // the License.
15
- //
16
- // Versions of qpdf prior to version 7 were released under the terms of version 2.0 of the Artistic
17
- // License. At your option, you may continue to consider qpdf to be licensed under those terms.
18
- // Please see the manual for additional information.
19
-
20
- #ifndef BUFFER_HH
21
- #define BUFFER_HH
22
-
23
- #include <qpdf/DLL.h>
24
-
25
- #include <cstddef>
26
- #include <memory>
27
- #include <string>
28
-
29
- class Buffer
30
- {
31
- public:
32
- QPDF_DLL
33
- Buffer();
34
-
35
- // Create a Buffer object whose memory is owned by the class and will be freed when the Buffer
36
- // object is destroyed.
37
- QPDF_DLL
38
- Buffer(size_t size);
39
- QPDF_DLL
40
- Buffer(std::string&& content);
41
-
42
- // Create a Buffer object whose memory is owned by the caller and will not be freed when the
43
- // Buffer is destroyed.
44
- QPDF_DLL
45
- Buffer(unsigned char* buf, size_t size);
46
- QPDF_DLL
47
- Buffer(std::string& content);
48
-
49
- Buffer(Buffer const&) = delete;
50
- Buffer& operator=(Buffer const&) = delete;
51
-
52
- QPDF_DLL
53
- Buffer(Buffer&&) noexcept;
54
- QPDF_DLL
55
- Buffer& operator=(Buffer&&) noexcept;
56
- QPDF_DLL
57
- ~Buffer();
58
- QPDF_DLL
59
- size_t getSize() const;
60
- QPDF_DLL
61
- unsigned char const* getBuffer() const;
62
- QPDF_DLL
63
- unsigned char* getBuffer();
64
-
65
- // Create a new copy of the Buffer. The new Buffer owns an independent copy of the data.
66
- QPDF_DLL
67
- Buffer copy() const;
68
-
69
- private:
70
- class Members;
71
-
72
- void copy(Buffer const&);
73
-
74
- std::unique_ptr<Members> m;
75
- };
76
-
77
- #endif // BUFFER_HH
@@ -1,62 +0,0 @@
1
- // Copyright (c) 2005-2021 Jay Berkenbilt
2
- // Copyright (c) 2022-2025 Jay Berkenbilt and Manfred Holger
3
- //
4
- // This file is part of qpdf.
5
- //
6
- // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
7
- // in compliance with the License. You may obtain a copy of the License at
8
- //
9
- // http://www.apache.org/licenses/LICENSE-2.0
10
- //
11
- // Unless required by applicable law or agreed to in writing, software distributed under the License
12
- // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13
- // or implied. See the License for the specific language governing permissions and limitations under
14
- // the License.
15
- //
16
- // Versions of qpdf prior to version 7 were released under the terms of version 2.0 of the Artistic
17
- // License. At your option, you may continue to consider qpdf to be licensed under those terms.
18
- // Please see the manual for additional information.
19
-
20
- #ifndef QPDF_BUFFERINPUTSOURCE_HH
21
- #define QPDF_BUFFERINPUTSOURCE_HH
22
-
23
- #include <qpdf/Buffer.hh>
24
- #include <qpdf/InputSource.hh>
25
-
26
- class QPDF_DLL_CLASS BufferInputSource: public InputSource
27
- {
28
- public:
29
- // If own_memory is true, BufferInputSource will delete the buffer when finished with it.
30
- // Otherwise, the caller owns the memory.
31
- QPDF_DLL
32
- BufferInputSource(std::string const& description, Buffer* buf, bool own_memory = false);
33
-
34
- // NB This overload copies the string contents.
35
- QPDF_DLL
36
- BufferInputSource(std::string const& description, std::string const& contents);
37
- QPDF_DLL
38
- ~BufferInputSource() override;
39
- QPDF_DLL
40
- qpdf_offset_t findAndSkipNextEOL() override;
41
- QPDF_DLL
42
- std::string const& getName() const override;
43
- QPDF_DLL
44
- qpdf_offset_t tell() override;
45
- QPDF_DLL
46
- void seek(qpdf_offset_t offset, int whence) override;
47
- QPDF_DLL
48
- void rewind() override;
49
- QPDF_DLL
50
- size_t read(char* buffer, size_t length) override;
51
- QPDF_DLL
52
- void unreadCh(char ch) override;
53
-
54
- private:
55
- bool own_memory;
56
- std::string description;
57
- Buffer* buf;
58
- qpdf_offset_t cur_offset;
59
- qpdf_offset_t max_offset;
60
- };
61
-
62
- #endif // QPDF_BUFFERINPUTSOURCE_HH
@@ -1,77 +0,0 @@
1
- // Copyright (c) 2005-2021 Jay Berkenbilt
2
- // Copyright (c) 2022-2025 Jay Berkenbilt and Manfred Holger
3
- //
4
- // This file is part of qpdf.
5
- //
6
- // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
7
- // in compliance with the License. You may obtain a copy of the License at
8
- //
9
- // http://www.apache.org/licenses/LICENSE-2.0
10
- //
11
- // Unless required by applicable law or agreed to in writing, software distributed under the License
12
- // is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13
- // or implied. See the License for the specific language governing permissions and limitations under
14
- // the License.
15
- //
16
- // Versions of qpdf prior to version 7 were released under the terms of version 2.0 of the Artistic
17
- // License. At your option, you may continue to consider qpdf to be licensed under those terms.
18
- // Please see the manual for additional information.
19
-
20
- #ifndef QPDF_CLOSEDFILEINPUTSOURCE_HH
21
- #define QPDF_CLOSEDFILEINPUTSOURCE_HH
22
-
23
- #include <qpdf/InputSource.hh>
24
-
25
- #include <memory>
26
-
27
- class FileInputSource;
28
-
29
- // This is an input source that reads from files, like FileInputSource, except that it opens and
30
- // closes the file surrounding every operation. This decreases efficiency, but it allows many more
31
- // of these to exist at once than the maximum number of open file descriptors. This is used for
32
- // merging large numbers of files.
33
- class QPDF_DLL_CLASS ClosedFileInputSource: public InputSource
34
- {
35
- public:
36
- QPDF_DLL
37
- ClosedFileInputSource(char const* filename);
38
-
39
- ClosedFileInputSource(ClosedFileInputSource const&) = delete;
40
- ClosedFileInputSource& operator=(ClosedFileInputSource const&) = delete;
41
-
42
- QPDF_DLL
43
- ~ClosedFileInputSource() override;
44
- QPDF_DLL
45
- qpdf_offset_t findAndSkipNextEOL() override;
46
- QPDF_DLL
47
- std::string const& getName() const override;
48
- QPDF_DLL
49
- qpdf_offset_t tell() override;
50
- QPDF_DLL
51
- void seek(qpdf_offset_t offset, int whence) override;
52
- QPDF_DLL
53
- void rewind() override;
54
- QPDF_DLL
55
- size_t read(char* buffer, size_t length) override;
56
- QPDF_DLL
57
- void unreadCh(char ch) override;
58
-
59
- // The file stays open between calls to stayOpen(true) and stayOpen(false). You can use this to
60
- // surround multiple operations on a single ClosedFileInputSource to reduce the overhead of a
61
- // separate open/close on each call.
62
- QPDF_DLL
63
- void stayOpen(bool);
64
-
65
- private:
66
- QPDF_DLL_PRIVATE
67
- void before();
68
- QPDF_DLL_PRIVATE
69
- void after();
70
-
71
- std::string filename;
72
- qpdf_offset_t offset;
73
- std::shared_ptr<FileInputSource> fis;
74
- bool stay_open;
75
- };
76
-
77
- #endif // QPDF_CLOSEDFILEINPUTSOURCE_HH
@@ -1,247 +0,0 @@
1
- /* Copyright (c) 2005-2021 Jay Berkenbilt
2
- * Copyright (c) 2022-2025 Jay Berkenbilt and Manfred Holger
3
- *
4
- * This file is part of qpdf.
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- *
18
- * Versions of qpdf prior to version 7 were released under the terms
19
- * of version 2.0 of the Artistic License. At your option, you may
20
- * continue to consider qpdf to be licensed under those terms. Please
21
- * see the manual for additional information.
22
- */
23
-
24
- #ifndef QPDFCONSTANTS_H
25
- #define QPDFCONSTANTS_H
26
-
27
- /*
28
- * REMEMBER:
29
- *
30
- * Keep this file 'C' compatible so it can be used from the C and C++
31
- * interfaces.
32
- */
33
-
34
- /* ****************************** NOTE ******************************
35
-
36
- Tl;Dr: new values must be added to the end such that no constant's
37
- numerical value changes, even across major releases.
38
-
39
- Details:
40
-
41
- As new values are added to existing enumerated types in this file,
42
- it is important not to change the actual values of any constants.
43
- This means that, in the absence of explicit assignment of values,
44
- the order of entries can't change even across major releases. Why?
45
- Here are the reasons:
46
-
47
- * Many of these constants are used by the C API. The C API is used
48
- through foreign function call interfaces by users of other languages
49
- who may not have access to or the ability to parse a C header file.
50
- As such, users are likely to hard-code numerical values or create
51
- their own constants whose values match. If we change values here,
52
- their code would break, and there would be no way to detect it short
53
- of noticing a bug. Furthermore, it would be difficult to write code
54
- that properly handled more than one version of the qpdf shared
55
- object (e.g. DLL) since the information about what version of qpdf
56
- is involved is only available at runtime.
57
-
58
- - It has happened from time to time that a user builds an application
59
- with an incorrectly installed qpdf, such as having mismatched header
60
- files and library files. In the event that they are only using qpdf
61
- interfaces that have been stable across the versions in question,
62
- this turns out to be harmless. If they happen to use non-compatible
63
- interfaces, this results usually in a failure to load or an obvious
64
- runtime error. If we change values of constants, it is possible that
65
- code that links and runs may have mismatched values for constants.
66
- This would create a bug that would be extremely difficult to track
67
- down and impossible for qpdf maintainers to reproduce.
68
-
69
- */
70
-
71
- /* Exit Codes from QPDFJob and the qpdf CLI */
72
-
73
- enum qpdf_exit_code_e {
74
- qpdf_exit_success = 0,
75
- /* Normal exit codes */
76
- qpdf_exit_error = 2,
77
- qpdf_exit_warning = 3,
78
- /* For --is-encrypted and --requires-password */
79
- qpdf_exit_is_not_encrypted = 2,
80
- qpdf_exit_correct_password = 3,
81
- };
82
-
83
- /* Error Codes */
84
-
85
- enum qpdf_error_code_e {
86
- qpdf_e_success = 0,
87
- qpdf_e_internal, /* logic/programming error -- indicates bug */
88
- qpdf_e_system, /* I/O error, memory error, etc. */
89
- qpdf_e_unsupported, /* PDF feature not (yet) supported by qpdf */
90
- qpdf_e_password, /* incorrect password for encrypted file */
91
- qpdf_e_damaged_pdf, /* syntax errors or other damage in PDF */
92
- qpdf_e_pages, /* erroneous or unsupported pages structure */
93
- qpdf_e_object, /* type/bounds errors accessing objects */
94
- qpdf_e_json, /* error in qpdf JSON */
95
- qpdf_e_linearization, /* linearization warning */
96
- };
97
-
98
- /* Object Types */
99
-
100
- /* PDF objects represented by QPDFObjectHandle or, in the C API, by
101
- * qpdf_oh, have a unique type code that has one of the values in the
102
- * list below. As new object types are added to qpdf, additional items
103
- * may be added to the list, so code that switches on these values
104
- * should take that into consideration. (Maintainer note: it would be
105
- * better to call this qpdf_ot_* rather than ot_* to reduce likelihood
106
- * of name collision, but changing the names of the values breaks
107
- * backward compatibility.)
108
- */
109
- enum qpdf_object_type_e {
110
- /* Object types internal to qpdf */
111
- ot_uninitialized,
112
- ot_reserved,
113
- /* Object types that can occur in the main document */
114
- ot_null,
115
- ot_boolean,
116
- ot_integer,
117
- ot_real,
118
- ot_string,
119
- ot_name,
120
- ot_array,
121
- ot_dictionary,
122
- ot_stream,
123
- /* Additional object types that can occur in content streams */
124
- ot_operator,
125
- ot_inlineimage,
126
- /* Object types internal to qpdf */
127
- ot_unresolved,
128
- ot_destroyed,
129
- ot_reference,
130
- };
131
-
132
- /* Write Parameters. See QPDFWriter.hh for details. */
133
-
134
- enum qpdf_object_stream_e {
135
- qpdf_o_disable = 0, /* disable object streams */
136
- qpdf_o_preserve, /* preserve object streams */
137
- qpdf_o_generate /* generate object streams */
138
- };
139
- enum qpdf_stream_data_e {
140
- qpdf_s_uncompress = 0, /* uncompress stream data */
141
- qpdf_s_preserve, /* preserve stream data compression */
142
- qpdf_s_compress /* compress stream data */
143
- };
144
-
145
- /* Stream data flags */
146
-
147
- /* See pipeStreamData in QPDFObjectHandle.hh for details on these flags. */
148
- enum qpdf_stream_encode_flags_e {
149
- qpdf_ef_compress = 1 << 0, /* compress uncompressed streams */
150
- qpdf_ef_normalize = 1 << 1, /* normalize content stream */
151
- };
152
- enum qpdf_stream_decode_level_e {
153
- /* These must be in order from less to more decoding. */
154
- qpdf_dl_none = 0, /* preserve all stream filters */
155
- qpdf_dl_generalized, /* decode general-purpose filters */
156
- qpdf_dl_specialized, /* also decode other non-lossy filters */
157
- qpdf_dl_all /* also decode lossy filters */
158
- };
159
- /* For JSON encoding */
160
- enum qpdf_json_stream_data_e {
161
- qpdf_sj_none = 0,
162
- qpdf_sj_inline,
163
- qpdf_sj_file,
164
- };
165
-
166
- /* R3 Encryption Parameters */
167
-
168
- enum qpdf_r3_print_e {
169
- qpdf_r3p_full = 0, /* allow all printing */
170
- qpdf_r3p_low, /* allow only low-resolution printing */
171
- qpdf_r3p_none /* allow no printing */
172
- };
173
-
174
- /* qpdf_r3_modify_e doesn't allow the full flexibility of the spec. It
175
- * corresponds to options in Acrobat 5's menus. The new interface in
176
- * QPDFWriter offers more granularity and no longer uses this type.
177
- */
178
- enum qpdf_r3_modify_e /* Allowed changes: */
179
- {
180
- qpdf_r3m_all = 0, /* All editing */
181
- qpdf_r3m_annotate, /* Comments, fill forms, signing, assembly */
182
- qpdf_r3m_form, /* Fill forms, signing, assembly */
183
- qpdf_r3m_assembly, /* Only document assembly */
184
- qpdf_r3m_none /* No modifications */
185
- };
186
-
187
- /* Form field flags from the PDF spec */
188
-
189
- enum pdf_form_field_flag_e {
190
- /* flags that apply to all form fields */
191
- ff_all_read_only = 1 << 0,
192
- ff_all_required = 1 << 1,
193
- ff_all_no_export = 1 << 2,
194
-
195
- /* flags that apply to fields of type /Btn (button) */
196
- ff_btn_no_toggle_off = 1 << 14,
197
- ff_btn_radio = 1 << 15,
198
- ff_btn_pushbutton = 1 << 16,
199
- ff_btn_radios_in_unison = 1 << 17,
200
-
201
- /* flags that apply to fields of type /Tx (text) */
202
- ff_tx_multiline = 1 << 12,
203
- ff_tx_password = 1 << 13,
204
- ff_tx_file_select = 1 << 20,
205
- ff_tx_do_not_spell_check = 1 << 22,
206
- ff_tx_do_not_scroll = 1 << 23,
207
- ff_tx_comb = 1 << 24,
208
- ff_tx_rich_text = 1 << 25,
209
-
210
- /* flags that apply to fields of type /Ch (choice) */
211
- ff_ch_combo = 1 << 17,
212
- ff_ch_edit = 1 << 18,
213
- ff_ch_sort = 1 << 19,
214
- ff_ch_multi_select = 1 << 21,
215
- ff_ch_do_not_spell_check = 1 << 22,
216
- ff_ch_commit_on_sel_change = 1 << 26
217
- };
218
-
219
- /* Annotation flags from the PDF spec */
220
-
221
- enum pdf_annotation_flag_e {
222
- an_invisible = 1 << 0,
223
- an_hidden = 1 << 1,
224
- an_print = 1 << 2,
225
- an_no_zoom = 1 << 3,
226
- an_no_rotate = 1 << 4,
227
- an_no_view = 1 << 5,
228
- an_read_only = 1 << 6,
229
- an_locked = 1 << 7,
230
- an_toggle_no_view = 1 << 8,
231
- an_locked_contents = 1 << 9
232
- };
233
-
234
- /* Encryption/password status for QPDFJob */
235
- enum qpdf_encryption_status_e { qpdf_es_encrypted = 1 << 0, qpdf_es_password_incorrect = 1 << 1 };
236
-
237
- /* Page label types */
238
- enum qpdf_page_label_e {
239
- pl_none,
240
- pl_digits,
241
- pl_alpha_lower,
242
- pl_alpha_upper,
243
- pl_roman_lower,
244
- pl_roman_upper,
245
- };
246
-
247
- #endif /* QPDFCONSTANTS_H */