@syncfusion/ej2-pdf-export 26.2.5 → 26.2.11

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 (364) hide show
  1. package/dist/ej2-pdf-export.min.js +10 -0
  2. package/dist/ej2-pdf-export.umd.min.js +2 -2
  3. package/dist/ej2-pdf-export.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-pdf-export.es2015.js +18 -1
  5. package/dist/es6/ej2-pdf-export.es2015.js.map +1 -1
  6. package/dist/es6/ej2-pdf-export.es5.js +18 -1
  7. package/dist/es6/ej2-pdf-export.es5.js.map +1 -1
  8. package/dist/global/ej2-pdf-export.min.js +2 -2
  9. package/dist/global/ej2-pdf-export.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +6 -6
  12. package/src/implementation/structured-elements/grid/layout/grid-layouter.js +12 -1
  13. package/src/implementation/structured-elements/grid/styles/style.d.ts +4 -0
  14. package/src/implementation/structured-elements/grid/styles/style.js +6 -0
  15. package/dist/ts/implementation/actions/action.d.ts +0 -50
  16. package/dist/ts/implementation/actions/action.ts +0 -76
  17. package/dist/ts/implementation/actions/index.d.ts +0 -6
  18. package/dist/ts/implementation/actions/index.ts +0 -6
  19. package/dist/ts/implementation/actions/uri-action.d.ts +0 -33
  20. package/dist/ts/implementation/actions/uri-action.ts +0 -52
  21. package/dist/ts/implementation/annotations/action-link-annotation.d.ts +0 -30
  22. package/dist/ts/implementation/annotations/action-link-annotation.ts +0 -43
  23. package/dist/ts/implementation/annotations/annotation-collection.d.ts +0 -77
  24. package/dist/ts/implementation/annotations/annotation-collection.ts +0 -159
  25. package/dist/ts/implementation/annotations/annotation.d.ts +0 -152
  26. package/dist/ts/implementation/annotations/annotation.ts +0 -241
  27. package/dist/ts/implementation/annotations/document-link-annotation.d.ts +0 -89
  28. package/dist/ts/implementation/annotations/document-link-annotation.ts +0 -118
  29. package/dist/ts/implementation/annotations/index.d.ts +0 -11
  30. package/dist/ts/implementation/annotations/index.ts +0 -11
  31. package/dist/ts/implementation/annotations/link-annotation.d.ts +0 -23
  32. package/dist/ts/implementation/annotations/link-annotation.ts +0 -32
  33. package/dist/ts/implementation/annotations/pdf-text-web-link.d.ts +0 -118
  34. package/dist/ts/implementation/annotations/pdf-text-web-link.ts +0 -265
  35. package/dist/ts/implementation/annotations/uri-annotation.d.ts +0 -48
  36. package/dist/ts/implementation/annotations/uri-annotation.ts +0 -86
  37. package/dist/ts/implementation/collections/dictionary.d.ts +0 -76
  38. package/dist/ts/implementation/collections/dictionary.ts +0 -150
  39. package/dist/ts/implementation/collections/index.d.ts +0 -7
  40. package/dist/ts/implementation/collections/index.ts +0 -7
  41. package/dist/ts/implementation/collections/object-object-pair/dictionary.d.ts +0 -62
  42. package/dist/ts/implementation/collections/object-object-pair/dictionary.ts +0 -125
  43. package/dist/ts/implementation/collections/object-object-pair/index.d.ts +0 -5
  44. package/dist/ts/implementation/collections/object-object-pair/index.ts +0 -5
  45. package/dist/ts/implementation/collections/utils.d.ts +0 -27
  46. package/dist/ts/implementation/collections/utils.ts +0 -38
  47. package/dist/ts/implementation/document/automatic-fields/automatic-field-info-collection.d.ts +0 -31
  48. package/dist/ts/implementation/document/automatic-fields/automatic-field-info-collection.ts +0 -39
  49. package/dist/ts/implementation/document/automatic-fields/automatic-field-info.d.ts +0 -67
  50. package/dist/ts/implementation/document/automatic-fields/automatic-field-info.ts +0 -108
  51. package/dist/ts/implementation/document/automatic-fields/automatic-field.d.ts +0 -41
  52. package/dist/ts/implementation/document/automatic-fields/automatic-field.ts +0 -127
  53. package/dist/ts/implementation/document/automatic-fields/composite-field.d.ts +0 -46
  54. package/dist/ts/implementation/document/automatic-fields/composite-field.ts +0 -76
  55. package/dist/ts/implementation/document/automatic-fields/index.d.ts +0 -11
  56. package/dist/ts/implementation/document/automatic-fields/index.ts +0 -11
  57. package/dist/ts/implementation/document/automatic-fields/multiple-value-field.d.ts +0 -18
  58. package/dist/ts/implementation/document/automatic-fields/multiple-value-field.ts +0 -37
  59. package/dist/ts/implementation/document/automatic-fields/page-count-field.d.ts +0 -44
  60. package/dist/ts/implementation/document/automatic-fields/page-count-field.ts +0 -75
  61. package/dist/ts/implementation/document/automatic-fields/pdf-numbers-convertor.d.ts +0 -53
  62. package/dist/ts/implementation/document/automatic-fields/pdf-numbers-convertor.ts +0 -157
  63. package/dist/ts/implementation/document/automatic-fields/pdf-page-number-field.d.ts +0 -51
  64. package/dist/ts/implementation/document/automatic-fields/pdf-page-number-field.ts +0 -82
  65. package/dist/ts/implementation/document/automatic-fields/pdf-template-value-pair.d.ts +0 -38
  66. package/dist/ts/implementation/document/automatic-fields/pdf-template-value-pair.ts +0 -60
  67. package/dist/ts/implementation/document/automatic-fields/single-value-field.d.ts +0 -15
  68. package/dist/ts/implementation/document/automatic-fields/single-value-field.ts +0 -48
  69. package/dist/ts/implementation/document/index.d.ts +0 -16
  70. package/dist/ts/implementation/document/index.ts +0 -16
  71. package/dist/ts/implementation/document/pdf-catalog.d.ts +0 -39
  72. package/dist/ts/implementation/document/pdf-catalog.ts +0 -65
  73. package/dist/ts/implementation/document/pdf-document-base.d.ts +0 -132
  74. package/dist/ts/implementation/document/pdf-document-base.ts +0 -180
  75. package/dist/ts/implementation/document/pdf-document-template.d.ts +0 -166
  76. package/dist/ts/implementation/document/pdf-document-template.ts +0 -310
  77. package/dist/ts/implementation/document/pdf-document.d.ts +0 -221
  78. package/dist/ts/implementation/document/pdf-document.ts +0 -342
  79. package/dist/ts/implementation/document/pdf-viewer-preferences.d.ts +0 -467
  80. package/dist/ts/implementation/document/pdf-viewer-preferences.ts +0 -578
  81. package/dist/ts/implementation/drawing/index.d.ts +0 -5
  82. package/dist/ts/implementation/drawing/index.ts +0 -5
  83. package/dist/ts/implementation/drawing/pdf-drawing.d.ts +0 -141
  84. package/dist/ts/implementation/drawing/pdf-drawing.ts +0 -218
  85. package/dist/ts/implementation/general/enum.d.ts +0 -21
  86. package/dist/ts/implementation/general/enum.ts +0 -21
  87. package/dist/ts/implementation/general/functions/index.d.ts +0 -6
  88. package/dist/ts/implementation/general/functions/index.ts +0 -6
  89. package/dist/ts/implementation/general/functions/pdf-function.d.ts +0 -44
  90. package/dist/ts/implementation/general/functions/pdf-function.ts +0 -66
  91. package/dist/ts/implementation/general/functions/pdf-sampled-function.d.ts +0 -25
  92. package/dist/ts/implementation/general/functions/pdf-sampled-function.ts +0 -63
  93. package/dist/ts/implementation/general/index.d.ts +0 -9
  94. package/dist/ts/implementation/general/index.ts +0 -9
  95. package/dist/ts/implementation/general/pdf-cache-collection.d.ts +0 -42
  96. package/dist/ts/implementation/general/pdf-cache-collection.ts +0 -97
  97. package/dist/ts/implementation/general/pdf-collection.d.ts +0 -26
  98. package/dist/ts/implementation/general/pdf-collection.ts +0 -41
  99. package/dist/ts/implementation/general/pdf-destination.d.ts +0 -103
  100. package/dist/ts/implementation/general/pdf-destination.ts +0 -170
  101. package/dist/ts/implementation/graphics/brushes/enum.d.ts +0 -236
  102. package/dist/ts/implementation/graphics/brushes/enum.ts +0 -237
  103. package/dist/ts/implementation/graphics/brushes/index.d.ts +0 -13
  104. package/dist/ts/implementation/graphics/brushes/index.ts +0 -13
  105. package/dist/ts/implementation/graphics/brushes/pdf-blend.d.ts +0 -105
  106. package/dist/ts/implementation/graphics/brushes/pdf-blend.ts +0 -294
  107. package/dist/ts/implementation/graphics/brushes/pdf-brush.d.ts +0 -57
  108. package/dist/ts/implementation/graphics/brushes/pdf-brush.ts +0 -68
  109. package/dist/ts/implementation/graphics/brushes/pdf-brushes.d.ts +0 -726
  110. package/dist/ts/implementation/graphics/brushes/pdf-brushes.ts +0 -2438
  111. package/dist/ts/implementation/graphics/brushes/pdf-color-blend.d.ts +0 -113
  112. package/dist/ts/implementation/graphics/brushes/pdf-color-blend.ts +0 -295
  113. package/dist/ts/implementation/graphics/brushes/pdf-gradient-brush.d.ts +0 -155
  114. package/dist/ts/implementation/graphics/brushes/pdf-gradient-brush.ts +0 -311
  115. package/dist/ts/implementation/graphics/brushes/pdf-linear-gradient-brush.d.ts +0 -147
  116. package/dist/ts/implementation/graphics/brushes/pdf-linear-gradient-brush.ts +0 -406
  117. package/dist/ts/implementation/graphics/brushes/pdf-radial-gradient-brush.d.ts +0 -122
  118. package/dist/ts/implementation/graphics/brushes/pdf-radial-gradient-brush.ts +0 -290
  119. package/dist/ts/implementation/graphics/brushes/pdf-solid-brush.d.ts +0 -77
  120. package/dist/ts/implementation/graphics/brushes/pdf-solid-brush.ts +0 -107
  121. package/dist/ts/implementation/graphics/brushes/pdf-tiling-brush.d.ts +0 -161
  122. package/dist/ts/implementation/graphics/brushes/pdf-tiling-brush.ts +0 -304
  123. package/dist/ts/implementation/graphics/constants.d.ts +0 -31
  124. package/dist/ts/implementation/graphics/constants.ts +0 -31
  125. package/dist/ts/implementation/graphics/enum.d.ts +0 -413
  126. package/dist/ts/implementation/graphics/enum.ts +0 -413
  127. package/dist/ts/implementation/graphics/figures/arc.d.ts +0 -87
  128. package/dist/ts/implementation/graphics/figures/arc.ts +0 -133
  129. package/dist/ts/implementation/graphics/figures/base/draw-element.d.ts +0 -30
  130. package/dist/ts/implementation/graphics/figures/base/draw-element.ts +0 -59
  131. package/dist/ts/implementation/graphics/figures/base/element-layouter.d.ts +0 -161
  132. package/dist/ts/implementation/graphics/figures/base/element-layouter.ts +0 -260
  133. package/dist/ts/implementation/graphics/figures/base/fill-element.d.ts +0 -46
  134. package/dist/ts/implementation/graphics/figures/base/fill-element.ts +0 -72
  135. package/dist/ts/implementation/graphics/figures/base/graphics-element.d.ts +0 -16
  136. package/dist/ts/implementation/graphics/figures/base/graphics-element.ts +0 -34
  137. package/dist/ts/implementation/graphics/figures/base/index.d.ts +0 -9
  138. package/dist/ts/implementation/graphics/figures/base/index.ts +0 -9
  139. package/dist/ts/implementation/graphics/figures/base/pdf-shape-element.d.ts +0 -40
  140. package/dist/ts/implementation/graphics/figures/base/pdf-shape-element.ts +0 -69
  141. package/dist/ts/implementation/graphics/figures/base/shape-layouter.d.ts +0 -131
  142. package/dist/ts/implementation/graphics/figures/base/shape-layouter.ts +0 -276
  143. package/dist/ts/implementation/graphics/figures/base/text-layouter.d.ts +0 -107
  144. package/dist/ts/implementation/graphics/figures/base/text-layouter.ts +0 -205
  145. package/dist/ts/implementation/graphics/figures/ellipse-part.d.ts +0 -48
  146. package/dist/ts/implementation/graphics/figures/ellipse-part.ts +0 -76
  147. package/dist/ts/implementation/graphics/figures/enum.d.ts +0 -79
  148. package/dist/ts/implementation/graphics/figures/enum.ts +0 -80
  149. package/dist/ts/implementation/graphics/figures/index.d.ts +0 -13
  150. package/dist/ts/implementation/graphics/figures/index.ts +0 -13
  151. package/dist/ts/implementation/graphics/figures/layout-element.d.ts +0 -73
  152. package/dist/ts/implementation/graphics/figures/layout-element.ts +0 -132
  153. package/dist/ts/implementation/graphics/figures/path.d.ts +0 -319
  154. package/dist/ts/implementation/graphics/figures/path.ts +0 -646
  155. package/dist/ts/implementation/graphics/figures/pdf-template.d.ts +0 -113
  156. package/dist/ts/implementation/graphics/figures/pdf-template.ts +0 -205
  157. package/dist/ts/implementation/graphics/figures/rectangle-area.d.ts +0 -64
  158. package/dist/ts/implementation/graphics/figures/rectangle-area.ts +0 -108
  159. package/dist/ts/implementation/graphics/figures/text-element.d.ts +0 -213
  160. package/dist/ts/implementation/graphics/figures/text-element.ts +0 -445
  161. package/dist/ts/implementation/graphics/fonts/enum.d.ts +0 -385
  162. package/dist/ts/implementation/graphics/fonts/enum.ts +0 -385
  163. package/dist/ts/implementation/graphics/fonts/index.d.ts +0 -16
  164. package/dist/ts/implementation/graphics/fonts/index.ts +0 -16
  165. package/dist/ts/implementation/graphics/fonts/pdf-font-metrics.d.ts +0 -164
  166. package/dist/ts/implementation/graphics/fonts/pdf-font-metrics.ts +0 -248
  167. package/dist/ts/implementation/graphics/fonts/pdf-font.d.ts +0 -187
  168. package/dist/ts/implementation/graphics/fonts/pdf-font.ts +0 -316
  169. package/dist/ts/implementation/graphics/fonts/pdf-standard-font-metrics-factory.d.ts +0 -301
  170. package/dist/ts/implementation/graphics/fonts/pdf-standard-font-metrics-factory.ts +0 -606
  171. package/dist/ts/implementation/graphics/fonts/pdf-standard-font.d.ts +0 -143
  172. package/dist/ts/implementation/graphics/fonts/pdf-standard-font.ts +0 -243
  173. package/dist/ts/implementation/graphics/fonts/pdf-string-format.d.ts +0 -321
  174. package/dist/ts/implementation/graphics/fonts/pdf-string-format.ts +0 -474
  175. package/dist/ts/implementation/graphics/fonts/pdf-true-type-font.d.ts +0 -49
  176. package/dist/ts/implementation/graphics/fonts/pdf-true-type-font.ts +0 -165
  177. package/dist/ts/implementation/graphics/fonts/rtl/index.d.ts +0 -6
  178. package/dist/ts/implementation/graphics/fonts/rtl/index.ts +0 -6
  179. package/dist/ts/implementation/graphics/fonts/rtl/rtl-bidirectional.d.ts +0 -62
  180. package/dist/ts/implementation/graphics/fonts/rtl/rtl-bidirectional.ts +0 -958
  181. package/dist/ts/implementation/graphics/fonts/rtl/rtl-text-shape.d.ts +0 -68
  182. package/dist/ts/implementation/graphics/fonts/rtl/rtl-text-shape.ts +0 -374
  183. package/dist/ts/implementation/graphics/fonts/rtl-renderer.d.ts +0 -23
  184. package/dist/ts/implementation/graphics/fonts/rtl-renderer.ts +0 -255
  185. package/dist/ts/implementation/graphics/fonts/string-layouter.d.ts +0 -254
  186. package/dist/ts/implementation/graphics/fonts/string-layouter.ts +0 -617
  187. package/dist/ts/implementation/graphics/fonts/string-tokenizer.d.ts +0 -109
  188. package/dist/ts/implementation/graphics/fonts/string-tokenizer.ts +0 -275
  189. package/dist/ts/implementation/graphics/fonts/ttf-OS2-Table.d.ts +0 -204
  190. package/dist/ts/implementation/graphics/fonts/ttf-OS2-Table.ts +0 -206
  191. package/dist/ts/implementation/graphics/fonts/ttf-apple-cmap-sub-table.d.ts +0 -17
  192. package/dist/ts/implementation/graphics/fonts/ttf-apple-cmap-sub-table.ts +0 -18
  193. package/dist/ts/implementation/graphics/fonts/ttf-cmap-sub-table.d.ts +0 -17
  194. package/dist/ts/implementation/graphics/fonts/ttf-cmap-sub-table.ts +0 -18
  195. package/dist/ts/implementation/graphics/fonts/ttf-cmap-table.d.ts +0 -13
  196. package/dist/ts/implementation/graphics/fonts/ttf-cmap-table.ts +0 -14
  197. package/dist/ts/implementation/graphics/fonts/ttf-glyph-header.d.ts +0 -25
  198. package/dist/ts/implementation/graphics/fonts/ttf-glyph-header.ts +0 -26
  199. package/dist/ts/implementation/graphics/fonts/ttf-glyph-info.d.ts +0 -25
  200. package/dist/ts/implementation/graphics/fonts/ttf-glyph-info.ts +0 -35
  201. package/dist/ts/implementation/graphics/fonts/ttf-head-table.d.ts +0 -94
  202. package/dist/ts/implementation/graphics/fonts/ttf-head-table.ts +0 -94
  203. package/dist/ts/implementation/graphics/fonts/ttf-horizontal-header-table.d.ts +0 -55
  204. package/dist/ts/implementation/graphics/fonts/ttf-horizontal-header-table.ts +0 -56
  205. package/dist/ts/implementation/graphics/fonts/ttf-loca-table.d.ts +0 -9
  206. package/dist/ts/implementation/graphics/fonts/ttf-loca-table.ts +0 -10
  207. package/dist/ts/implementation/graphics/fonts/ttf-long-hor-metric.d.ts +0 -13
  208. package/dist/ts/implementation/graphics/fonts/ttf-long-hor-metric.ts +0 -14
  209. package/dist/ts/implementation/graphics/fonts/ttf-metrics.d.ts +0 -101
  210. package/dist/ts/implementation/graphics/fonts/ttf-metrics.ts +0 -106
  211. package/dist/ts/implementation/graphics/fonts/ttf-microsoft-cmap-sub-table.d.ts +0 -57
  212. package/dist/ts/implementation/graphics/fonts/ttf-microsoft-cmap-sub-table.ts +0 -58
  213. package/dist/ts/implementation/graphics/fonts/ttf-name-record.d.ts +0 -33
  214. package/dist/ts/implementation/graphics/fonts/ttf-name-record.ts +0 -33
  215. package/dist/ts/implementation/graphics/fonts/ttf-name-table.d.ts +0 -22
  216. package/dist/ts/implementation/graphics/fonts/ttf-name-table.ts +0 -22
  217. package/dist/ts/implementation/graphics/fonts/ttf-post-table.d.ts +0 -41
  218. package/dist/ts/implementation/graphics/fonts/ttf-post-table.ts +0 -42
  219. package/dist/ts/implementation/graphics/fonts/ttf-reader.d.ts +0 -225
  220. package/dist/ts/implementation/graphics/fonts/ttf-reader.ts +0 -1254
  221. package/dist/ts/implementation/graphics/fonts/ttf-table-info.d.ts +0 -22
  222. package/dist/ts/implementation/graphics/fonts/ttf-table-info.ts +0 -26
  223. package/dist/ts/implementation/graphics/fonts/ttf-trimmed-cmap-sub-table.d.ts +0 -25
  224. package/dist/ts/implementation/graphics/fonts/ttf-trimmed-cmap-sub-table.ts +0 -26
  225. package/dist/ts/implementation/graphics/fonts/unicode-true-type-font.d.ts +0 -213
  226. package/dist/ts/implementation/graphics/fonts/unicode-true-type-font.ts +0 -577
  227. package/dist/ts/implementation/graphics/images/byte-array.d.ts +0 -74
  228. package/dist/ts/implementation/graphics/images/byte-array.ts +0 -137
  229. package/dist/ts/implementation/graphics/images/image-decoder.d.ts +0 -274
  230. package/dist/ts/implementation/graphics/images/image-decoder.ts +0 -439
  231. package/dist/ts/implementation/graphics/images/index.d.ts +0 -8
  232. package/dist/ts/implementation/graphics/images/index.ts +0 -8
  233. package/dist/ts/implementation/graphics/images/pdf-bitmap.d.ts +0 -90
  234. package/dist/ts/implementation/graphics/images/pdf-bitmap.ts +0 -110
  235. package/dist/ts/implementation/graphics/images/pdf-image.d.ts +0 -88
  236. package/dist/ts/implementation/graphics/images/pdf-image.ts +0 -132
  237. package/dist/ts/implementation/graphics/index.d.ts +0 -35
  238. package/dist/ts/implementation/graphics/index.ts +0 -46
  239. package/dist/ts/implementation/graphics/pdf-color.d.ts +0 -206
  240. package/dist/ts/implementation/graphics/pdf-color.ts +0 -478
  241. package/dist/ts/implementation/graphics/pdf-graphics.d.ts +0 -1210
  242. package/dist/ts/implementation/graphics/pdf-graphics.ts +0 -2554
  243. package/dist/ts/implementation/graphics/pdf-margins.d.ts +0 -82
  244. package/dist/ts/implementation/graphics/pdf-margins.ts +0 -124
  245. package/dist/ts/implementation/graphics/pdf-pen.d.ts +0 -237
  246. package/dist/ts/implementation/graphics/pdf-pen.ts +0 -370
  247. package/dist/ts/implementation/graphics/pdf-resources.d.ts +0 -122
  248. package/dist/ts/implementation/graphics/pdf-resources.ts +0 -300
  249. package/dist/ts/implementation/graphics/pdf-transformation-matrix.d.ts +0 -143
  250. package/dist/ts/implementation/graphics/pdf-transformation-matrix.ts +0 -246
  251. package/dist/ts/implementation/graphics/pdf-transparency.d.ts +0 -34
  252. package/dist/ts/implementation/graphics/pdf-transparency.ts +0 -93
  253. package/dist/ts/implementation/graphics/unit-convertor.d.ts +0 -72
  254. package/dist/ts/implementation/graphics/unit-convertor.ts +0 -96
  255. package/dist/ts/implementation/index.d.ts +0 -103
  256. package/dist/ts/implementation/index.ts +0 -103
  257. package/dist/ts/implementation/input-output/big-endian-writer.d.ts +0 -59
  258. package/dist/ts/implementation/input-output/big-endian-writer.ts +0 -121
  259. package/dist/ts/implementation/input-output/cross-table.d.ts +0 -21
  260. package/dist/ts/implementation/input-output/cross-table.ts +0 -21
  261. package/dist/ts/implementation/input-output/enum.d.ts +0 -16
  262. package/dist/ts/implementation/input-output/enum.ts +0 -16
  263. package/dist/ts/implementation/input-output/index.d.ts +0 -12
  264. package/dist/ts/implementation/input-output/index.ts +0 -12
  265. package/dist/ts/implementation/input-output/pdf-cross-table.d.ts +0 -249
  266. package/dist/ts/implementation/input-output/pdf-cross-table.ts +0 -524
  267. package/dist/ts/implementation/input-output/pdf-dictionary-properties.d.ts +0 -568
  268. package/dist/ts/implementation/input-output/pdf-dictionary-properties.ts +0 -571
  269. package/dist/ts/implementation/input-output/pdf-main-object-collection.d.ts +0 -120
  270. package/dist/ts/implementation/input-output/pdf-main-object-collection.ts +0 -194
  271. package/dist/ts/implementation/input-output/pdf-operators.d.ts +0 -361
  272. package/dist/ts/implementation/input-output/pdf-operators.ts +0 -363
  273. package/dist/ts/implementation/input-output/pdf-stream-writer.d.ts +0 -311
  274. package/dist/ts/implementation/input-output/pdf-stream-writer.ts +0 -681
  275. package/dist/ts/implementation/input-output/pdf-writer.d.ts +0 -68
  276. package/dist/ts/implementation/input-output/pdf-writer.ts +0 -88
  277. package/dist/ts/implementation/pages/enum.d.ts +0 -201
  278. package/dist/ts/implementation/pages/enum.ts +0 -201
  279. package/dist/ts/implementation/pages/index.d.ts +0 -17
  280. package/dist/ts/implementation/pages/index.ts +0 -17
  281. package/dist/ts/implementation/pages/page-added-event-arguments.d.ts +0 -30
  282. package/dist/ts/implementation/pages/page-added-event-arguments.ts +0 -39
  283. package/dist/ts/implementation/pages/pdf-document-page-collection.d.ts +0 -86
  284. package/dist/ts/implementation/pages/pdf-document-page-collection.ts +0 -180
  285. package/dist/ts/implementation/pages/pdf-page-base.d.ts +0 -121
  286. package/dist/ts/implementation/pages/pdf-page-base.ts +0 -181
  287. package/dist/ts/implementation/pages/pdf-page-layer-collection.d.ts +0 -99
  288. package/dist/ts/implementation/pages/pdf-page-layer-collection.ts +0 -348
  289. package/dist/ts/implementation/pages/pdf-page-layer.d.ts +0 -160
  290. package/dist/ts/implementation/pages/pdf-page-layer.ts +0 -271
  291. package/dist/ts/implementation/pages/pdf-page-settings.d.ts +0 -111
  292. package/dist/ts/implementation/pages/pdf-page-settings.ts +0 -192
  293. package/dist/ts/implementation/pages/pdf-page-size.d.ts +0 -159
  294. package/dist/ts/implementation/pages/pdf-page-size.ts +0 -162
  295. package/dist/ts/implementation/pages/pdf-page-template-element.d.ts +0 -240
  296. package/dist/ts/implementation/pages/pdf-page-template-element.ts +0 -663
  297. package/dist/ts/implementation/pages/pdf-page.d.ts +0 -153
  298. package/dist/ts/implementation/pages/pdf-page.ts +0 -235
  299. package/dist/ts/implementation/pages/pdf-section-collection.d.ts +0 -109
  300. package/dist/ts/implementation/pages/pdf-section-collection.ts +0 -187
  301. package/dist/ts/implementation/pages/pdf-section-page-collection.d.ts +0 -41
  302. package/dist/ts/implementation/pages/pdf-section-page-collection.ts +0 -61
  303. package/dist/ts/implementation/pages/pdf-section-templates.d.ts +0 -64
  304. package/dist/ts/implementation/pages/pdf-section-templates.ts +0 -96
  305. package/dist/ts/implementation/pages/pdf-section.d.ts +0 -327
  306. package/dist/ts/implementation/pages/pdf-section.ts +0 -644
  307. package/dist/ts/implementation/primitives/index.d.ts +0 -12
  308. package/dist/ts/implementation/primitives/index.ts +0 -12
  309. package/dist/ts/implementation/primitives/pdf-array.d.ts +0 -192
  310. package/dist/ts/implementation/primitives/pdf-array.ts +0 -386
  311. package/dist/ts/implementation/primitives/pdf-boolean.d.ts +0 -84
  312. package/dist/ts/implementation/primitives/pdf-boolean.ts +0 -119
  313. package/dist/ts/implementation/primitives/pdf-dictionary.d.ts +0 -362
  314. package/dist/ts/implementation/primitives/pdf-dictionary.ts +0 -513
  315. package/dist/ts/implementation/primitives/pdf-name.d.ts +0 -121
  316. package/dist/ts/implementation/primitives/pdf-name.ts +0 -218
  317. package/dist/ts/implementation/primitives/pdf-number.d.ts +0 -104
  318. package/dist/ts/implementation/primitives/pdf-number.ts +0 -165
  319. package/dist/ts/implementation/primitives/pdf-reference.d.ts +0 -223
  320. package/dist/ts/implementation/primitives/pdf-reference.ts +0 -430
  321. package/dist/ts/implementation/primitives/pdf-stream.d.ts +0 -161
  322. package/dist/ts/implementation/primitives/pdf-stream.ts +0 -306
  323. package/dist/ts/implementation/primitives/pdf-string.d.ts +0 -235
  324. package/dist/ts/implementation/primitives/pdf-string.ts +0 -397
  325. package/dist/ts/implementation/structured-elements/grid/index.d.ts +0 -4
  326. package/dist/ts/implementation/structured-elements/grid/index.ts +0 -10
  327. package/dist/ts/implementation/structured-elements/grid/layout/grid-layouter.d.ts +0 -597
  328. package/dist/ts/implementation/structured-elements/grid/layout/grid-layouter.ts +0 -2029
  329. package/dist/ts/implementation/structured-elements/grid/pdf-grid-cell.d.ts +0 -288
  330. package/dist/ts/implementation/structured-elements/grid/pdf-grid-cell.ts +0 -1194
  331. package/dist/ts/implementation/structured-elements/grid/pdf-grid-column.d.ts +0 -108
  332. package/dist/ts/implementation/structured-elements/grid/pdf-grid-column.ts +0 -206
  333. package/dist/ts/implementation/structured-elements/grid/pdf-grid-row.d.ts +0 -261
  334. package/dist/ts/implementation/structured-elements/grid/pdf-grid-row.ts +0 -470
  335. package/dist/ts/implementation/structured-elements/grid/pdf-grid.d.ts +0 -292
  336. package/dist/ts/implementation/structured-elements/grid/pdf-grid.ts +0 -853
  337. package/dist/ts/implementation/structured-elements/grid/styles/index.d.ts +0 -5
  338. package/dist/ts/implementation/structured-elements/grid/styles/index.ts +0 -5
  339. package/dist/ts/implementation/structured-elements/grid/styles/pdf-borders.d.ts +0 -146
  340. package/dist/ts/implementation/structured-elements/grid/styles/pdf-borders.ts +0 -240
  341. package/dist/ts/implementation/structured-elements/grid/styles/style.d.ts +0 -272
  342. package/dist/ts/implementation/structured-elements/grid/styles/style.ts +0 -424
  343. package/dist/ts/implementation/structured-elements/index.d.ts +0 -4
  344. package/dist/ts/implementation/structured-elements/index.ts +0 -10
  345. package/dist/ts/implementation/structured-elements/tables/light-tables/enum.d.ts +0 -16
  346. package/dist/ts/implementation/structured-elements/tables/light-tables/enum.ts +0 -16
  347. package/dist/ts/index.d.ts +0 -116
  348. package/dist/ts/index.ts +0 -116
  349. package/dist/ts/interfaces/i-pdf-cache.d.ts +0 -23
  350. package/dist/ts/interfaces/i-pdf-cache.ts +0 -23
  351. package/dist/ts/interfaces/i-pdf-changable.d.ts +0 -17
  352. package/dist/ts/interfaces/i-pdf-changable.ts +0 -17
  353. package/dist/ts/interfaces/i-pdf-clonable.d.ts +0 -12
  354. package/dist/ts/interfaces/i-pdf-clonable.ts +0 -12
  355. package/dist/ts/interfaces/i-pdf-primitives.d.ts +0 -45
  356. package/dist/ts/interfaces/i-pdf-primitives.ts +0 -45
  357. package/dist/ts/interfaces/i-pdf-true-type-font.d.ts +0 -18
  358. package/dist/ts/interfaces/i-pdf-true-type-font.ts +0 -48
  359. package/dist/ts/interfaces/i-pdf-wrapper.d.ts +0 -13
  360. package/dist/ts/interfaces/i-pdf-wrapper.ts +0 -13
  361. package/dist/ts/interfaces/i-pdf-writer.d.ts +0 -29
  362. package/dist/ts/interfaces/i-pdf-writer.ts +0 -29
  363. package/dist/ts/interfaces/index.d.ts +0 -10
  364. package/dist/ts/interfaces/index.ts +0 -10
