@syncfusion/ej2-pdf-export 19.4.42 → 19.4.43

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 (165) hide show
  1. package/CHANGELOG.md +71 -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 +65 -17
  5. package/dist/es6/ej2-pdf-export.es2015.js.map +1 -1
  6. package/dist/es6/ej2-pdf-export.es5.js +65 -17
  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 +5 -6
  12. package/src/implementation/structured-elements/grid/layout/grid-layouter.d.ts +1 -0
  13. package/src/implementation/structured-elements/grid/layout/grid-layouter.js +47 -15
  14. package/src/implementation/structured-elements/grid/pdf-grid-row.d.ts +1 -0
  15. package/src/implementation/structured-elements/grid/pdf-grid-row.js +4 -2
  16. package/src/implementation/structured-elements/grid/pdf-grid.js +14 -0
  17. package/dist/ts/implementation/actions/action.ts +0 -76
  18. package/dist/ts/implementation/actions/uri-action.ts +0 -52
  19. package/dist/ts/implementation/annotations/action-link-annotation.ts +0 -43
  20. package/dist/ts/implementation/annotations/annotation-collection.ts +0 -159
  21. package/dist/ts/implementation/annotations/annotation.ts +0 -241
  22. package/dist/ts/implementation/annotations/document-link-annotation.ts +0 -118
  23. package/dist/ts/implementation/annotations/link-annotation.ts +0 -32
  24. package/dist/ts/implementation/annotations/pdf-text-web-link.ts +0 -265
  25. package/dist/ts/implementation/annotations/uri-annotation.ts +0 -86
  26. package/dist/ts/implementation/collections/dictionary.ts +0 -150
  27. package/dist/ts/implementation/collections/object-object-pair/dictionary.ts +0 -125
  28. package/dist/ts/implementation/collections/utils.ts +0 -38
  29. package/dist/ts/implementation/document/automatic-fields/automatic-field-info-collection.ts +0 -39
  30. package/dist/ts/implementation/document/automatic-fields/automatic-field-info.ts +0 -108
  31. package/dist/ts/implementation/document/automatic-fields/automatic-field.ts +0 -127
  32. package/dist/ts/implementation/document/automatic-fields/composite-field.ts +0 -76
  33. package/dist/ts/implementation/document/automatic-fields/multiple-value-field.ts +0 -37
  34. package/dist/ts/implementation/document/automatic-fields/page-count-field.ts +0 -75
  35. package/dist/ts/implementation/document/automatic-fields/pdf-numbers-convertor.ts +0 -157
  36. package/dist/ts/implementation/document/automatic-fields/pdf-page-number-field.ts +0 -82
  37. package/dist/ts/implementation/document/automatic-fields/pdf-template-value-pair.ts +0 -60
  38. package/dist/ts/implementation/document/automatic-fields/single-value-field.ts +0 -48
  39. package/dist/ts/implementation/document/pdf-catalog.ts +0 -52
  40. package/dist/ts/implementation/document/pdf-document-base.ts +0 -166
  41. package/dist/ts/implementation/document/pdf-document-template.ts +0 -310
  42. package/dist/ts/implementation/document/pdf-document.ts +0 -342
  43. package/dist/ts/implementation/drawing/pdf-drawing.ts +0 -218
  44. package/dist/ts/implementation/general/enum.ts +0 -21
  45. package/dist/ts/implementation/general/functions/pdf-function.ts +0 -66
  46. package/dist/ts/implementation/general/functions/pdf-sampled-function.ts +0 -62
  47. package/dist/ts/implementation/general/pdf-cache-collection.ts +0 -97
  48. package/dist/ts/implementation/general/pdf-collection.ts +0 -41
  49. package/dist/ts/implementation/general/pdf-destination.ts +0 -170
  50. package/dist/ts/implementation/graphics/brushes/enum.ts +0 -237
  51. package/dist/ts/implementation/graphics/brushes/pdf-blend.ts +0 -294
  52. package/dist/ts/implementation/graphics/brushes/pdf-brush.ts +0 -68
  53. package/dist/ts/implementation/graphics/brushes/pdf-brushes.ts +0 -2438
  54. package/dist/ts/implementation/graphics/brushes/pdf-color-blend.ts +0 -295
  55. package/dist/ts/implementation/graphics/brushes/pdf-gradient-brush.ts +0 -311
  56. package/dist/ts/implementation/graphics/brushes/pdf-linear-gradient-brush.ts +0 -406
  57. package/dist/ts/implementation/graphics/brushes/pdf-radial-gradient-brush.ts +0 -290
  58. package/dist/ts/implementation/graphics/brushes/pdf-solid-brush.ts +0 -107
  59. package/dist/ts/implementation/graphics/brushes/pdf-tiling-brush.ts +0 -304
  60. package/dist/ts/implementation/graphics/constants.ts +0 -31
  61. package/dist/ts/implementation/graphics/enum.ts +0 -413
  62. package/dist/ts/implementation/graphics/figures/arc.ts +0 -133
  63. package/dist/ts/implementation/graphics/figures/base/draw-element.ts +0 -59
  64. package/dist/ts/implementation/graphics/figures/base/element-layouter.ts +0 -260
  65. package/dist/ts/implementation/graphics/figures/base/fill-element.ts +0 -72
  66. package/dist/ts/implementation/graphics/figures/base/graphics-element.ts +0 -34
  67. package/dist/ts/implementation/graphics/figures/base/pdf-shape-element.ts +0 -69
  68. package/dist/ts/implementation/graphics/figures/base/shape-layouter.ts +0 -276
  69. package/dist/ts/implementation/graphics/figures/base/text-layouter.ts +0 -205
  70. package/dist/ts/implementation/graphics/figures/ellipse-part.ts +0 -76
  71. package/dist/ts/implementation/graphics/figures/enum.ts +0 -80
  72. package/dist/ts/implementation/graphics/figures/layout-element.ts +0 -132
  73. package/dist/ts/implementation/graphics/figures/path.ts +0 -646
  74. package/dist/ts/implementation/graphics/figures/pdf-template.ts +0 -205
  75. package/dist/ts/implementation/graphics/figures/rectangle-area.ts +0 -108
  76. package/dist/ts/implementation/graphics/figures/text-element.ts +0 -445
  77. package/dist/ts/implementation/graphics/fonts/enum.ts +0 -385
  78. package/dist/ts/implementation/graphics/fonts/pdf-font-metrics.ts +0 -248
  79. package/dist/ts/implementation/graphics/fonts/pdf-font.ts +0 -316
  80. package/dist/ts/implementation/graphics/fonts/pdf-standard-font-metrics-factory.ts +0 -606
  81. package/dist/ts/implementation/graphics/fonts/pdf-standard-font.ts +0 -243
  82. package/dist/ts/implementation/graphics/fonts/pdf-string-format.ts +0 -474
  83. package/dist/ts/implementation/graphics/fonts/pdf-true-type-font.ts +0 -165
  84. package/dist/ts/implementation/graphics/fonts/rtl/rtl-bidirectional.ts +0 -958
  85. package/dist/ts/implementation/graphics/fonts/rtl/rtl-text-shape.ts +0 -374
  86. package/dist/ts/implementation/graphics/fonts/rtl-renderer.ts +0 -255
  87. package/dist/ts/implementation/graphics/fonts/string-layouter.ts +0 -617
  88. package/dist/ts/implementation/graphics/fonts/string-tokenizer.ts +0 -275
  89. package/dist/ts/implementation/graphics/fonts/ttf-OS2-Table.ts +0 -206
  90. package/dist/ts/implementation/graphics/fonts/ttf-apple-cmap-sub-table.ts +0 -18
  91. package/dist/ts/implementation/graphics/fonts/ttf-cmap-sub-table.ts +0 -18
  92. package/dist/ts/implementation/graphics/fonts/ttf-cmap-table.ts +0 -14
  93. package/dist/ts/implementation/graphics/fonts/ttf-glyph-header.ts +0 -26
  94. package/dist/ts/implementation/graphics/fonts/ttf-glyph-info.ts +0 -35
  95. package/dist/ts/implementation/graphics/fonts/ttf-head-table.ts +0 -94
  96. package/dist/ts/implementation/graphics/fonts/ttf-horizontal-header-table.ts +0 -56
  97. package/dist/ts/implementation/graphics/fonts/ttf-loca-table.ts +0 -10
  98. package/dist/ts/implementation/graphics/fonts/ttf-long-hor-metric.ts +0 -14
  99. package/dist/ts/implementation/graphics/fonts/ttf-metrics.ts +0 -106
  100. package/dist/ts/implementation/graphics/fonts/ttf-microsoft-cmap-sub-table.ts +0 -58
  101. package/dist/ts/implementation/graphics/fonts/ttf-name-record.ts +0 -33
  102. package/dist/ts/implementation/graphics/fonts/ttf-name-table.ts +0 -22
  103. package/dist/ts/implementation/graphics/fonts/ttf-post-table.ts +0 -42
  104. package/dist/ts/implementation/graphics/fonts/ttf-reader.ts +0 -1254
  105. package/dist/ts/implementation/graphics/fonts/ttf-table-info.ts +0 -26
  106. package/dist/ts/implementation/graphics/fonts/ttf-trimmed-cmap-sub-table.ts +0 -26
  107. package/dist/ts/implementation/graphics/fonts/unicode-true-type-font.ts +0 -577
  108. package/dist/ts/implementation/graphics/images/byte-array.ts +0 -137
  109. package/dist/ts/implementation/graphics/images/image-decoder.ts +0 -437
  110. package/dist/ts/implementation/graphics/images/pdf-bitmap.ts +0 -110
  111. package/dist/ts/implementation/graphics/images/pdf-image.ts +0 -132
  112. package/dist/ts/implementation/graphics/pdf-color.ts +0 -478
  113. package/dist/ts/implementation/graphics/pdf-graphics.ts +0 -2424
  114. package/dist/ts/implementation/graphics/pdf-margins.ts +0 -124
  115. package/dist/ts/implementation/graphics/pdf-pen.ts +0 -370
  116. package/dist/ts/implementation/graphics/pdf-resources.ts +0 -300
  117. package/dist/ts/implementation/graphics/pdf-transformation-matrix.ts +0 -246
  118. package/dist/ts/implementation/graphics/pdf-transparency.ts +0 -93
  119. package/dist/ts/implementation/graphics/unit-convertor.ts +0 -96
  120. package/dist/ts/implementation/input-output/big-endian-writer.ts +0 -121
  121. package/dist/ts/implementation/input-output/cross-table.ts +0 -21
  122. package/dist/ts/implementation/input-output/enum.ts +0 -16
  123. package/dist/ts/implementation/input-output/pdf-cross-table.ts +0 -524
  124. package/dist/ts/implementation/input-output/pdf-dictionary-properties.ts +0 -515
  125. package/dist/ts/implementation/input-output/pdf-main-object-collection.ts +0 -194
  126. package/dist/ts/implementation/input-output/pdf-operators.ts +0 -363
  127. package/dist/ts/implementation/input-output/pdf-stream-writer.ts +0 -681
  128. package/dist/ts/implementation/input-output/pdf-writer.ts +0 -88
  129. package/dist/ts/implementation/pages/enum.ts +0 -201
  130. package/dist/ts/implementation/pages/page-added-event-arguments.ts +0 -39
  131. package/dist/ts/implementation/pages/pdf-document-page-collection.ts +0 -180
  132. package/dist/ts/implementation/pages/pdf-page-base.ts +0 -181
  133. package/dist/ts/implementation/pages/pdf-page-layer-collection.ts +0 -348
  134. package/dist/ts/implementation/pages/pdf-page-layer.ts +0 -271
  135. package/dist/ts/implementation/pages/pdf-page-settings.ts +0 -192
  136. package/dist/ts/implementation/pages/pdf-page-size.ts +0 -162
  137. package/dist/ts/implementation/pages/pdf-page-template-element.ts +0 -659
  138. package/dist/ts/implementation/pages/pdf-page.ts +0 -235
  139. package/dist/ts/implementation/pages/pdf-section-collection.ts +0 -187
  140. package/dist/ts/implementation/pages/pdf-section-page-collection.ts +0 -61
  141. package/dist/ts/implementation/pages/pdf-section-templates.ts +0 -96
  142. package/dist/ts/implementation/pages/pdf-section.ts +0 -644
  143. package/dist/ts/implementation/primitives/pdf-array.ts +0 -386
  144. package/dist/ts/implementation/primitives/pdf-boolean.ts +0 -119
  145. package/dist/ts/implementation/primitives/pdf-dictionary.ts +0 -513
  146. package/dist/ts/implementation/primitives/pdf-name.ts +0 -218
  147. package/dist/ts/implementation/primitives/pdf-number.ts +0 -165
  148. package/dist/ts/implementation/primitives/pdf-reference.ts +0 -430
  149. package/dist/ts/implementation/primitives/pdf-stream.ts +0 -336
  150. package/dist/ts/implementation/primitives/pdf-string.ts +0 -397
  151. package/dist/ts/implementation/structured-elements/grid/layout/grid-layouter.ts +0 -1998
  152. package/dist/ts/implementation/structured-elements/grid/pdf-grid-cell.ts +0 -1189
  153. package/dist/ts/implementation/structured-elements/grid/pdf-grid-column.ts +0 -206
  154. package/dist/ts/implementation/structured-elements/grid/pdf-grid-row.ts +0 -468
  155. package/dist/ts/implementation/structured-elements/grid/pdf-grid.ts +0 -839
  156. package/dist/ts/implementation/structured-elements/grid/styles/pdf-borders.ts +0 -240
  157. package/dist/ts/implementation/structured-elements/grid/styles/style.ts +0 -424
  158. package/dist/ts/implementation/structured-elements/tables/light-tables/enum.ts +0 -16
  159. package/dist/ts/interfaces/i-pdf-cache.ts +0 -23
  160. package/dist/ts/interfaces/i-pdf-changable.ts +0 -17
  161. package/dist/ts/interfaces/i-pdf-clonable.ts +0 -12
  162. package/dist/ts/interfaces/i-pdf-primitives.ts +0 -45
  163. package/dist/ts/interfaces/i-pdf-true-type-font.ts +0 -48
  164. package/dist/ts/interfaces/i-pdf-wrapper.ts +0 -13
  165. package/dist/ts/interfaces/i-pdf-writer.ts +0 -29
