@syncfusion/ej2-pdf-export 19.3.43 → 19.3.53

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 (166) hide show
  1. package/.eslintrc.json +1 -1
  2. package/CHANGELOG.md +167 -0
  3. package/README.md +1 -10
  4. package/dist/ej2-pdf-export.umd.min.js +1 -1
  5. package/dist/ej2-pdf-export.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-pdf-export.es2015.js +1 -2
  7. package/dist/es6/ej2-pdf-export.es2015.js.map +1 -1
  8. package/dist/es6/ej2-pdf-export.es5.js +1 -2
  9. package/dist/es6/ej2-pdf-export.es5.js.map +1 -1
  10. package/dist/global/ej2-pdf-export.min.js +1 -1
  11. package/dist/global/ej2-pdf-export.min.js.map +1 -1
  12. package/dist/global/index.d.ts +1 -1
  13. package/license +3 -0
  14. package/package.json +15 -7
  15. package/src/implementation/pages/pdf-section.d.ts +0 -1
  16. package/src/implementation/pages/pdf-section.js +0 -1
  17. package/src/implementation/structured-elements/grid/pdf-grid-cell.js +1 -1
  18. package/dist/ts/implementation/actions/action.ts +0 -76
  19. package/dist/ts/implementation/actions/uri-action.ts +0 -52
  20. package/dist/ts/implementation/annotations/action-link-annotation.ts +0 -43
  21. package/dist/ts/implementation/annotations/annotation-collection.ts +0 -159
  22. package/dist/ts/implementation/annotations/annotation.ts +0 -241
  23. package/dist/ts/implementation/annotations/document-link-annotation.ts +0 -118
  24. package/dist/ts/implementation/annotations/link-annotation.ts +0 -32
  25. package/dist/ts/implementation/annotations/pdf-text-web-link.ts +0 -265
  26. package/dist/ts/implementation/annotations/uri-annotation.ts +0 -86
  27. package/dist/ts/implementation/collections/dictionary.ts +0 -150
  28. package/dist/ts/implementation/collections/object-object-pair/dictionary.ts +0 -125
  29. package/dist/ts/implementation/collections/utils.ts +0 -38
  30. package/dist/ts/implementation/document/automatic-fields/automatic-field-info-collection.ts +0 -39
  31. package/dist/ts/implementation/document/automatic-fields/automatic-field-info.ts +0 -108
  32. package/dist/ts/implementation/document/automatic-fields/automatic-field.ts +0 -127
  33. package/dist/ts/implementation/document/automatic-fields/composite-field.ts +0 -76
  34. package/dist/ts/implementation/document/automatic-fields/multiple-value-field.ts +0 -37
  35. package/dist/ts/implementation/document/automatic-fields/page-count-field.ts +0 -75
  36. package/dist/ts/implementation/document/automatic-fields/pdf-numbers-convertor.ts +0 -157
  37. package/dist/ts/implementation/document/automatic-fields/pdf-page-number-field.ts +0 -82
  38. package/dist/ts/implementation/document/automatic-fields/pdf-template-value-pair.ts +0 -60
  39. package/dist/ts/implementation/document/automatic-fields/single-value-field.ts +0 -48
  40. package/dist/ts/implementation/document/pdf-catalog.ts +0 -52
  41. package/dist/ts/implementation/document/pdf-document-base.ts +0 -166
  42. package/dist/ts/implementation/document/pdf-document-template.ts +0 -310
  43. package/dist/ts/implementation/document/pdf-document.ts +0 -342
  44. package/dist/ts/implementation/drawing/pdf-drawing.ts +0 -218
  45. package/dist/ts/implementation/general/enum.ts +0 -21
  46. package/dist/ts/implementation/general/functions/pdf-function.ts +0 -66
  47. package/dist/ts/implementation/general/functions/pdf-sampled-function.ts +0 -62
  48. package/dist/ts/implementation/general/pdf-cache-collection.ts +0 -97
  49. package/dist/ts/implementation/general/pdf-collection.ts +0 -41
  50. package/dist/ts/implementation/general/pdf-destination.ts +0 -170
  51. package/dist/ts/implementation/graphics/brushes/enum.ts +0 -237
  52. package/dist/ts/implementation/graphics/brushes/pdf-blend.ts +0 -294
  53. package/dist/ts/implementation/graphics/brushes/pdf-brush.ts +0 -68
  54. package/dist/ts/implementation/graphics/brushes/pdf-brushes.ts +0 -2438
  55. package/dist/ts/implementation/graphics/brushes/pdf-color-blend.ts +0 -295
  56. package/dist/ts/implementation/graphics/brushes/pdf-gradient-brush.ts +0 -311
  57. package/dist/ts/implementation/graphics/brushes/pdf-linear-gradient-brush.ts +0 -406
  58. package/dist/ts/implementation/graphics/brushes/pdf-radial-gradient-brush.ts +0 -290
  59. package/dist/ts/implementation/graphics/brushes/pdf-solid-brush.ts +0 -107
  60. package/dist/ts/implementation/graphics/brushes/pdf-tiling-brush.ts +0 -304
  61. package/dist/ts/implementation/graphics/constants.ts +0 -31
  62. package/dist/ts/implementation/graphics/enum.ts +0 -413
  63. package/dist/ts/implementation/graphics/figures/arc.ts +0 -133
  64. package/dist/ts/implementation/graphics/figures/base/draw-element.ts +0 -59
  65. package/dist/ts/implementation/graphics/figures/base/element-layouter.ts +0 -260
  66. package/dist/ts/implementation/graphics/figures/base/fill-element.ts +0 -72
  67. package/dist/ts/implementation/graphics/figures/base/graphics-element.ts +0 -34
  68. package/dist/ts/implementation/graphics/figures/base/pdf-shape-element.ts +0 -69
  69. package/dist/ts/implementation/graphics/figures/base/shape-layouter.ts +0 -276
  70. package/dist/ts/implementation/graphics/figures/base/text-layouter.ts +0 -205
  71. package/dist/ts/implementation/graphics/figures/ellipse-part.ts +0 -76
  72. package/dist/ts/implementation/graphics/figures/enum.ts +0 -80
  73. package/dist/ts/implementation/graphics/figures/layout-element.ts +0 -132
  74. package/dist/ts/implementation/graphics/figures/path.ts +0 -646
  75. package/dist/ts/implementation/graphics/figures/pdf-template.ts +0 -205
  76. package/dist/ts/implementation/graphics/figures/rectangle-area.ts +0 -108
  77. package/dist/ts/implementation/graphics/figures/text-element.ts +0 -445
  78. package/dist/ts/implementation/graphics/fonts/enum.ts +0 -385
  79. package/dist/ts/implementation/graphics/fonts/pdf-font-metrics.ts +0 -248
  80. package/dist/ts/implementation/graphics/fonts/pdf-font.ts +0 -316
  81. package/dist/ts/implementation/graphics/fonts/pdf-standard-font-metrics-factory.ts +0 -606
  82. package/dist/ts/implementation/graphics/fonts/pdf-standard-font.ts +0 -243
  83. package/dist/ts/implementation/graphics/fonts/pdf-string-format.ts +0 -474
  84. package/dist/ts/implementation/graphics/fonts/pdf-true-type-font.ts +0 -165
  85. package/dist/ts/implementation/graphics/fonts/rtl/rtl-bidirectional.ts +0 -958
  86. package/dist/ts/implementation/graphics/fonts/rtl/rtl-text-shape.ts +0 -374
  87. package/dist/ts/implementation/graphics/fonts/rtl-renderer.ts +0 -255
  88. package/dist/ts/implementation/graphics/fonts/string-layouter.ts +0 -617
  89. package/dist/ts/implementation/graphics/fonts/string-tokenizer.ts +0 -275
  90. package/dist/ts/implementation/graphics/fonts/ttf-OS2-Table.ts +0 -206
  91. package/dist/ts/implementation/graphics/fonts/ttf-apple-cmap-sub-table.ts +0 -18
  92. package/dist/ts/implementation/graphics/fonts/ttf-cmap-sub-table.ts +0 -18
  93. package/dist/ts/implementation/graphics/fonts/ttf-cmap-table.ts +0 -14
  94. package/dist/ts/implementation/graphics/fonts/ttf-glyph-header.ts +0 -26
  95. package/dist/ts/implementation/graphics/fonts/ttf-glyph-info.ts +0 -35
  96. package/dist/ts/implementation/graphics/fonts/ttf-head-table.ts +0 -94
  97. package/dist/ts/implementation/graphics/fonts/ttf-horizontal-header-table.ts +0 -56
  98. package/dist/ts/implementation/graphics/fonts/ttf-loca-table.ts +0 -10
  99. package/dist/ts/implementation/graphics/fonts/ttf-long-hor-metric.ts +0 -14
  100. package/dist/ts/implementation/graphics/fonts/ttf-metrics.ts +0 -106
  101. package/dist/ts/implementation/graphics/fonts/ttf-microsoft-cmap-sub-table.ts +0 -58
  102. package/dist/ts/implementation/graphics/fonts/ttf-name-record.ts +0 -33
  103. package/dist/ts/implementation/graphics/fonts/ttf-name-table.ts +0 -22
  104. package/dist/ts/implementation/graphics/fonts/ttf-post-table.ts +0 -42
  105. package/dist/ts/implementation/graphics/fonts/ttf-reader.ts +0 -1254
  106. package/dist/ts/implementation/graphics/fonts/ttf-table-info.ts +0 -26
  107. package/dist/ts/implementation/graphics/fonts/ttf-trimmed-cmap-sub-table.ts +0 -26
  108. package/dist/ts/implementation/graphics/fonts/unicode-true-type-font.ts +0 -577
  109. package/dist/ts/implementation/graphics/images/byte-array.ts +0 -137
  110. package/dist/ts/implementation/graphics/images/image-decoder.ts +0 -437
  111. package/dist/ts/implementation/graphics/images/pdf-bitmap.ts +0 -110
  112. package/dist/ts/implementation/graphics/images/pdf-image.ts +0 -132
  113. package/dist/ts/implementation/graphics/pdf-color.ts +0 -478
  114. package/dist/ts/implementation/graphics/pdf-graphics.ts +0 -2424
  115. package/dist/ts/implementation/graphics/pdf-margins.ts +0 -124
  116. package/dist/ts/implementation/graphics/pdf-pen.ts +0 -370
  117. package/dist/ts/implementation/graphics/pdf-resources.ts +0 -300
  118. package/dist/ts/implementation/graphics/pdf-transformation-matrix.ts +0 -246
  119. package/dist/ts/implementation/graphics/pdf-transparency.ts +0 -93
  120. package/dist/ts/implementation/graphics/unit-convertor.ts +0 -96
  121. package/dist/ts/implementation/input-output/big-endian-writer.ts +0 -121
  122. package/dist/ts/implementation/input-output/cross-table.ts +0 -21
  123. package/dist/ts/implementation/input-output/enum.ts +0 -16
  124. package/dist/ts/implementation/input-output/pdf-cross-table.ts +0 -524
  125. package/dist/ts/implementation/input-output/pdf-dictionary-properties.ts +0 -515
  126. package/dist/ts/implementation/input-output/pdf-main-object-collection.ts +0 -194
  127. package/dist/ts/implementation/input-output/pdf-operators.ts +0 -363
  128. package/dist/ts/implementation/input-output/pdf-stream-writer.ts +0 -681
  129. package/dist/ts/implementation/input-output/pdf-writer.ts +0 -88
  130. package/dist/ts/implementation/pages/enum.ts +0 -201
  131. package/dist/ts/implementation/pages/page-added-event-arguments.ts +0 -39
  132. package/dist/ts/implementation/pages/pdf-document-page-collection.ts +0 -180
  133. package/dist/ts/implementation/pages/pdf-page-base.ts +0 -181
  134. package/dist/ts/implementation/pages/pdf-page-layer-collection.ts +0 -348
  135. package/dist/ts/implementation/pages/pdf-page-layer.ts +0 -271
  136. package/dist/ts/implementation/pages/pdf-page-settings.ts +0 -192
  137. package/dist/ts/implementation/pages/pdf-page-size.ts +0 -162
  138. package/dist/ts/implementation/pages/pdf-page-template-element.ts +0 -659
  139. package/dist/ts/implementation/pages/pdf-page.ts +0 -235
  140. package/dist/ts/implementation/pages/pdf-section-collection.ts +0 -187
  141. package/dist/ts/implementation/pages/pdf-section-page-collection.ts +0 -61
  142. package/dist/ts/implementation/pages/pdf-section-templates.ts +0 -96
  143. package/dist/ts/implementation/pages/pdf-section.ts +0 -644
  144. package/dist/ts/implementation/primitives/pdf-array.ts +0 -386
  145. package/dist/ts/implementation/primitives/pdf-boolean.ts +0 -119
  146. package/dist/ts/implementation/primitives/pdf-dictionary.ts +0 -513
  147. package/dist/ts/implementation/primitives/pdf-name.ts +0 -218
  148. package/dist/ts/implementation/primitives/pdf-number.ts +0 -165
  149. package/dist/ts/implementation/primitives/pdf-reference.ts +0 -430
  150. package/dist/ts/implementation/primitives/pdf-stream.ts +0 -336
  151. package/dist/ts/implementation/primitives/pdf-string.ts +0 -397
  152. package/dist/ts/implementation/structured-elements/grid/layout/grid-layouter.ts +0 -1998
  153. package/dist/ts/implementation/structured-elements/grid/pdf-grid-cell.ts +0 -1189
  154. package/dist/ts/implementation/structured-elements/grid/pdf-grid-column.ts +0 -206
  155. package/dist/ts/implementation/structured-elements/grid/pdf-grid-row.ts +0 -468
  156. package/dist/ts/implementation/structured-elements/grid/pdf-grid.ts +0 -839
  157. package/dist/ts/implementation/structured-elements/grid/styles/pdf-borders.ts +0 -240
  158. package/dist/ts/implementation/structured-elements/grid/styles/style.ts +0 -424
  159. package/dist/ts/implementation/structured-elements/tables/light-tables/enum.ts +0 -16
  160. package/dist/ts/interfaces/i-pdf-cache.ts +0 -23
  161. package/dist/ts/interfaces/i-pdf-changable.ts +0 -17
  162. package/dist/ts/interfaces/i-pdf-clonable.ts +0 -12
  163. package/dist/ts/interfaces/i-pdf-primitives.ts +0 -45
  164. package/dist/ts/interfaces/i-pdf-true-type-font.ts +0 -48
  165. package/dist/ts/interfaces/i-pdf-wrapper.ts +0 -13
  166. package/dist/ts/interfaces/i-pdf-writer.ts +0 -29