@@ -1,478 +0,0 @@
1
- import { PdfColorSpace } from './enum';
2
- import { Operators } from './../input-output/pdf-operators';
3
- import { Dictionary } from './../collections/dictionary';
4
- import { PdfNumber } from './../primitives/pdf-number';
5
- import { PdfArray } from './../primitives/pdf-array';
6
- /**
7
- * Implements structures and routines working with `color`.
8
- * ```typescript
9
- * // create a new PDF document
10
- * let document : PdfDocument = new PdfDocument();
11
- * // add a new page to the document
12
- * let page1 : PdfPage = document.pages.add();
13
- * // set the font
14
- * let font : PdfStandardFont = new PdfStandardFont(PdfFontFamily.Helvetica, 20);
15
- * //
16
- * // set color
17
- * let brushColor : PdfColor = new PdfColor(0, 0, 0);
18
- * //
19
- * // create black brush
20
- * let blackBrush : PdfSolidBrush = new PdfSolidBrush(brushColor);
21
- * // draw the text
22
- * page1.graphics.drawString('Hello World', font, blackBrush, new PointF(0, 0));
23
- * // save the document
24
- * document.save('output.pdf');
25
- * // destroy the document
26
- * document.destroy();
27
- * ```
28
- * @default black color
29
- */
30
- export class PdfColor {
31
- //Fields
32
- /**
33
- * Holds `RGB colors` converted into strings.
34
- * @private
35
- */
36
- private static rgbStrings : Dictionary<number, Object> = new Dictionary<number, Object>();
37
- /**
38
- * Holds Gray scale colors converted into strings for `stroking`.
39
- * @private
40
- */
41
- private static grayStringsSroke : Dictionary<number, Object> = new Dictionary<number, Object>();
42
- /**
43
- * Holds Gray scale colors converted into strings for `filling`.
44
- * @private
45
- */
46
- private static grayStringsFill : Dictionary<number, Object> = new Dictionary<number, Object>();
47
- /**
48
- * Value of `Red` channel.
49
- * @private
50
- */
51
- private redColor : number;
52
- /**
53
- * Value of `Cyan` channel.
54
- * @private
55
- */
56
- private cyanColor : number;
57
- /**
58
- * Value of `Green` channel.
59
- * @private
60
- */
61
- private greenColor : number;
62
- /**
63
- * Value of `Magenta` channel.
64
- * @private
65
- */
66
- private magentaColor : number;
67
- /**
68
- * Value of `Blue` channel.
69
- * @private
70
- */
71
- private blueColor : number;
72
- /**
73
- * Value of `Yellow` channel.
74
- * @private
75
- */
76
- private yellowColor : number;
77
- /**
78
- * Value of `Black` channel.
79
- * @private
80
- */
81
- private blackColor : number;
82
- /**
83
- * Value of `Gray` channel.
84
- * @private
85
- */
86
- private grayColor : number;
87
- /**
88
- * `Alpha` channel.
89
- * @private
90
- */
91
- private alpha : number;
92
- /**
93
- * Shows if the color `is empty`.
94
- * @private
95
- */
96
- private filled : boolean;
97
- /**
98
- * `Max value` of color channel.
99
- * @private
100
- */
101
- public static readonly maxColourChannelValue : number = 255.0;
102
-
103
- //constructor
104
- /**
105
- * Initialize a new instance for `PdfColor` class.
106
- */
107
- public constructor()
108
- public constructor(color1 : PdfColor)
109
- public constructor(color1 : number)
110
- public constructor(color1 : number, color2 : number, color3 : number)
111
- public constructor(color1 : number, color2 : number, color3 : number, color4 : number)
112
- public constructor(color1 ?: number|PdfColor, color2 ?: number, color3 ?: number, color4 ?: number) {
113
- if (typeof color1 === 'undefined') {
114
- if (typeof color2 !== 'undefined' && typeof color3 !== 'undefined' && typeof color4 !== 'undefined') {
115
- this.assignRGB(color2, color3, color4);
116
- } else {
117
- this.filled = false;
118
- }
119
- } else if (color1 instanceof PdfColor) {
120
- this.redColor = color1.r;
121
- this.greenColor = color1.g;
122
- this.blueColor = color1.b;
123
- this.grayColor = color1.gray;
124
- this.alpha = color1.alpha;
125
- this.filled = (this.alpha !== 0);
126
- /* tslint:disable-next-line:max-line-length */
127
- } else if (typeof color1 === 'number' && typeof color2 === 'undefined' && typeof color3 === 'undefined' && typeof color4 === 'undefined') {
128
- if (color1 < 0) {
129
- color1 = 0;
130
- }
131
- if (color1 > 1) {
132
- color1 = 1;
133
- }
134
- this.redColor = color1 * PdfColor.maxColourChannelValue;
135
- this.greenColor = color1 * PdfColor.maxColourChannelValue;
136
- this.blueColor = color1 * PdfColor.maxColourChannelValue;
137
- this.cyanColor = color1;
138
- this.magentaColor = color1;
139
- this.yellowColor = color1;
140
- this.blackColor = color1;
141
- this.grayColor = color1;
142
- this.alpha = PdfColor.maxColourChannelValue;
143
- this.filled = true;
144
- } else if (typeof color4 === 'undefined') {
145
- this.assignRGB(color1, color2, color3);
146
- } else {
147
- this.assignRGB(color2, color3, color4, color1);
148
- }
149
- }
150
- /**
151
- * `Assign` red, green, blue colors with alpha value..
152
- * @private
153
- */
154
- private assignRGB(r : number, g : number, b : number, a ?: number) : void {
155
- if (typeof r === 'undefined' || typeof g === 'undefined' || typeof b === 'undefined') {
156
- this.filled = false;
157
- } else {
158
- this.cyanColor = 0;
159
- this.magentaColor = 0;
160
- this.yellowColor = 0;
161
- this.blackColor = 0;
162
- this.grayColor = 0;
163
- this.redColor = r;
164
- this.greenColor = g;
165
- this.blueColor = b;
166
- if ( typeof a === 'undefined') {
167
- this.alpha = PdfColor.maxColourChannelValue;
168
- } else {
169
- this.alpha = a;
170
- }
171
- this.filled = true;
172
- this.assignCMYK(r, g, b);
173
- }
174
- }
175
- /**
176
- * `Calculate and assign` cyan, megenta, yellow colors from rgb values..
177
- * @private
178
- */
179
- private assignCMYK(r : number, g : number, b : number) : void {
180
- let red : number = r / PdfColor.maxColourChannelValue;
181
- let green : number = g / PdfColor.maxColourChannelValue;
182
- let blue : number = b / PdfColor.maxColourChannelValue;
183
- let black : number = PdfNumber.min(1 - red, 1 - green, 1 - blue);
184
- let cyan : number = (black === 1.0) ? 0 : (1 - red - black) / (1 - black);
185
- let magenta : number = (black === 1.0) ? 0 : (1 - green - black) / (1 - black);
186
- let yellow : number = (black === 1.0) ? 0 : (1 - blue - black) / (1 - black);
187
- this.blackColor = black;
188
- this.cyanColor = cyan;
189
- this.magentaColor = magenta;
190
- this.yellowColor = yellow;
191
- }
192
-
193
- //Properties
194
- // public static get Empty():PdfColor
195
- // {
196
- // return this.s_emptyColor
197
- // }
198
- /**
199
- * Gets or sets `Red` channel value.
200
- * @private
201
- */
202
- public get r() : number {
203
- return this.redColor;
204
- }
205
- public set r(value : number) {
206
- this.redColor = value;
207
- this.assignCMYK(this.redColor, this.greenColor, this.blueColor);
208
- this.filled = true;
209
- }
210
- /**
211
- * Gets the `Red` color
212
- * @private
213
- */
214
- public get red() : number {
215
- return (this.r / PdfColor.maxColourChannelValue);
216
- }
217
- /**
218
- * Gets or sets `Blue` channel value.
219
- * @private
220
- */
221
- public get b() : number {
222
- return this.blueColor;
223
- }
224
- public set b(value : number) {
225
- this.blueColor = value;
226
- this.assignCMYK(this.redColor, this.greenColor, this.blueColor);
227
- this.filled = true;
228
- }
229
- /**
230
- * Gets the `blue` color.
231
- * @private
232
- */
233
- public get blue() : number {
234
- return (this.b / PdfColor.maxColourChannelValue);
235
- }
236
- /**
237
- * Gets or sets `Cyan` channel value.
238
- * @private
239
- */
240
- public get c() : number {
241
- return this.cyanColor;
242
- }
243
- public set c(value : number) {
244
- if (value < 0) {
245
- this.cyanColor = 0;
246
- } else if (value > 1) {
247
- this.cyanColor = 1;
248
- } else {
249
- this.cyanColor = value;
250
- }
251
- this.assignRGB(this.cyanColor, this.magentaColor, this.yellowColor, this.blackColor);
252
- this.filled = true;
253
- }
254
- /**
255
- * Gets or sets `Black` channel value.
256
- * @private
257
- */
258
- public get k(): number {
259
- return this.blackColor;
260
- }
261
- public set k(value: number) {
262
- if ((value < 0)) {
263
- this.blackColor = 0;
264
- } else if ((value > 1)) {
265
- this.blackColor = 1;
266
- } else {
267
- this.blackColor = value;
268
- }
269
- this.assignRGB(this.cyanColor, this.magentaColor, this.yellowColor, this.blackColor);
270
- this.filled = true;
271
- }
272
- /**
273
- * Gets or sets `Magenta` channel value.
274
- * @private
275
- */
276
- public get m(): number {
277
- return this.magentaColor;
278
- }
279
- public set m(value: number) {
280
- if ((value < 0)) {
281
- this.magentaColor = 0;
282
- } else if ((value > 1)) {
283
- this.magentaColor = 1;
284
- } else {
285
- this.magentaColor = value;
286
- }
287
- this.assignRGB(this.cyanColor, this.magentaColor, this.yellowColor, this.blackColor);
288
- this.filled = true;
289
- }
290
- /**
291
- * Gets or sets `Yellow` channel value.
292
- * @private
293
- */
294
- public get y(): number {
295
- return this.yellowColor;
296
- }
297
- public set y(value: number) {
298
- if ((value < 0)) {
299
- this.yellowColor = 0;
300
- } else if ((value > 1)) {
301
- this.yellowColor = 1;
302
- } else {
303
- this.yellowColor = value;
304
- }
305
- this.assignRGB(this.cyanColor, this.magentaColor, this.yellowColor, this.blackColor);
306
- this.filled = true;
307
- }
308
- /**
309
- * Gets or sets `Green` channel value.
310
- * @private
311
- */
312
- public get g() : number {
313
- return this.greenColor;
314
- }
315
- public set g(value : number) {
316
- this.greenColor = value;
317
- this.assignCMYK(this.redColor, this.greenColor, this.blueColor);
318
- this.filled = true;
319
- }
320
- /**
321
- * Gets the `Green` color.
322
- * @private
323
- */
324
- public get green() : number {
325
- return (this.g / PdfColor.maxColourChannelValue);
326
- }
327
- /**
328
- * Gets or sets `Gray` channel value.
329
- * @private
330
- */
331
- public get gray() : number
332
- {
333
- return ((((this.redColor + this.greenColor) + this.blueColor)) / (PdfColor.maxColourChannelValue * 3));
334
- }
335
- public set gray(value : number) {
336
- if (value < 0) {
337
- this.grayColor = 0;
338
- } else if (value > 1) {
339
- this.grayColor = 1;
340
- } else {
341
- this.grayColor = value;
342
- }
343
- this.r = (this.grayColor * PdfColor.maxColourChannelValue);
344
- this.g = (this.grayColor * PdfColor.maxColourChannelValue);
345
- this.b = (this.grayColor * PdfColor.maxColourChannelValue);
346
- this.assignCMYK(this.redColor, this.greenColor, this.blueColor);
347
- this.filled = true;
348
- }
349
- /**
350
- * Gets whether the PDFColor `is Empty` or not.
351
- * @private
352
- */
353
- public get isEmpty() : boolean
354
- {
355
- return !this.filled;
356
- }
357
- /**
358
- * Gets or sets `Alpha` channel value.
359
- * @private
360
- */
361
- public get a() : number
362
- {
363
- return this.alpha;
364
- }
365
- public set a(value : number) {
366
- if (value < 0) {
367
- this.alpha = 0;
368
- } else {
369
- // if (this.alpha !== value) {
370
- this.alpha = value;
371
- // }
372
- }
373
- this.filled = true;
374
- }
375
- //Public methods
376
- /**
377
- * Converts `PDFColor to PDF string` representation.
378
- * @private
379
- */
380
- public toString(colorSpace : PdfColorSpace, stroke : boolean) : string {
381
- if (this.isEmpty) {
382
- return '';
383
- }
384
- let str : string = '';
385
- switch (colorSpace) {
386
- case PdfColorSpace.Rgb:
387
- str = this.rgbToString(stroke);
388
- break;
389
- case PdfColorSpace.GrayScale:
390
- str = this.grayScaleToString(stroke);
391
- break;
392
- case PdfColorSpace.Cmyk:
393
- str = this.cmykToString(stroke);
394
- break;
395
- }
396
- return str;
397
- }
398
- /**
399
- * Sets `GrayScale` color.
400
- * @private
401
- */
402
- private grayScaleToString(ifStroking : boolean) : string {
403
- let gray : number = this.gray;
404
- let colour : string = '';
405
- let obj : Object = null;
406
- /* tslint:disable-next-line:max-line-length */
407
- obj = (ifStroking) ? PdfColor.grayStringsSroke.containsKey(gray) ? PdfColor.grayStringsSroke.getValue(gray) : null : PdfColor.grayStringsFill.containsKey(gray) ? PdfColor.grayStringsFill.getValue(gray) : null;
408
- if (obj == null) {
409
- if (ifStroking) {
410
- colour = gray.toString() + ' G';
411
- PdfColor.grayStringsSroke.setValue(gray, colour);
412
- }
413
- } else {
414
- colour = obj.toString();
415
- }
416
- return colour + Operators.newLine;
417
- }
418
- /**
419
- * Sets `RGB` color.
420
- * @private
421
- */
422
- private rgbToString(ifStroking : boolean) : string {
423
- let r : number = this.r;
424
- let g : number = this.g;
425
- let b : number = this.b;
426
- let key : number = (r << 16) + (g << 8) + b;
427
- if (ifStroking) {
428
- key += 1 << 24;
429
- }
430
- let colour : string = '';
431
- let obj : Object = null;
432
- if (PdfColor.rgbStrings.containsKey(key)) {
433
- obj = PdfColor.rgbStrings.getValue(key);
434
- }
435
- if (obj == null) {
436
- let red : number = r / PdfColor.maxColourChannelValue;
437
- let green : number = g / PdfColor.maxColourChannelValue;
438
- let blue : number = b / PdfColor.maxColourChannelValue;
439
- if (ifStroking) {
440
- colour = red.toString() + ' ' + green.toString() + ' ' + blue.toString() + ' RG';
441
- } else {
442
- colour = red.toString() + ' ' + green.toString() + ' ' + blue.toString() + ' rg';
443
- }
444
- PdfColor.rgbStrings.setValue(key, colour);
445
- } else {
446
- colour = obj.toString();
447
- }
448
- return colour + Operators.newLine;
449
- }
450
- /***
451
- * Sets `CMYK` color.
452
- * @private
453
- */
454
- private cmykToString(ifStroking : boolean) : string {
455
- let cyan : number = this.c;
456
- let magenta : number = this.m;
457
- let yellow : number = this.y;
458
- let black : number = this.b;
459
- let colour : string = '';
460
- colour = cyan.toString() + ' ' + magenta.toString() + ' ' + yellow.toString() + ' ' + black.toString() + ' K';
461
- return colour + Operators.newLine;
462
- }
463
- /**
464
- * Converts `colour to a PDF array`.
465
- * @private
466
- */
467
- public toArray(colorSpace : PdfColorSpace) : PdfArray {
468
- let array : PdfArray = new PdfArray();
469
- switch (colorSpace) {
470
- case PdfColorSpace.Rgb:
471
- array.add(new PdfNumber(this.red));
472
- array.add(new PdfNumber(this.green));
473
- array.add(new PdfNumber(this.blue));
474
- break;
475
- }
476
- return array;
477
- }
478
- }