@syncfusion/ej2-pdf-export 20.2.45 → 20.3.47

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 (154) hide show
  1. package/dist/ej2-pdf-export.min.js +10 -0
  2. package/dist/ej2-pdf-export.umd.min.js +1 -1
  3. package/dist/global/ej2-pdf-export.min.js +1 -1
  4. package/dist/global/index.d.ts +1 -1
  5. package/dist/ts/implementation/actions/action.ts +76 -0
  6. package/dist/ts/implementation/actions/uri-action.ts +52 -0
  7. package/dist/ts/implementation/annotations/action-link-annotation.ts +43 -0
  8. package/dist/ts/implementation/annotations/annotation-collection.ts +159 -0
  9. package/dist/ts/implementation/annotations/annotation.ts +241 -0
  10. package/dist/ts/implementation/annotations/document-link-annotation.ts +118 -0
  11. package/dist/ts/implementation/annotations/link-annotation.ts +32 -0
  12. package/dist/ts/implementation/annotations/pdf-text-web-link.ts +265 -0
  13. package/dist/ts/implementation/annotations/uri-annotation.ts +86 -0
  14. package/dist/ts/implementation/collections/dictionary.ts +150 -0
  15. package/dist/ts/implementation/collections/object-object-pair/dictionary.ts +125 -0
  16. package/dist/ts/implementation/collections/utils.ts +38 -0
  17. package/dist/ts/implementation/document/automatic-fields/automatic-field-info-collection.ts +39 -0
  18. package/dist/ts/implementation/document/automatic-fields/automatic-field-info.ts +108 -0
  19. package/dist/ts/implementation/document/automatic-fields/automatic-field.ts +127 -0
  20. package/dist/ts/implementation/document/automatic-fields/composite-field.ts +76 -0
  21. package/dist/ts/implementation/document/automatic-fields/multiple-value-field.ts +37 -0
  22. package/dist/ts/implementation/document/automatic-fields/page-count-field.ts +75 -0
  23. package/dist/ts/implementation/document/automatic-fields/pdf-numbers-convertor.ts +157 -0
  24. package/dist/ts/implementation/document/automatic-fields/pdf-page-number-field.ts +82 -0
  25. package/dist/ts/implementation/document/automatic-fields/pdf-template-value-pair.ts +60 -0
  26. package/dist/ts/implementation/document/automatic-fields/single-value-field.ts +48 -0
  27. package/dist/ts/implementation/document/pdf-catalog.ts +52 -0
  28. package/dist/ts/implementation/document/pdf-document-base.ts +166 -0
  29. package/dist/ts/implementation/document/pdf-document-template.ts +310 -0
  30. package/dist/ts/implementation/document/pdf-document.ts +342 -0
  31. package/dist/ts/implementation/drawing/pdf-drawing.ts +218 -0
  32. package/dist/ts/implementation/general/enum.ts +21 -0
  33. package/dist/ts/implementation/general/functions/pdf-function.ts +66 -0
  34. package/dist/ts/implementation/general/functions/pdf-sampled-function.ts +62 -0
  35. package/dist/ts/implementation/general/pdf-cache-collection.ts +97 -0
  36. package/dist/ts/implementation/general/pdf-collection.ts +41 -0
  37. package/dist/ts/implementation/general/pdf-destination.ts +170 -0
  38. package/dist/ts/implementation/graphics/brushes/enum.ts +237 -0
  39. package/dist/ts/implementation/graphics/brushes/pdf-blend.ts +294 -0
  40. package/dist/ts/implementation/graphics/brushes/pdf-brush.ts +68 -0
  41. package/dist/ts/implementation/graphics/brushes/pdf-brushes.ts +2438 -0
  42. package/dist/ts/implementation/graphics/brushes/pdf-color-blend.ts +295 -0
  43. package/dist/ts/implementation/graphics/brushes/pdf-gradient-brush.ts +311 -0
  44. package/dist/ts/implementation/graphics/brushes/pdf-linear-gradient-brush.ts +406 -0
  45. package/dist/ts/implementation/graphics/brushes/pdf-radial-gradient-brush.ts +290 -0
  46. package/dist/ts/implementation/graphics/brushes/pdf-solid-brush.ts +107 -0
  47. package/dist/ts/implementation/graphics/brushes/pdf-tiling-brush.ts +304 -0
  48. package/dist/ts/implementation/graphics/constants.ts +31 -0
  49. package/dist/ts/implementation/graphics/enum.ts +413 -0
  50. package/dist/ts/implementation/graphics/figures/arc.ts +133 -0
  51. package/dist/ts/implementation/graphics/figures/base/draw-element.ts +59 -0
  52. package/dist/ts/implementation/graphics/figures/base/element-layouter.ts +260 -0
  53. package/dist/ts/implementation/graphics/figures/base/fill-element.ts +72 -0
  54. package/dist/ts/implementation/graphics/figures/base/graphics-element.ts +34 -0
  55. package/dist/ts/implementation/graphics/figures/base/pdf-shape-element.ts +69 -0
  56. package/dist/ts/implementation/graphics/figures/base/shape-layouter.ts +276 -0
  57. package/dist/ts/implementation/graphics/figures/base/text-layouter.ts +205 -0
  58. package/dist/ts/implementation/graphics/figures/ellipse-part.ts +76 -0
  59. package/dist/ts/implementation/graphics/figures/enum.ts +80 -0
  60. package/dist/ts/implementation/graphics/figures/layout-element.ts +132 -0
  61. package/dist/ts/implementation/graphics/figures/path.ts +646 -0
  62. package/dist/ts/implementation/graphics/figures/pdf-template.ts +205 -0
  63. package/dist/ts/implementation/graphics/figures/rectangle-area.ts +108 -0
  64. package/dist/ts/implementation/graphics/figures/text-element.ts +445 -0
  65. package/dist/ts/implementation/graphics/fonts/enum.ts +385 -0
  66. package/dist/ts/implementation/graphics/fonts/pdf-font-metrics.ts +248 -0
  67. package/dist/ts/implementation/graphics/fonts/pdf-font.ts +316 -0
  68. package/dist/ts/implementation/graphics/fonts/pdf-standard-font-metrics-factory.ts +606 -0
  69. package/dist/ts/implementation/graphics/fonts/pdf-standard-font.ts +243 -0
  70. package/dist/ts/implementation/graphics/fonts/pdf-string-format.ts +474 -0
  71. package/dist/ts/implementation/graphics/fonts/pdf-true-type-font.ts +165 -0
  72. package/dist/ts/implementation/graphics/fonts/rtl/rtl-bidirectional.ts +958 -0
  73. package/dist/ts/implementation/graphics/fonts/rtl/rtl-text-shape.ts +374 -0
  74. package/dist/ts/implementation/graphics/fonts/rtl-renderer.ts +255 -0
  75. package/dist/ts/implementation/graphics/fonts/string-layouter.ts +617 -0
  76. package/dist/ts/implementation/graphics/fonts/string-tokenizer.ts +275 -0
  77. package/dist/ts/implementation/graphics/fonts/ttf-OS2-Table.ts +206 -0
  78. package/dist/ts/implementation/graphics/fonts/ttf-apple-cmap-sub-table.ts +18 -0
  79. package/dist/ts/implementation/graphics/fonts/ttf-cmap-sub-table.ts +18 -0
  80. package/dist/ts/implementation/graphics/fonts/ttf-cmap-table.ts +14 -0
  81. package/dist/ts/implementation/graphics/fonts/ttf-glyph-header.ts +26 -0
  82. package/dist/ts/implementation/graphics/fonts/ttf-glyph-info.ts +35 -0
  83. package/dist/ts/implementation/graphics/fonts/ttf-head-table.ts +94 -0
  84. package/dist/ts/implementation/graphics/fonts/ttf-horizontal-header-table.ts +56 -0
  85. package/dist/ts/implementation/graphics/fonts/ttf-loca-table.ts +10 -0
  86. package/dist/ts/implementation/graphics/fonts/ttf-long-hor-metric.ts +14 -0
  87. package/dist/ts/implementation/graphics/fonts/ttf-metrics.ts +106 -0
  88. package/dist/ts/implementation/graphics/fonts/ttf-microsoft-cmap-sub-table.ts +58 -0
  89. package/dist/ts/implementation/graphics/fonts/ttf-name-record.ts +33 -0
  90. package/dist/ts/implementation/graphics/fonts/ttf-name-table.ts +22 -0
  91. package/dist/ts/implementation/graphics/fonts/ttf-post-table.ts +42 -0
  92. package/dist/ts/implementation/graphics/fonts/ttf-reader.ts +1254 -0
  93. package/dist/ts/implementation/graphics/fonts/ttf-table-info.ts +26 -0
  94. package/dist/ts/implementation/graphics/fonts/ttf-trimmed-cmap-sub-table.ts +26 -0
  95. package/dist/ts/implementation/graphics/fonts/unicode-true-type-font.ts +577 -0
  96. package/dist/ts/implementation/graphics/images/byte-array.ts +137 -0
  97. package/dist/ts/implementation/graphics/images/image-decoder.ts +437 -0
  98. package/dist/ts/implementation/graphics/images/pdf-bitmap.ts +110 -0
  99. package/dist/ts/implementation/graphics/images/pdf-image.ts +132 -0
  100. package/dist/ts/implementation/graphics/pdf-color.ts +478 -0
  101. package/dist/ts/implementation/graphics/pdf-graphics.ts +2424 -0
  102. package/dist/ts/implementation/graphics/pdf-margins.ts +124 -0
  103. package/dist/ts/implementation/graphics/pdf-pen.ts +370 -0
  104. package/dist/ts/implementation/graphics/pdf-resources.ts +300 -0
  105. package/dist/ts/implementation/graphics/pdf-transformation-matrix.ts +246 -0
  106. package/dist/ts/implementation/graphics/pdf-transparency.ts +93 -0
  107. package/dist/ts/implementation/graphics/unit-convertor.ts +96 -0
  108. package/dist/ts/implementation/input-output/big-endian-writer.ts +121 -0
  109. package/dist/ts/implementation/input-output/cross-table.ts +21 -0
  110. package/dist/ts/implementation/input-output/enum.ts +16 -0
  111. package/dist/ts/implementation/input-output/pdf-cross-table.ts +524 -0
  112. package/dist/ts/implementation/input-output/pdf-dictionary-properties.ts +515 -0
  113. package/dist/ts/implementation/input-output/pdf-main-object-collection.ts +194 -0
  114. package/dist/ts/implementation/input-output/pdf-operators.ts +363 -0
  115. package/dist/ts/implementation/input-output/pdf-stream-writer.ts +681 -0
  116. package/dist/ts/implementation/input-output/pdf-writer.ts +88 -0
  117. package/dist/ts/implementation/pages/enum.ts +201 -0
  118. package/dist/ts/implementation/pages/page-added-event-arguments.ts +39 -0
  119. package/dist/ts/implementation/pages/pdf-document-page-collection.ts +180 -0
  120. package/dist/ts/implementation/pages/pdf-page-base.ts +181 -0
  121. package/dist/ts/implementation/pages/pdf-page-layer-collection.ts +348 -0
  122. package/dist/ts/implementation/pages/pdf-page-layer.ts +271 -0
  123. package/dist/ts/implementation/pages/pdf-page-settings.ts +192 -0
  124. package/dist/ts/implementation/pages/pdf-page-size.ts +162 -0
  125. package/dist/ts/implementation/pages/pdf-page-template-element.ts +659 -0
  126. package/dist/ts/implementation/pages/pdf-page.ts +235 -0
  127. package/dist/ts/implementation/pages/pdf-section-collection.ts +187 -0
  128. package/dist/ts/implementation/pages/pdf-section-page-collection.ts +61 -0
  129. package/dist/ts/implementation/pages/pdf-section-templates.ts +96 -0
  130. package/dist/ts/implementation/pages/pdf-section.ts +644 -0
  131. package/dist/ts/implementation/primitives/pdf-array.ts +386 -0
  132. package/dist/ts/implementation/primitives/pdf-boolean.ts +119 -0
  133. package/dist/ts/implementation/primitives/pdf-dictionary.ts +513 -0
  134. package/dist/ts/implementation/primitives/pdf-name.ts +218 -0
  135. package/dist/ts/implementation/primitives/pdf-number.ts +165 -0
  136. package/dist/ts/implementation/primitives/pdf-reference.ts +430 -0
  137. package/dist/ts/implementation/primitives/pdf-stream.ts +336 -0
  138. package/dist/ts/implementation/primitives/pdf-string.ts +397 -0
  139. package/dist/ts/implementation/structured-elements/grid/layout/grid-layouter.ts +2027 -0
  140. package/dist/ts/implementation/structured-elements/grid/pdf-grid-cell.ts +1189 -0
  141. package/dist/ts/implementation/structured-elements/grid/pdf-grid-column.ts +206 -0
  142. package/dist/ts/implementation/structured-elements/grid/pdf-grid-row.ts +470 -0
  143. package/dist/ts/implementation/structured-elements/grid/pdf-grid.ts +853 -0
  144. package/dist/ts/implementation/structured-elements/grid/styles/pdf-borders.ts +240 -0
  145. package/dist/ts/implementation/structured-elements/grid/styles/style.ts +424 -0
  146. package/dist/ts/implementation/structured-elements/tables/light-tables/enum.ts +16 -0
  147. package/dist/ts/interfaces/i-pdf-cache.ts +23 -0
  148. package/dist/ts/interfaces/i-pdf-changable.ts +17 -0
  149. package/dist/ts/interfaces/i-pdf-clonable.ts +12 -0
  150. package/dist/ts/interfaces/i-pdf-primitives.ts +45 -0
  151. package/dist/ts/interfaces/i-pdf-true-type-font.ts +48 -0
  152. package/dist/ts/interfaces/i-pdf-wrapper.ts +13 -0
  153. package/dist/ts/interfaces/i-pdf-writer.ts +29 -0
  154. package/package.json +8 -7
@@ -0,0 +1,515 @@
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
+ }
@@ -0,0 +1,194 @@
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
+ }