@@ -1,240 +0,0 @@
1
- /**
2
- * PdfBorders.ts class for EJ2-PDF
3
- */
4
- import { PdfPen } from './../../../graphics/pdf-pen';
5
- import { PdfDashStyle } from './../../../graphics/enum';
6
- import { PdfColor } from './../../../graphics/pdf-color';
7
- /**
8
- * `PdfBorders` class used represents the cell border of the PDF grid.
9
- */
10
- export class PdfBorders {
11
- // Fields
12
- /**
13
- * The `left` border.
14
- * @private
15
- */
16
- private leftPen : PdfPen;
17
- /**
18
- * The `right` border.
19
- * @private
20
- */
21
- private rightPen : PdfPen;
22
- /**
23
- * The `top` border.
24
- * @private
25
- */
26
- private topPen : PdfPen;
27
- /**
28
- * The `bottom` border.
29
- * @private
30
- */
31
- private bottomPen : PdfPen;
32
- // Properties
33
- /**
34
- * Gets or sets the `Left`.
35
- * @private
36
- */
37
- public get left() : PdfPen {
38
- return this.leftPen;
39
- }
40
- public set left(value : PdfPen) {
41
- this.leftPen = value;
42
- }
43
- /**
44
- * Gets or sets the `Right`.
45
- * @private
46
- */
47
- public get right() : PdfPen {
48
- return this.rightPen;
49
- }
50
- public set right(value : PdfPen) {
51
- this.rightPen = value;
52
- }
53
- /**
54
- * Gets or sets the `Top`.
55
- * @private
56
- */
57
- public get top() : PdfPen {
58
- return this.topPen;
59
- }
60
- public set top(value : PdfPen) {
61
- this.topPen = value;
62
- }
63
- /**
64
- * Gets or sets the `Bottom`.
65
- * @private
66
- */
67
- public get bottom() : PdfPen {
68
- return this.bottomPen;
69
- }
70
- public set bottom(value : PdfPen) {
71
- this.bottomPen = value;
72
- }
73
- /**
74
- * sets the `All`.
75
- * @private
76
- */
77
- public set all(value : PdfPen) {
78
- this.leftPen = this.rightPen = this.topPen = this.bottomPen = value;
79
- }
80
- /**
81
- * Gets a value indicating whether this instance `is all`.
82
- * @private
83
- */
84
- public get isAll() : boolean {
85
- return ((this.leftPen === this.rightPen) && (this.leftPen === this.topPen) && (this.leftPen === this.bottomPen));
86
- }
87
- /**
88
- * Gets the `default`.
89
- * @private
90
- */
91
- public static get default() : PdfBorders {
92
- return new PdfBorders();
93
- }
94
-
95
- // Constructor
96
- /**
97
- * Create a new instance for `PdfBorders` class.
98
- * @private
99
- */
100
- public constructor() {
101
- let defaultBorderPenLeft : PdfPen = new PdfPen(new PdfColor(0, 0, 0));
102
- defaultBorderPenLeft.dashStyle = PdfDashStyle.Solid;
103
- let defaultBorderPenRight : PdfPen = new PdfPen(new PdfColor(0, 0, 0));
104
- defaultBorderPenRight.dashStyle = PdfDashStyle.Solid;
105
- let defaultBorderPenTop : PdfPen = new PdfPen(new PdfColor(0, 0, 0));
106
- defaultBorderPenTop.dashStyle = PdfDashStyle.Solid;
107
- let defaultBorderPenBottom : PdfPen = new PdfPen(new PdfColor(0, 0, 0));
108
- defaultBorderPenBottom.dashStyle = PdfDashStyle.Solid;
109
- this.leftPen = defaultBorderPenLeft;
110
- this.rightPen = defaultBorderPenRight;
111
- this.topPen = defaultBorderPenTop;
112
- this.bottomPen = defaultBorderPenBottom;
113
- }
114
- }
115
- export class PdfPaddings {
116
- //Fields
117
- /**
118
- * The `left` padding.
119
- * @private
120
- */
121
- private leftPad : number;
122
- /**
123
- * The `right` padding.
124
- * @private
125
- */
126
- private rightPad : number;
127
- /**
128
- * The `top` padding.
129
- * @private
130
- */
131
- private topPad : number;
132
- /**
133
- * The `bottom` padding.
134
- * @private
135
- */
136
- private bottomPad : number;
137
- /**
138
- * The 'left' border padding set.
139
- * @private
140
- */
141
- public hasLeftPad : boolean = false;
142
- /**
143
- * The 'right' border padding set.
144
- * @private
145
- */
146
- public hasRightPad : boolean = false;
147
- /**
148
- * The 'top' border padding set.
149
- * @private
150
- */
151
- public hasTopPad : boolean = false;
152
- /**
153
- * The 'bottom' border padding set.
154
- * @private
155
- */
156
- public hasBottomPad : boolean = false;
157
- // Properties
158
- /**
159
- * Gets or sets the `left` value of the edge
160
- * @private
161
- */
162
- public get left() : number {
163
- return this.leftPad;
164
- }
165
- public set left(value : number) {
166
- this.leftPad = value;
167
- this.hasLeftPad = true;
168
- }
169
- /**
170
- * Gets or sets the `right` value of the edge.
171
- * @private
172
- */
173
- public get right() : number {
174
- return this.rightPad;
175
- }
176
- public set right(value : number) {
177
- this.rightPad = value;
178
- this.hasRightPad = true;
179
- }
180
- /**
181
- * Gets or sets the `top` value of the edge
182
- * @private
183
- */
184
- public get top() : number {
185
- return this.topPad;
186
- }
187
- public set top(value : number) {
188
- this.topPad = value;
189
- this.hasTopPad = true;
190
- }
191
- /**
192
- * Gets or sets the `bottom` value of the edge.
193
- * @private
194
- */
195
- public get bottom() : number {
196
- return this.bottomPad;
197
- }
198
- public set bottom(value : number) {
199
- this.bottomPad = value;
200
- this.hasBottomPad = true;
201
- }
202
- /**
203
- * Sets value to all sides `left,right,top and bottom`.s
204
- * @private
205
- */
206
- public set all(value : number) {
207
- this.leftPad = this.rightPad = this.topPad = this.bottomPad = value;
208
- this.hasLeftPad = true;
209
- this.hasRightPad = true;
210
- this.hasTopPad = true;
211
- this.hasBottomPad = true;
212
- }
213
- /**
214
- * Initializes a new instance of the `PdfPaddings` class.
215
- * @private
216
- */
217
- public constructor()
218
- /**
219
- * Initializes a new instance of the `PdfPaddings` class.
220
- * @private
221
- */
222
- public constructor(left : number, right : number, top : number, bottom : number)
223
- public constructor(left ?: number, right ?: number, top ?: number, bottom ?: number) {
224
- if (typeof left === 'undefined') {
225
- //5.76 and 0 are taken from ms-word default table margins.
226
- this.leftPad = this.rightPad = 5.76;
227
- //0.5 is set for top and bottom by default.
228
- this.bottomPad = this.topPad = 0.5;
229
- } else {
230
- this.leftPad = left;
231
- this.rightPad = right;
232
- this.topPad = top;
233
- this.bottomPad = bottom;
234
- this.hasLeftPad = true;
235
- this.hasRightPad = true;
236
- this.hasTopPad = true;
237
- this.hasBottomPad = true;
238
- }
239
- }
240
- }
@@ -1,424 +0,0 @@
1
- /**
2
- * PdfGridStyleBase.ts class for EJ2-PDF
3
- */
4
- import { PdfBrush } from './../../../graphics/brushes/pdf-brush';
5
- import { PdfPen } from './../../../graphics/pdf-pen';
6
- import { PdfFont } from './../../../graphics/fonts/pdf-font';
7
- import { PdfBorders, PdfPaddings } from './pdf-borders';
8
- import { PdfBorderOverlapStyle } from './../../tables/light-tables/enum';
9
- import { PdfStringFormat } from './../../../graphics/fonts/pdf-string-format';
10
- import { PdfGridRow } from './../pdf-grid-row';
11
- import { PdfImage } from './../../../graphics/images/pdf-image';
12
- /**
13
- * Base class for the `grid style`,
14
- */
15
- export abstract class PdfGridStyleBase {
16
- /**
17
- * @hidden
18
- * @private
19
- */
20
- private gridBackgroundBrush : PdfBrush;
21
- /**
22
- * @hidden
23
- * @private
24
- */
25
- private gridTextBrush : PdfBrush;
26
- /**
27
- * @hidden
28
- * @private
29
- */
30
- private gridTextPen : PdfPen;
31
- /**
32
- * @hidden
33
- * @private
34
- */
35
- private gridFont : PdfFont;
36
- /**
37
- * @hidden
38
- * @private
39
- */
40
- private gridBackgroundImage : PdfImage;
41
- // Properties
42
- /**
43
- * Gets or sets the `background brush`.
44
- * @private
45
- */
46
- public get backgroundBrush() : PdfBrush {
47
- return this.gridBackgroundBrush;
48
- }
49
- public set backgroundBrush(value : PdfBrush) {
50
- this.gridBackgroundBrush = value;
51
- }
52
- /**
53
- * Gets or sets the `text brush`.
54
- * @private
55
- */
56
- public get textBrush() : PdfBrush {
57
- return this.gridTextBrush;
58
- }
59
- public set textBrush(value : PdfBrush) {
60
- this.gridTextBrush = value;
61
- }
62
- /**
63
- * Gets or sets the `text pen`.
64
- * @private
65
- */
66
- public get textPen() : PdfPen {
67
- return this.gridTextPen;
68
- }
69
- public set textPen(value : PdfPen) {
70
- this.gridTextPen = value;
71
- }
72
- /**
73
- * Gets or sets the `font`.
74
- * @private
75
- */
76
- public get font() : PdfFont {
77
- return this.gridFont;
78
- }
79
- public set font(value : PdfFont) {
80
- this.gridFont = value;
81
- }
82
- /**
83
- * Gets or sets the `background Image`.
84
- * @private
85
- */
86
- public get backgroundImage() : PdfImage {
87
- return this.gridBackgroundImage;
88
- }
89
- public set backgroundImage(value : PdfImage) {
90
- this.gridBackgroundImage = value;
91
- }
92
- }
93
- /**
94
- * `PdfGridStyle` class provides customization of the appearance for the 'PdfGrid'.
95
- */
96
- export class PdfGridStyle extends PdfGridStyleBase {
97
- //Fields
98
- /**
99
- * @hidden
100
- * @private
101
- */
102
- private gridBorderOverlapStyle : PdfBorderOverlapStyle;
103
- /**
104
- * @hidden
105
- * @private
106
- */
107
- private gridHorizontalOverflowType : PdfHorizontalOverflowType;
108
- /**
109
- * @hidden
110
- * @private
111
- */
112
- private bAllowHorizontalOverflow : boolean;
113
- /**
114
- * @hidden
115
- * @private
116
- */
117
- private gridCellPadding : PdfPaddings;
118
- /**
119
- * @hidden
120
- * @private
121
- */
122
- private gridCellSpacing : number;
123
-
124
- //constructor
125
- /**
126
- * Initialize a new instance for `PdfGridStyle` class.
127
- * @private
128
- */
129
- public constructor() {
130
- super();
131
- this.gridBorderOverlapStyle = PdfBorderOverlapStyle.Overlap;
132
- this.bAllowHorizontalOverflow = false;
133
- this.gridHorizontalOverflowType = PdfHorizontalOverflowType.LastPage;
134
- }
135
-
136
- //Properties
137
- /**
138
- * Gets or sets the `cell spacing` of the 'PdfGrid'.
139
- * @private
140
- */
141
- public get cellSpacing() : number {
142
- if (typeof this.gridCellSpacing === 'undefined') {
143
- this.gridCellSpacing = 0;
144
- }
145
- return this.gridCellSpacing;
146
- }
147
- public set cellSpacing(value : number) {
148
- this.gridCellSpacing = value;
149
- }
150
- /**
151
- * Gets or sets the type of the `horizontal overflow` of the 'PdfGrid'.
152
- * @private
153
- */
154
- public get horizontalOverflowType() : PdfHorizontalOverflowType {
155
- return this.gridHorizontalOverflowType;
156
- }
157
- public set horizontalOverflowType(value : PdfHorizontalOverflowType) {
158
- this.gridHorizontalOverflowType = value;
159
- }
160
- /**
161
- * Gets or sets a value indicating whether to `allow horizontal overflow`.
162
- * @private
163
- */
164
- public get allowHorizontalOverflow() : boolean {
165
- return this.bAllowHorizontalOverflow;
166
- }
167
- public set allowHorizontalOverflow(value : boolean) {
168
- this.bAllowHorizontalOverflow = value;
169
- }
170
- /**
171
- * Gets or sets the `cell padding`.
172
- * @private
173
- */
174
- public get cellPadding() : PdfPaddings {
175
- if (typeof this.gridCellPadding === 'undefined') {
176
- this.gridCellPadding = new PdfPaddings();
177
- }
178
- return this.gridCellPadding;
179
- }
180
- public set cellPadding(value : PdfPaddings) {
181
- if (typeof this.gridCellPadding === 'undefined') {
182
- this.gridCellPadding = new PdfPaddings();
183
- this.gridCellPadding = value;
184
- } else {
185
- this.gridCellPadding = value;
186
- }
187
- }
188
- /**
189
- * Gets or sets the `border overlap style` of the 'PdfGrid'.
190
- * @private
191
- */
192
- public get borderOverlapStyle() : PdfBorderOverlapStyle {
193
- return this.gridBorderOverlapStyle;
194
- }
195
- public set borderOverlapStyle(value : PdfBorderOverlapStyle) {
196
- this.gridBorderOverlapStyle = value;
197
- }
198
- }
199
- /**
200
- * `PdfGridCellStyle` class provides customization of the appearance for the 'PdfGridCell'.
201
- */
202
- export class PdfGridCellStyle extends PdfGridStyleBase {
203
- /**
204
- * @hidden
205
- * @private
206
- */
207
- private gridCellBorders : PdfBorders = PdfBorders.default;
208
- /**
209
- * @hidden
210
- * @private
211
- */
212
- private gridCellPadding : PdfPaddings;
213
- /**
214
- * @hidden
215
- * @private
216
- */
217
- private format : PdfStringFormat;
218
- //Properties
219
- /**
220
- * Gets the `string format` of the 'PdfGridCell'.
221
- * @private
222
- */
223
- public get stringFormat() : PdfStringFormat {
224
- return this.format;
225
- }
226
- public set stringFormat(value : PdfStringFormat) {
227
- this.format = value;
228
- }
229
- /**
230
- * Gets or sets the `border` of the 'PdfGridCell'.
231
- * @private
232
- */
233
- public get borders() : PdfBorders {
234
- return this.gridCellBorders;
235
- }
236
- public set borders(value : PdfBorders) {
237
- this.gridCellBorders = value;
238
- }
239
- /**
240
- * Gets or sets the `cell padding`.
241
- * @private
242
- */
243
- public get cellPadding() : PdfPaddings {
244
- return this.gridCellPadding;
245
- }
246
- public set cellPadding(value : PdfPaddings) {
247
- if (this.gridCellPadding == null || typeof this.gridCellPadding === 'undefined') {
248
- this.gridCellPadding = new PdfPaddings();
249
- }
250
- this.gridCellPadding = value;
251
- }
252
- /**
253
- * Initializes a new instance of the `PdfGridCellStyle` class.
254
- * @private
255
- */
256
- public constructor() {
257
- super();
258
- }
259
- }
260
- /**
261
- * `PdfGridRowStyle` class provides customization of the appearance for the `PdfGridRow`.
262
- */
263
- export class PdfGridRowStyle {
264
- //Fields
265
- /**
266
- * @hidden
267
- * @private
268
- */
269
- private gridRowBackgroundBrush : PdfBrush;
270
- /**
271
- * @hidden
272
- * @private
273
- */
274
- private gridRowTextBrush : PdfBrush;
275
- /**
276
- * @hidden
277
- * @private
278
- */
279
- private gridRowTextPen : PdfPen;
280
- /**
281
- * @hidden
282
- * @private
283
- */
284
- private gridRowFont : PdfFont;
285
- /**
286
- * Specifies the `border` value of the current row.
287
- * @private
288
- */
289
- private gridRowBorder : PdfBorders;
290
- /**
291
- * Specifies the `parent row` of the current object.
292
- * @private
293
- */
294
- private parent : PdfGridRow;
295
- /**
296
- * @hidden
297
- * @private
298
- */
299
- private gridRowBackgroundImage : PdfImage;
300
- // Properties
301
- /**
302
- * Gets or sets the `background brush`.
303
- * @private
304
- */
305
- public get backgroundBrush() : PdfBrush {
306
- return this.gridRowBackgroundBrush;
307
- }
308
- public setBackgroundBrush(value : PdfBrush) : void {
309
- this.gridRowBackgroundBrush = value;
310
- if (typeof this.parent !== 'undefined') {
311
- for (let i : number = 0; i < this.parent.cells.count; i++) {
312
- this.parent.cells.getCell(i).style.backgroundBrush = value;
313
- }
314
- }
315
- }
316
- /**
317
- * Gets or sets the `text brush`.
318
- * @private
319
- */
320
- public get textBrush() : PdfBrush {
321
- return this.gridRowTextBrush;
322
- }
323
- public setTextBrush(value : PdfBrush) : void {
324
- this.gridRowTextBrush = value;
325
- if (typeof this.parent !== 'undefined') {
326
- for (let i : number = 0; i < this.parent.cells.count; i++) {
327
- this.parent.cells.getCell(i).style.textBrush = value;
328
- }
329
- }
330
- }
331
- /**
332
- * Gets or sets the `text pen`.
333
- * @private
334
- */
335
- public get textPen() : PdfPen {
336
- return this.gridRowTextPen;
337
- }
338
- public setTextPen(value : PdfPen) : void {
339
- this.gridRowTextPen = value;
340
- if (typeof this.parent !== 'undefined') {
341
- for (let i : number = 0; i < this.parent.cells.count; i++) {
342
- this.parent.cells.getCell(i).style.textPen = value;
343
- }
344
- }
345
- }
346
- /**
347
- * Gets or sets the `font`.
348
- * @private
349
- */
350
- public get font() : PdfFont {
351
- return this.gridRowFont;
352
- }
353
- public setFont(value : PdfFont) : void {
354
- this.gridRowFont = value;
355
- if (typeof this.parent !== 'undefined') {
356
- for (let i : number = 0; i < this.parent.cells.count; i++) {
357
- this.parent.cells.getCell(i).style.font = value;
358
- }
359
- }
360
- }
361
- /**
362
- * Gets or sets the `border` of the current row.
363
- * @private
364
- */
365
- public get border() : PdfBorders {
366
- if (typeof this.gridRowBorder === 'undefined') {
367
- this.setBorder(new PdfBorders());
368
- }
369
- return this.gridRowBorder;
370
- }
371
- public setBorder(value : PdfBorders) : void {
372
- this.gridRowBorder = value;
373
- if (typeof this.parent !== 'undefined') {
374
- for (let i : number = 0; i < this.parent.cells.count; i++) {
375
- this.parent.cells.getCell(i).style.borders = value;
376
- }
377
- }
378
- }
379
- /**
380
- * sets the `parent row` of the current object.
381
- * @private
382
- */
383
- public setParent(parent : PdfGridRow) : void {
384
- this.parent = parent;
385
- }
386
- /**
387
- * Gets or sets the `backgroundImage` of the 'PdfGridCell'.
388
- * @private
389
- */
390
- public get backgroundImage() : PdfImage {
391
- return this.gridRowBackgroundImage;
392
- }
393
- /**
394
- * sets the `backgroundImage` of the 'PdfGridCell'.
395
- * @private
396
- */
397
- public setBackgroundImage(value: PdfImage): void {
398
- this.gridRowBackgroundImage = value;
399
- }
400
- // Constructor
401
- /**
402
- * Initializes a new instance of the `PdfGridRowStyle` class.
403
- * @private
404
- */
405
- public constructor() {
406
- //
407
- }
408
- }
409
- /**
410
- * public Enum for `PdfHorizontalOverflowType`.
411
- * @private
412
- */
413
- export enum PdfHorizontalOverflowType {
414
- /**
415
- * Specifies the type of `NextPage`.
416
- * @private
417
- */
418
- NextPage,
419
- /**
420
- * Specifies the type of `LastPage`.
421
- * @private
422
- */
423
- LastPage
424
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * public Enum for `PdfBorderOverlapStyle`.
3
- * @private
4
- */
5
- export enum PdfBorderOverlapStyle {
6
- /**
7
- * Specifies the type of `Overlap`.
8
- * @private
9
- */
10
- Overlap,
11
- /**
12
- * Specifies the type of `Inside`.
13
- * @private
14
- */
15
- Inside,
16
- }
@@ -1,23 +0,0 @@
1
- /**
2
- * `IPdfCache.ts` interface for EJ2-PDF
3
- * Interface of the objects that support caching of their internals.
4
- * @private
5
- */
6
- import { IPdfPrimitive } from './i-pdf-primitives';
7
- export interface IPdfCache {
8
- /**
9
- * Checks whether the object `is similar to another object`.
10
- * @private
11
- */
12
- equalsTo(obj : IPdfCache) : boolean;
13
- /**
14
- * Returns `internals of the object`.
15
- * @private
16
- */
17
- getInternals() : IPdfPrimitive;
18
- /**
19
- * Sets `internals of the object`.
20
- * @private
21
- */
22
- setInternals(internals : IPdfPrimitive) : void;
23
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * `IPdfChangable.ts` interface for EJ2-PDF
3
- * Interface of the objects that support Changable of their internals.
4
- * @private
5
- */
6
- export interface IPdfChangable {
7
- /**
8
- * Gets a value indicating whether this 'IPdfChangable' `is changed`.
9
- * @private
10
- */
11
- changed() : boolean;
12
- /**
13
- * `Freezes the changes`.
14
- * @private
15
- */
16
- freezeChanges(freezer : Object) : void;
17
- }