@@ -1,515 +0,0 @@
1
- /**
2
- * dictionaryProperties.ts class for EJ2-PDF
3
- * PDF dictionary properties.
4
- * @private
5
- */
6
- export class DictionaryProperties {
7
- /**
8
- * Specifies the value of `Pages`.
9
- * @private
10
- */
11
- public readonly pages : string = 'Pages';
12
- /**
13
- * Specifies the value of `Kids`.
14
- * @private
15
- */
16
- public readonly kids : string = 'Kids';
17
- /**
18
- * Specifies the value of `Count`.
19
- * @private
20
- */
21
- public readonly count : string = 'Count';
22
- /**
23
- * Specifies the value of `Resources`.
24
- * @private
25
- */
26
- public readonly resources : string = 'Resources';
27
- /**
28
- * Specifies the value of `Type`.
29
- * @private
30
- */
31
- public readonly type : string = 'Type';
32
- /**
33
- * Specifies the value of `Size`.
34
- * @private
35
- */
36
- public readonly size : string = 'Size';
37
- /**
38
- * Specifies the value of `MediaBox`.
39
- * @private
40
- */
41
- public readonly mediaBox : string = 'MediaBox';
42
- /**
43
- * Specifies the value of `Parent`.
44
- * @private
45
- */
46
- public readonly parent : string = 'Parent';
47
- /**
48
- * Specifies the value of `Root`.
49
- * @private
50
- */
51
- public readonly root : string = 'Root';
52
- /**
53
- * Specifies the value of `DecodeParms`.
54
- * @private
55
- */
56
- public readonly decodeParms : string = 'DecodeParms';
57
- /**
58
- * Specifies the value of `Filter`.
59
- * @private
60
- */
61
- public readonly filter : string = 'Filter';
62
- /**
63
- * Specifies the value of `Font`.
64
- * @private
65
- */
66
- public readonly font : string = 'Font';
67
- /**
68
- * Specifies the value of `Type1`.
69
- * @private
70
- */
71
- public readonly type1 : string = 'Type1';
72
- /**
73
- * Specifies the value of `BaseFont`.
74
- * @private
75
- */
76
- public readonly baseFont : string = 'BaseFont';
77
- /**
78
- * Specifies the value of `Encoding`.
79
- * @private
80
- */
81
- public readonly encoding : string = 'Encoding';
82
- /**
83
- * Specifies the value of `Subtype`.
84
- * @private
85
- */
86
- public readonly subtype : string = 'Subtype';
87
- /**
88
- * Specifies the value of `Contents`.
89
- * @private
90
- */
91
- public readonly contents : string = 'Contents';
92
- /**
93
- * Specifies the value of `ProcSet`.
94
- * @private
95
- */
96
- public readonly procset : string = 'ProcSet';
97
- /**
98
- * Specifies the value of `ColorSpace`.
99
- * @private
100
- */
101
- public readonly colorSpace : string = 'ColorSpace';
102
- /**
103
- * Specifies the value of `ExtGState`.
104
- * @private
105
- */
106
- public readonly extGState : string = 'ExtGState';
107
- /**
108
- * Specifies the value of `Pattern`.
109
- * @private
110
- */
111
- public readonly pattern : string = 'Pattern';
112
- /**
113
- * Specifies the value of `XObject`.
114
- * @private
115
- */
116
- public readonly xObject : string = 'XObject';
117
- /**
118
- * Specifies the value of `Length`.
119
- * @private
120
- */
121
- public readonly length : string = 'Length';
122
- /**
123
- * Specifies the value of `Width`.
124
- * @private
125
- */
126
- public readonly width : string = 'Width';
127
- /**
128
- * Specifies the value of `Height`.
129
- * @private
130
- */
131
- public readonly height : string = 'Height';
132
- /**
133
- * Specifies the value of `BitsPerComponent`.
134
- * @private
135
- */
136
- public readonly bitsPerComponent : string = 'BitsPerComponent';
137
- /**
138
- * Specifies the value of `Image`.
139
- * @private
140
- */
141
- public readonly image : string = 'Image';
142
- /**
143
- * Specifies the value of `dctdecode`.
144
- * @private
145
- */
146
- public readonly dctdecode : string = 'DCTDecode';
147
- /**
148
- * Specifies the value of `Columns`.
149
- * @private
150
- */
151
- public readonly columns : string = 'Columns';
152
- /**
153
- * Specifies the value of `BlackIs1`.
154
- * @private
155
- */
156
- public readonly blackIs1 : string = 'BlackIs1';
157
- /**
158
- * Specifies the value of `K`.
159
- * @private
160
- */
161
- public readonly k : string = 'K';
162
- /**
163
- * Specifies the value of `S`.
164
- * @private
165
- */
166
- public readonly s : string = 'S';
167
- /**
168
- * Specifies the value of `Predictor`.
169
- * @private
170
- */
171
- public readonly predictor : string = 'Predictor';
172
- /**
173
- * Specifies the value of `DeviceRGB`.
174
- * @private
175
- */
176
- public readonly deviceRgb : string = 'DeviceRGB';
177
- /**
178
- * Specifies the value of `Next`.
179
- * @private
180
- */
181
- public readonly next : string = 'Next';
182
- /**
183
- * Specifies the value of `Action`.
184
- * @private
185
- */
186
- public readonly action : string = 'Action';
187
- /**
188
- * Specifies the value of `Link`.
189
- * @private
190
- */
191
- public readonly link : string = 'Link';
192
- /**
193
- *
194
- * Specifies the value of `A`.
195
- * @private
196
- */
197
- public readonly a : string = 'A';
198
- /**
199
- * Specifies the value of `Annot`.
200
- * @private
201
- */
202
- public readonly annot : string = 'Annot';
203
- /**
204
- * Specifies the value of `P`.
205
- * @private
206
- */
207
- public readonly p : string = 'P';
208
- /**
209
- * Specifies the value of `C`.
210
- * @private
211
- */
212
- public readonly c : string = 'C';
213
- /**
214
- * Specifies the value of `Rect`.
215
- * @private
216
- */
217
- public readonly rect : string = 'Rect';
218
- /**
219
- * Specifies the value of `URI`.
220
- * @private
221
- */
222
- public readonly uri : string = 'URI';
223
- /**
224
- * Specifies the value of `Annots`.
225
- * @private
226
- */
227
- public readonly annots : string = 'Annots';
228
- /**
229
- * Specifies the value of `ca`.
230
- * @private
231
- */
232
- public readonly ca : string = 'ca';
233
- /**
234
- * Specifies the value of `CA`.
235
- * @private
236
- */
237
- public readonly CA : string = 'CA';
238
- /**
239
- * Specifies the value of `XYZ`.
240
- * @private
241
- */
242
- public readonly xyz : string = 'XYZ';
243
- /**
244
- * Specifies the value of `Fit`.
245
- * @private
246
- */
247
- public readonly fit : string = 'Fit';
248
- /**
249
- * Specifies the value of `Dest`.
250
- * @private
251
- */
252
- public readonly dest : string = 'Dest';
253
- /**
254
- * Specifies the value of `BM`.
255
- * @private
256
- */
257
- public readonly BM : string = 'BM';
258
- /**
259
- * Specifies the value of `flatedecode`.
260
- * @private
261
- */
262
- public readonly flatedecode : string = 'FlateDecode';
263
- /**
264
- * Specifies the value of `Rotate`.
265
- * @private
266
- */
267
- public readonly rotate : string = 'Rotate';
268
- /**
269
- * Specifies the value of 'bBox'.
270
- * @private
271
- */
272
- public readonly bBox : string = 'BBox';
273
- /**
274
- * Specifies the value of 'form'.
275
- * @private
276
- */
277
- public readonly form : string = 'Form';
278
- /**
279
- * Specifies the value of 'w'.
280
- * @private
281
- */
282
- public readonly w : string = 'W';
283
- /**
284
- * Specifies the value of 'cIDFontType2'.
285
- * @private
286
- */
287
- public readonly cIDFontType2 : string = 'CIDFontType2';
288
- /**
289
- * Specifies the value of 'cIDToGIDMap'.
290
- * @private
291
- */
292
- public readonly cIDToGIDMap : string = 'CIDToGIDMap';
293
- /**
294
- * Specifies the value of 'identity'.
295
- * @private
296
- */
297
- public readonly identity : string = 'Identity';
298
- /**
299
- * Specifies the value of 'dw'.
300
- * @private
301
- */
302
- public readonly dw : string = 'DW';
303
- /**
304
- * Specifies the value of 'fontDescriptor'.
305
- * @private
306
- */
307
- public readonly fontDescriptor : string = 'FontDescriptor';
308
- /**
309
- * Specifies the value of 'cIDSystemInfo'.
310
- * @private
311
- */
312
- public readonly cIDSystemInfo : string = 'CIDSystemInfo';
313
- /**
314
- * Specifies the value of 'fontName'.
315
- * @private
316
- */
317
- public readonly fontName : string = 'FontName';
318
- /**
319
- * Specifies the value of 'flags'.
320
- * @private
321
- */
322
- public readonly flags : string = 'Flags';
323
- /**
324
- * Specifies the value of 'fontBBox'.
325
- * @private
326
- */
327
- public readonly fontBBox : string = 'FontBBox';
328
- /**
329
- * Specifies the value of 'missingWidth'.
330
- * @private
331
- */
332
- public readonly missingWidth : string = 'MissingWidth';
333
- /**
334
- * Specifies the value of 'stemV'.
335
- * @private
336
- */
337
- public readonly stemV : string = 'StemV';
338
- /**
339
- * Specifies the value of 'italicAngle'.
340
- * @private
341
- */
342
- public readonly italicAngle : string = 'ItalicAngle';
343
- /**
344
- * Specifies the value of 'capHeight'.
345
- * @private
346
- */
347
- public readonly capHeight : string = 'CapHeight';
348
- /**
349
- * Specifies the value of 'ascent'.
350
- * @private
351
- */
352
- public readonly ascent : string = 'Ascent';
353
- /**
354
- * Specifies the value of 'descent'.
355
- * @private
356
- */
357
- public readonly descent : string = 'Descent';
358
- /**
359
- * Specifies the value of 'leading'.
360
- * @private
361
- */
362
- public readonly leading : string = 'Leading';
363
- /**
364
- * Specifies the value of 'avgWidth'.
365
- * @private
366
- */
367
- public readonly avgWidth : string = 'AvgWidth';
368
- /**
369
- * Specifies the value of 'fontFile2'.
370
- * @private
371
- */
372
- public readonly fontFile2 : string = 'FontFile2';
373
- /**
374
- * Specifies the value of 'maxWidth'.
375
- * @private
376
- */
377
- public readonly maxWidth : string = 'MaxWidth';
378
- /**
379
- * Specifies the value of 'xHeight'.
380
- * @private
381
- */
382
- public readonly xHeight : string = 'XHeight';
383
- /**
384
- * Specifies the value of 'stemH'.
385
- * @private
386
- */
387
- public readonly stemH : string = 'StemH';
388
- /**
389
- * Specifies the value of 'registry'.
390
- * @private
391
- */
392
- public readonly registry : string = 'Registry';
393
- /**
394
- * Specifies the value of 'ordering'.
395
- * @private
396
- */
397
- public readonly ordering : string = 'Ordering';
398
- /**
399
- * Specifies the value of 'supplement'.
400
- * @private
401
- */
402
- public readonly supplement : string = 'Supplement';
403
- /**
404
- * Specifies the value of 'type0'.
405
- * @private
406
- */
407
- public readonly type0 : string = 'Type0';
408
- /**
409
- * Specifies the value of 'identityH'.
410
- * @private
411
- */
412
- public readonly identityH : string = 'Identity-H';
413
- /**
414
- * Specifies the value of 'toUnicode'.
415
- * @private
416
- */
417
- public readonly toUnicode : string = 'ToUnicode';
418
- /**
419
- * Specifies the value of 'descendantFonts'.
420
- * @private
421
- */
422
- public readonly descendantFonts : string = 'DescendantFonts';
423
- /**
424
- * Specifies the value of 'background'.
425
- * @private
426
- */
427
- public readonly background : string = 'Background';
428
- /**
429
- * Specifies the value of 'shading'.
430
- * @private
431
- */
432
- public readonly shading : string = 'Shading';
433
- /**
434
- * Specifies the value of 'matrix'.
435
- * @private
436
- */
437
- public readonly matrix : string = 'Matrix';
438
- /**
439
- * Specifies the value of 'antiAlias'.
440
- * @private
441
- */
442
- public readonly antiAlias : string = 'AntiAlias';
443
- /**
444
- * Specifies the value of 'function'.
445
- * @private
446
- */
447
- public readonly function : string = 'Function';
448
- /**
449
- * Specifies the value of 'extend'.
450
- * @private
451
- */
452
- public readonly extend : string = 'Extend';
453
- /**
454
- * Specifies the value of 'shadingType'.
455
- * @private
456
- */
457
- public readonly shadingType : string = 'ShadingType';
458
- /**
459
- * Specifies the value of 'coords'.
460
- * @private
461
- */
462
- public readonly coords : string = 'Coords';
463
- /**
464
- * Specifies the value of 'domain'.
465
- * @private
466
- */
467
- public readonly domain : string = 'Domain';
468
- /**
469
- * Specifies the value of 'range'.
470
- * @private
471
- */
472
- public readonly range : string = 'Range';
473
- /**
474
- * Specifies the value of 'functionType'.
475
- * @private
476
- */
477
- public readonly functionType : string = 'FunctionType';
478
- /**
479
- * Specifies the value of 'bitsPerSample'.
480
- * @private
481
- */
482
- public readonly bitsPerSample : string = 'BitsPerSample';
483
- /**
484
- * Specifies the value of 'patternType'.
485
- * @private
486
- */
487
- public readonly patternType : string = 'PatternType';
488
- /**
489
- * Specifies the value of 'paintType'.
490
- * @private
491
- */
492
- public readonly paintType : string = 'PaintType';
493
- /**
494
- * Specifies the value of 'tilingType'.
495
- * @private
496
- */
497
- public readonly tilingType : string = 'TilingType';
498
- /**
499
- * Specifies the value of 'xStep'.
500
- * @private
501
- */
502
- public readonly xStep : string = 'XStep';
503
- /**
504
- * Specifies the value of 'yStep'.
505
- * @private
506
- */
507
- public readonly yStep : string = 'YStep';
508
- /**
509
- * Initialize an instance for `PdfDictionaryProperties` class.
510
- * @private
511
- */
512
- public constructor() {
513
- //
514
- }
515
- }
@@ -1,194 +0,0 @@
1
- /**
2
- * PdfMainObjectCollection.ts class for EJ2-PDF
3
- */
4
- import { Dictionary } from './../collections/dictionary';
5
- import { PdfReference } from './../primitives/pdf-reference';
6
- import { IPdfPrimitive } from './../../interfaces/i-pdf-primitives';
7
- import { ObjectStatus } from './enum';
8
- /**
9
- * The collection of all `objects` within a PDF document.
10
- * @private
11
- */
12
- export class PdfMainObjectCollection {
13
- //Fields
14
- /**
15
- * The collection of the `indirect objects`.
16
- * @default []
17
- * @private
18
- */
19
- public objectCollections : ObjectInfo[] = [];
20
- /**
21
- * The collection of the `Indirect objects`.
22
- * @default new Dictionary<number, ObjectInfo>()
23
- * @private
24
- */
25
- public mainObjectCollection : Dictionary<number, ObjectInfo> = new Dictionary<number, ObjectInfo>();
26
- /**
27
- * The collection of `primitive objects`.
28
- * @private
29
- */
30
- public primitiveObjectCollection : Dictionary<IPdfPrimitive, number> = new Dictionary<IPdfPrimitive, number>();
31
- /**
32
- * Holds the `index of the object`.
33
- * @private
34
- */
35
- private index : number;
36
- /**
37
- * Stores the value of `IsNew`.
38
- * @private
39
- */
40
- private isNew : boolean;
41
- //Properties
42
- /**
43
- * Gets the `count`.
44
- * @private
45
- */
46
- public get count() : number {
47
- return this.objectCollections.length;
48
- }
49
- /**
50
- * Gets the value of `ObjectInfo` from object collection.
51
- * @private
52
- */
53
- public items(index : number) : ObjectInfo {
54
- return this.objectCollections[index];
55
- }
56
- //Methods
57
- /**
58
- * Specifies the value of `IsNew`.
59
- * @private
60
- */
61
- public get outIsNew() : boolean {
62
- return this.isNew;
63
- }
64
- /**
65
- * `Adds` the specified element.
66
- * @private
67
- */
68
- public add(element : IPdfPrimitive) : void {
69
- let objInfo : ObjectInfo = new ObjectInfo(element);
70
- this.objectCollections.push(objInfo);
71
- if (!this.primitiveObjectCollection.containsKey(element)) {
72
- this.primitiveObjectCollection.setValue(element, this.objectCollections.length - 1);
73
- }
74
- element.position = this.index = this.objectCollections.length - 1;
75
- element.status = ObjectStatus.Registered;
76
- }
77
- /**
78
- * `Looks` through the collection for the object specified.
79
- * @private
80
- */
81
- private lookFor(obj : IPdfPrimitive) : number {
82
- let index : number = -1;
83
- if (obj.position !== -1) {
84
- return obj.position;
85
- }
86
- if (this.primitiveObjectCollection.containsKey(obj) && this.count === this.primitiveObjectCollection.size()) {
87
- index = <number>this.primitiveObjectCollection.getValue(obj);
88
- } else {
89
- for (let i : number = this.count - 1; i >= 0; i--) {
90
- let oi : ObjectInfo = this.objectCollections[i];
91
- if (oi.object === obj) {
92
- index = i;
93
- break;
94
- }
95
- }
96
- }
97
- return index;
98
- }
99
- /**
100
- * Gets the `reference of the object`.
101
- * @private
102
- */
103
- public getReference(index : IPdfPrimitive, isNew : boolean) : {reference : PdfReference, wasNew : boolean} {
104
- this.index = this.lookFor(<IPdfPrimitive>index);
105
- let reference : PdfReference;
106
- this.isNew = false;
107
- let oi : ObjectInfo = this.objectCollections[this.index];
108
- reference = oi.reference;
109
- let obj : {reference : PdfReference, wasNew : boolean} = {reference : reference, wasNew : isNew};
110
- return obj;
111
- }
112
- /**
113
- * Tries to set the `reference to the object`.
114
- * @private
115
- */
116
- public trySetReference(obj : IPdfPrimitive, reference : PdfReference, found : boolean) : boolean {
117
- let result : boolean = true;
118
- found = true;
119
- this.index = this.lookFor(obj);
120
- let oi : ObjectInfo = this.objectCollections[this.index];
121
- oi.setReference(reference);
122
- return result;
123
- }
124
- public destroy() : void {
125
- for (let obj of this.objectCollections) {
126
- if (obj !== undefined) {
127
- obj.pdfObject.position = -1;
128
- obj.pdfObject.isSaving = undefined;
129
- obj.pdfObject.objectCollectionIndex = undefined;
130
- obj.pdfObject.position = undefined;
131
- }
132
- }
133
- this.objectCollections = [];
134
- this.mainObjectCollection = new Dictionary<number, ObjectInfo>();
135
- this.primitiveObjectCollection = new Dictionary<IPdfPrimitive, number>();
136
- }
137
- }
138
- export class ObjectInfo {
139
- //Fields
140
- /**
141
- * The `PDF object`.
142
- * @private
143
- */
144
- public pdfObject : IPdfPrimitive;
145
- /**
146
- * `Object number and generation number` of the object.
147
- * @private
148
- */
149
- private pdfReference : PdfReference;
150
- /**
151
- * Initializes a new instance of the `ObjectInfo` class.
152
- * @private
153
- */
154
- constructor()
155
- /**
156
- * Initializes a new instance of the `ObjectInfo` class.
157
- * @private
158
- */
159
- constructor(obj : IPdfPrimitive)
160
- /**
161
- * Initializes a new instance of the `ObjectInfo` class.
162
- * @private
163
- */
164
- constructor(obj : IPdfPrimitive, reference : PdfReference)
165
- constructor(obj? : IPdfPrimitive, reference? : PdfReference) {
166
- this.pdfObject = obj;
167
- this.pdfReference = reference;
168
- }
169
- //Properties
170
- /**
171
- * Gets the `object`.
172
- * @private
173
- */
174
- public get object() : IPdfPrimitive {
175
- return this.pdfObject;
176
- }
177
- public set object(value : IPdfPrimitive) {
178
- this.pdfObject = value;
179
- }
180
- /**
181
- * Gets the `reference`.
182
- * @private
183
- */
184
- public get reference() : PdfReference {
185
- return this.pdfReference;
186
- }
187
- /**
188
- * Sets the `reference`.
189
- * @private
190
- */
191
- public setReference(reference : PdfReference) : void {
192
- this.pdfReference = reference;
193
- }
194
- }