@syncfusion/ej2-pdf-export 19.4.38 → 19.4.50
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.
- package/CHANGELOG.md +71 -0
- package/dist/ej2-pdf-export.umd.min.js +2 -2
- package/dist/ej2-pdf-export.umd.min.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es2015.js +65 -17
- package/dist/es6/ej2-pdf-export.es2015.js.map +1 -1
- package/dist/es6/ej2-pdf-export.es5.js +65 -17
- package/dist/es6/ej2-pdf-export.es5.js.map +1 -1
- package/dist/global/ej2-pdf-export.min.js +2 -2
- package/dist/global/ej2-pdf-export.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +6 -7
- package/src/implementation/structured-elements/grid/layout/grid-layouter.d.ts +1 -0
- package/src/implementation/structured-elements/grid/layout/grid-layouter.js +47 -15
- package/src/implementation/structured-elements/grid/pdf-grid-row.d.ts +1 -0
- package/src/implementation/structured-elements/grid/pdf-grid-row.js +4 -2
- package/src/implementation/structured-elements/grid/pdf-grid.js +14 -0
- package/dist/ts/implementation/actions/action.ts +0 -76
- package/dist/ts/implementation/actions/uri-action.ts +0 -52
- package/dist/ts/implementation/annotations/action-link-annotation.ts +0 -43
- package/dist/ts/implementation/annotations/annotation-collection.ts +0 -159
- package/dist/ts/implementation/annotations/annotation.ts +0 -241
- package/dist/ts/implementation/annotations/document-link-annotation.ts +0 -118
- package/dist/ts/implementation/annotations/link-annotation.ts +0 -32
- package/dist/ts/implementation/annotations/pdf-text-web-link.ts +0 -265
- package/dist/ts/implementation/annotations/uri-annotation.ts +0 -86
- package/dist/ts/implementation/collections/dictionary.ts +0 -150
- package/dist/ts/implementation/collections/object-object-pair/dictionary.ts +0 -125
- package/dist/ts/implementation/collections/utils.ts +0 -38
- package/dist/ts/implementation/document/automatic-fields/automatic-field-info-collection.ts +0 -39
- package/dist/ts/implementation/document/automatic-fields/automatic-field-info.ts +0 -108
- package/dist/ts/implementation/document/automatic-fields/automatic-field.ts +0 -127
- package/dist/ts/implementation/document/automatic-fields/composite-field.ts +0 -76
- package/dist/ts/implementation/document/automatic-fields/multiple-value-field.ts +0 -37
- package/dist/ts/implementation/document/automatic-fields/page-count-field.ts +0 -75
- package/dist/ts/implementation/document/automatic-fields/pdf-numbers-convertor.ts +0 -157
- package/dist/ts/implementation/document/automatic-fields/pdf-page-number-field.ts +0 -82
- package/dist/ts/implementation/document/automatic-fields/pdf-template-value-pair.ts +0 -60
- package/dist/ts/implementation/document/automatic-fields/single-value-field.ts +0 -48
- package/dist/ts/implementation/document/pdf-catalog.ts +0 -52
- package/dist/ts/implementation/document/pdf-document-base.ts +0 -166
- package/dist/ts/implementation/document/pdf-document-template.ts +0 -310
- package/dist/ts/implementation/document/pdf-document.ts +0 -342
- package/dist/ts/implementation/drawing/pdf-drawing.ts +0 -218
- package/dist/ts/implementation/general/enum.ts +0 -21
- package/dist/ts/implementation/general/functions/pdf-function.ts +0 -66
- package/dist/ts/implementation/general/functions/pdf-sampled-function.ts +0 -62
- package/dist/ts/implementation/general/pdf-cache-collection.ts +0 -97
- package/dist/ts/implementation/general/pdf-collection.ts +0 -41
- package/dist/ts/implementation/general/pdf-destination.ts +0 -170
- package/dist/ts/implementation/graphics/brushes/enum.ts +0 -237
- package/dist/ts/implementation/graphics/brushes/pdf-blend.ts +0 -294
- package/dist/ts/implementation/graphics/brushes/pdf-brush.ts +0 -68
- package/dist/ts/implementation/graphics/brushes/pdf-brushes.ts +0 -2438
- package/dist/ts/implementation/graphics/brushes/pdf-color-blend.ts +0 -295
- package/dist/ts/implementation/graphics/brushes/pdf-gradient-brush.ts +0 -311
- package/dist/ts/implementation/graphics/brushes/pdf-linear-gradient-brush.ts +0 -406
- package/dist/ts/implementation/graphics/brushes/pdf-radial-gradient-brush.ts +0 -290
- package/dist/ts/implementation/graphics/brushes/pdf-solid-brush.ts +0 -107
- package/dist/ts/implementation/graphics/brushes/pdf-tiling-brush.ts +0 -304
- package/dist/ts/implementation/graphics/constants.ts +0 -31
- package/dist/ts/implementation/graphics/enum.ts +0 -413
- package/dist/ts/implementation/graphics/figures/arc.ts +0 -133
- package/dist/ts/implementation/graphics/figures/base/draw-element.ts +0 -59
- package/dist/ts/implementation/graphics/figures/base/element-layouter.ts +0 -260
- package/dist/ts/implementation/graphics/figures/base/fill-element.ts +0 -72
- package/dist/ts/implementation/graphics/figures/base/graphics-element.ts +0 -34
- package/dist/ts/implementation/graphics/figures/base/pdf-shape-element.ts +0 -69
- package/dist/ts/implementation/graphics/figures/base/shape-layouter.ts +0 -276
- package/dist/ts/implementation/graphics/figures/base/text-layouter.ts +0 -205
- package/dist/ts/implementation/graphics/figures/ellipse-part.ts +0 -76
- package/dist/ts/implementation/graphics/figures/enum.ts +0 -80
- package/dist/ts/implementation/graphics/figures/layout-element.ts +0 -132
- package/dist/ts/implementation/graphics/figures/path.ts +0 -646
- package/dist/ts/implementation/graphics/figures/pdf-template.ts +0 -205
- package/dist/ts/implementation/graphics/figures/rectangle-area.ts +0 -108
- package/dist/ts/implementation/graphics/figures/text-element.ts +0 -445
- package/dist/ts/implementation/graphics/fonts/enum.ts +0 -385
- package/dist/ts/implementation/graphics/fonts/pdf-font-metrics.ts +0 -248
- package/dist/ts/implementation/graphics/fonts/pdf-font.ts +0 -316
- package/dist/ts/implementation/graphics/fonts/pdf-standard-font-metrics-factory.ts +0 -606
- package/dist/ts/implementation/graphics/fonts/pdf-standard-font.ts +0 -243
- package/dist/ts/implementation/graphics/fonts/pdf-string-format.ts +0 -474
- package/dist/ts/implementation/graphics/fonts/pdf-true-type-font.ts +0 -165
- package/dist/ts/implementation/graphics/fonts/rtl/rtl-bidirectional.ts +0 -958
- package/dist/ts/implementation/graphics/fonts/rtl/rtl-text-shape.ts +0 -374
- package/dist/ts/implementation/graphics/fonts/rtl-renderer.ts +0 -255
- package/dist/ts/implementation/graphics/fonts/string-layouter.ts +0 -617
- package/dist/ts/implementation/graphics/fonts/string-tokenizer.ts +0 -275
- package/dist/ts/implementation/graphics/fonts/ttf-OS2-Table.ts +0 -206
- package/dist/ts/implementation/graphics/fonts/ttf-apple-cmap-sub-table.ts +0 -18
- package/dist/ts/implementation/graphics/fonts/ttf-cmap-sub-table.ts +0 -18
- package/dist/ts/implementation/graphics/fonts/ttf-cmap-table.ts +0 -14
- package/dist/ts/implementation/graphics/fonts/ttf-glyph-header.ts +0 -26
- package/dist/ts/implementation/graphics/fonts/ttf-glyph-info.ts +0 -35
- package/dist/ts/implementation/graphics/fonts/ttf-head-table.ts +0 -94
- package/dist/ts/implementation/graphics/fonts/ttf-horizontal-header-table.ts +0 -56
- package/dist/ts/implementation/graphics/fonts/ttf-loca-table.ts +0 -10
- package/dist/ts/implementation/graphics/fonts/ttf-long-hor-metric.ts +0 -14
- package/dist/ts/implementation/graphics/fonts/ttf-metrics.ts +0 -106
- package/dist/ts/implementation/graphics/fonts/ttf-microsoft-cmap-sub-table.ts +0 -58
- package/dist/ts/implementation/graphics/fonts/ttf-name-record.ts +0 -33
- package/dist/ts/implementation/graphics/fonts/ttf-name-table.ts +0 -22
- package/dist/ts/implementation/graphics/fonts/ttf-post-table.ts +0 -42
- package/dist/ts/implementation/graphics/fonts/ttf-reader.ts +0 -1254
- package/dist/ts/implementation/graphics/fonts/ttf-table-info.ts +0 -26
- package/dist/ts/implementation/graphics/fonts/ttf-trimmed-cmap-sub-table.ts +0 -26
- package/dist/ts/implementation/graphics/fonts/unicode-true-type-font.ts +0 -577
- package/dist/ts/implementation/graphics/images/byte-array.ts +0 -137
- package/dist/ts/implementation/graphics/images/image-decoder.ts +0 -437
- package/dist/ts/implementation/graphics/images/pdf-bitmap.ts +0 -110
- package/dist/ts/implementation/graphics/images/pdf-image.ts +0 -132
- package/dist/ts/implementation/graphics/pdf-color.ts +0 -478
- package/dist/ts/implementation/graphics/pdf-graphics.ts +0 -2424
- package/dist/ts/implementation/graphics/pdf-margins.ts +0 -124
- package/dist/ts/implementation/graphics/pdf-pen.ts +0 -370
- package/dist/ts/implementation/graphics/pdf-resources.ts +0 -300
- package/dist/ts/implementation/graphics/pdf-transformation-matrix.ts +0 -246
- package/dist/ts/implementation/graphics/pdf-transparency.ts +0 -93
- package/dist/ts/implementation/graphics/unit-convertor.ts +0 -96
- package/dist/ts/implementation/input-output/big-endian-writer.ts +0 -121
- package/dist/ts/implementation/input-output/cross-table.ts +0 -21
- package/dist/ts/implementation/input-output/enum.ts +0 -16
- package/dist/ts/implementation/input-output/pdf-cross-table.ts +0 -524
- package/dist/ts/implementation/input-output/pdf-dictionary-properties.ts +0 -515
- package/dist/ts/implementation/input-output/pdf-main-object-collection.ts +0 -194
- package/dist/ts/implementation/input-output/pdf-operators.ts +0 -363
- package/dist/ts/implementation/input-output/pdf-stream-writer.ts +0 -681
- package/dist/ts/implementation/input-output/pdf-writer.ts +0 -88
- package/dist/ts/implementation/pages/enum.ts +0 -201
- package/dist/ts/implementation/pages/page-added-event-arguments.ts +0 -39
- package/dist/ts/implementation/pages/pdf-document-page-collection.ts +0 -180
- package/dist/ts/implementation/pages/pdf-page-base.ts +0 -181
- package/dist/ts/implementation/pages/pdf-page-layer-collection.ts +0 -348
- package/dist/ts/implementation/pages/pdf-page-layer.ts +0 -271
- package/dist/ts/implementation/pages/pdf-page-settings.ts +0 -192
- package/dist/ts/implementation/pages/pdf-page-size.ts +0 -162
- package/dist/ts/implementation/pages/pdf-page-template-element.ts +0 -659
- package/dist/ts/implementation/pages/pdf-page.ts +0 -235
- package/dist/ts/implementation/pages/pdf-section-collection.ts +0 -187
- package/dist/ts/implementation/pages/pdf-section-page-collection.ts +0 -61
- package/dist/ts/implementation/pages/pdf-section-templates.ts +0 -96
- package/dist/ts/implementation/pages/pdf-section.ts +0 -644
- package/dist/ts/implementation/primitives/pdf-array.ts +0 -386
- package/dist/ts/implementation/primitives/pdf-boolean.ts +0 -119
- package/dist/ts/implementation/primitives/pdf-dictionary.ts +0 -513
- package/dist/ts/implementation/primitives/pdf-name.ts +0 -218
- package/dist/ts/implementation/primitives/pdf-number.ts +0 -165
- package/dist/ts/implementation/primitives/pdf-reference.ts +0 -430
- package/dist/ts/implementation/primitives/pdf-stream.ts +0 -336
- package/dist/ts/implementation/primitives/pdf-string.ts +0 -397
- package/dist/ts/implementation/structured-elements/grid/layout/grid-layouter.ts +0 -1998
- package/dist/ts/implementation/structured-elements/grid/pdf-grid-cell.ts +0 -1189
- package/dist/ts/implementation/structured-elements/grid/pdf-grid-column.ts +0 -206
- package/dist/ts/implementation/structured-elements/grid/pdf-grid-row.ts +0 -468
- package/dist/ts/implementation/structured-elements/grid/pdf-grid.ts +0 -839
- package/dist/ts/implementation/structured-elements/grid/styles/pdf-borders.ts +0 -240
- package/dist/ts/implementation/structured-elements/grid/styles/style.ts +0 -424
- package/dist/ts/implementation/structured-elements/tables/light-tables/enum.ts +0 -16
- package/dist/ts/interfaces/i-pdf-cache.ts +0 -23
- package/dist/ts/interfaces/i-pdf-changable.ts +0 -17
- package/dist/ts/interfaces/i-pdf-clonable.ts +0 -12
- package/dist/ts/interfaces/i-pdf-primitives.ts +0 -45
- package/dist/ts/interfaces/i-pdf-true-type-font.ts +0 -48
- package/dist/ts/interfaces/i-pdf-wrapper.ts +0 -13
- package/dist/ts/interfaces/i-pdf-writer.ts +0 -29
|
@@ -30585,6 +30585,7 @@ var PdfGridRow = /** @__PURE__ @class */ (function () {
|
|
|
30585
30585
|
this.isRowMergeComplete = true;
|
|
30586
30586
|
this.repeatFlag = false;
|
|
30587
30587
|
this.rowFontSplit = false;
|
|
30588
|
+
this.isHeaderRow = false;
|
|
30588
30589
|
this.pdfGrid = grid;
|
|
30589
30590
|
}
|
|
30590
30591
|
Object.defineProperty(PdfGridRow.prototype, "rowSpanExists", {
|
|
@@ -30813,10 +30814,10 @@ var PdfGridRow = /** @__PURE__ @class */ (function () {
|
|
|
30813
30814
|
this.rowMergeComplete = false;
|
|
30814
30815
|
if (cell.rowSpan > 1) {
|
|
30815
30816
|
var cellIn = i;
|
|
30816
|
-
var rowin = this.grid.rows.rowCollection.indexOf(this);
|
|
30817
|
+
var rowin = this.isHeaderRow ? this.grid.headers.indexOf(this) : this.grid.rows.rowCollection.indexOf(this);
|
|
30817
30818
|
for (var j = 0; j < cell.rowSpan; j++) {
|
|
30818
30819
|
if ((j + 1) < cell.rowSpan) {
|
|
30819
|
-
this.grid.rows.getRow(rowin + j + 1).cells.getCell(cellIn).hasRowSpan = true;
|
|
30820
|
+
(this.isHeaderRow ? this.grid.headers.getHeader(rowin + j + 1) : this.grid.rows.getRow(rowin + j + 1)).cells.getCell(cellIn).hasRowSpan = true;
|
|
30820
30821
|
}
|
|
30821
30822
|
}
|
|
30822
30823
|
if (maxHeight < cell.height) {
|
|
@@ -30959,6 +30960,7 @@ var PdfGridHeaderCollection = /** @__PURE__ @class */ (function () {
|
|
|
30959
30960
|
var row = void 0;
|
|
30960
30961
|
for (var i = 0; i < arg; i++) {
|
|
30961
30962
|
row = new PdfGridRow(this.grid);
|
|
30963
|
+
row.isHeaderRow = true;
|
|
30962
30964
|
for (var j = 0; j < this.grid.columns.count; j++) {
|
|
30963
30965
|
row.cells.add(new PdfGridCell());
|
|
30964
30966
|
}
|
|
@@ -31320,6 +31322,20 @@ var PdfGrid = /** @__PURE__ @class */ (function (_super) {
|
|
|
31320
31322
|
* @private
|
|
31321
31323
|
*/
|
|
31322
31324
|
PdfGrid.prototype.layout = function (param) {
|
|
31325
|
+
var width = param.bounds.width;
|
|
31326
|
+
var height = param.bounds.height;
|
|
31327
|
+
var hasChanged = false;
|
|
31328
|
+
if (typeof param.bounds.width === 'undefined' || param.bounds.width === 0) {
|
|
31329
|
+
width = param.page.getClientSize().width - param.bounds.x;
|
|
31330
|
+
hasChanged = true;
|
|
31331
|
+
}
|
|
31332
|
+
if (typeof param.bounds.height === 'undefined' || param.bounds.height === 0) {
|
|
31333
|
+
height = param.page.getClientSize().height - param.bounds.y;
|
|
31334
|
+
hasChanged = true;
|
|
31335
|
+
}
|
|
31336
|
+
if (hasChanged) {
|
|
31337
|
+
param.bounds = new RectangleF(param.bounds.x, param.bounds.y, width, height);
|
|
31338
|
+
}
|
|
31323
31339
|
if (this.rows.count !== 0) {
|
|
31324
31340
|
var currentRow = this.rows.getRow(0).cells.getCell(0).style;
|
|
31325
31341
|
if (currentRow.borders != null && ((currentRow.borders.left != null && currentRow.borders.left.width !== 1) ||
|
|
@@ -31895,7 +31911,10 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
31895
31911
|
var index = 0;
|
|
31896
31912
|
index = this.currentGraphics.page.section.indexOf(this.currentGraphics.page);
|
|
31897
31913
|
this.listOfNavigatePages.push(index);
|
|
31898
|
-
if (
|
|
31914
|
+
if (typeof param.bounds !== 'undefined' && param.bounds !== null && (!(param.bounds.x === 0 && param.bounds.y === 0 && param.bounds.width === 0 && param.bounds.height === 0))) {
|
|
31915
|
+
this.currentBounds = new RectangleF(new PointF(param.bounds.x, param.bounds.y), new SizeF(param.bounds.width, param.bounds.height));
|
|
31916
|
+
}
|
|
31917
|
+
else if (format != null && format.break === PdfLayoutBreakType.FitColumnsToPage) {
|
|
31899
31918
|
this.currentBounds = new RectangleF(new PointF(param.bounds.x, param.bounds.y), new SizeF(this.Grid.columns.width, this.currentGraphics.clientSize.height));
|
|
31900
31919
|
}
|
|
31901
31920
|
else {
|
|
@@ -31935,7 +31954,12 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
31935
31954
|
}
|
|
31936
31955
|
if (!this.Grid.style.allowHorizontalOverflow) {
|
|
31937
31956
|
this.columnRanges = [];
|
|
31938
|
-
this.Grid.
|
|
31957
|
+
if (typeof this.Grid.isChildGrid !== 'undefined' && typeof this.Grid.isChildGrid) {
|
|
31958
|
+
this.Grid.measureColumnsWidth(this.currentBounds);
|
|
31959
|
+
}
|
|
31960
|
+
else {
|
|
31961
|
+
this.Grid.measureColumnsWidth(new RectangleF(this.currentBounds.x, this.currentBounds.y, this.currentBounds.x + this.currentBounds.width, this.currentBounds.height));
|
|
31962
|
+
}
|
|
31939
31963
|
this.columnRanges.push([0, this.Grid.columns.count - 1]);
|
|
31940
31964
|
}
|
|
31941
31965
|
else {
|
|
@@ -32321,7 +32345,7 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
32321
32345
|
}
|
|
32322
32346
|
row.grid.splitChildRowIndex = -1;
|
|
32323
32347
|
row.grid.isGridSplit = false;
|
|
32324
|
-
rowResult.isFinish =
|
|
32348
|
+
rowResult.isFinish = this.checkIsFisished(row);
|
|
32325
32349
|
//row.NestedGridLayoutResult.bounds.height = row.rowBreakHeightValue;
|
|
32326
32350
|
//this.currentBounds.y = rowResult.bounds.y;
|
|
32327
32351
|
for (var i_4 = 0; i_4 < row.cells.count; i_4++) {
|
|
@@ -32380,9 +32404,10 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
32380
32404
|
{
|
|
32381
32405
|
this.currentBounds.y = format == null ? 0 : format.paginateBounds.y;
|
|
32382
32406
|
|
|
32383
|
-
}
|
|
32384
|
-
|
|
32385
|
-
|
|
32407
|
+
}*/
|
|
32408
|
+
if (this.raiseBeforePageLayout(this.currentPage, this.currentBounds, this.currentRowIndex).returnValue) {
|
|
32409
|
+
break;
|
|
32410
|
+
}
|
|
32386
32411
|
if ((param.format !== null) && !param.format.usePaginateBounds && param.bounds !== null &&
|
|
32387
32412
|
param.bounds.height > 0 && !this.Grid.isChildGrid) {
|
|
32388
32413
|
this.currentBounds.height = param.bounds.height;
|
|
@@ -32392,6 +32417,11 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
32392
32417
|
}
|
|
32393
32418
|
else {
|
|
32394
32419
|
this.currentBounds.y = format == null ? 0 : format.paginateBounds.y;
|
|
32420
|
+
if (format != null && (format.paginateBounds.x !== 0 || format.paginateBounds.y !== 0 || format.paginateBounds.height !== 0 || format.paginateBounds.width !== 0)) {
|
|
32421
|
+
this.currentBounds.x = format.paginateBounds.x;
|
|
32422
|
+
this.currentBounds.width = format.paginateBounds.width;
|
|
32423
|
+
this.currentBounds.height = format.paginateBounds.height;
|
|
32424
|
+
}
|
|
32395
32425
|
}
|
|
32396
32426
|
if (typeof param.format !== 'undefined' && (param.format !== null) && typeof param.format.usePaginateBounds !== 'undefined' && !param.format.usePaginateBounds && param.bounds !== null &&
|
|
32397
32427
|
param.bounds.y > 0 && !this.Grid.isChildGrid) {
|
|
@@ -32540,6 +32570,15 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
32540
32570
|
this.raisePageLayouted(result);
|
|
32541
32571
|
return result;
|
|
32542
32572
|
};
|
|
32573
|
+
PdfGridLayouter.prototype.checkIsFisished = function (row) {
|
|
32574
|
+
var result = true;
|
|
32575
|
+
for (var i = 0; i < row.cells.count; i++) {
|
|
32576
|
+
if (!row.cells.getCell(i).FinishedDrawingCell) {
|
|
32577
|
+
result = false;
|
|
32578
|
+
}
|
|
32579
|
+
}
|
|
32580
|
+
return result;
|
|
32581
|
+
};
|
|
32543
32582
|
/* tslint:enable */
|
|
32544
32583
|
/**
|
|
32545
32584
|
* Gets the `next page`.
|
|
@@ -32621,7 +32660,7 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
32621
32660
|
for (var i = 0; i < layoutedPages.size(); i++) {
|
|
32622
32661
|
for (var j = i, count_1 = (layoutedPages.size() / this.columnRanges.length); j < layoutedPages.size(); j += count_1) {
|
|
32623
32662
|
var page = pages[j];
|
|
32624
|
-
if (document.pages.indexOf(page) === -1) {
|
|
32663
|
+
if (typeof page !== 'undefined' && document.pages.indexOf(page) === -1) {
|
|
32625
32664
|
document.pages.add(page);
|
|
32626
32665
|
}
|
|
32627
32666
|
}
|
|
@@ -32683,7 +32722,7 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
32683
32722
|
// new SizeF(args.Bounds.width + args.Bounds.x ,
|
|
32684
32723
|
// args.Bounds.height)));
|
|
32685
32724
|
// }
|
|
32686
|
-
cancel = args.cancel;
|
|
32725
|
+
cancel = (typeof args.cancel === 'undefined' ? false : args.cancel);
|
|
32687
32726
|
currentBounds = args.bounds;
|
|
32688
32727
|
currentRow = args.startRowIndex;
|
|
32689
32728
|
}
|
|
@@ -32741,7 +32780,7 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
32741
32780
|
// }
|
|
32742
32781
|
}
|
|
32743
32782
|
var calculatedHeight = row.rowBreakHeight > 0.0 ? row.rowBreakHeight : row.height;
|
|
32744
|
-
if (this.Grid.isChildGrid && this.Grid.ParentCell != null) {
|
|
32783
|
+
if (typeof this.Grid.isChildGrid !== 'undefined' && this.Grid.isChildGrid && typeof this.Grid.ParentCell !== 'undefined' && this.Grid.ParentCell != null) {
|
|
32745
32784
|
//Split row only if row height exceeds page height and AllowRowBreakAcrossPages is true.
|
|
32746
32785
|
// if (calculatedHeight + this.Grid.ParentCell.row.grid.style.cellPadding.bottom +
|
|
32747
32786
|
// this.Grid.ParentCell.row.grid.style.cellPadding.top > this.currentPageBounds.height) {
|
|
@@ -32771,7 +32810,7 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
32771
32810
|
+ calculatedHeight > this.currentBounds.height || this.currentBounds.y +
|
|
32772
32811
|
this.Grid.ParentCell.row.grid.style.cellPadding.bottom + rowHeightWithSpan > this.currentPageBounds.height) {
|
|
32773
32812
|
//If a row is repeated and still cannot fit in page, proceed draw.
|
|
32774
|
-
if (this.Grid.ParentCell.row.grid.LayoutFormat.break === PdfLayoutBreakType.FitPage) {
|
|
32813
|
+
if (typeof this.Grid.ParentCell.row.grid.LayoutFormat !== 'undefined' && this.Grid.ParentCell.row.grid.LayoutFormat.break === PdfLayoutBreakType.FitPage) {
|
|
32775
32814
|
PdfGridLayouter.repeatRowIndex = this.Grid.rows.rowCollection.indexOf(row);
|
|
32776
32815
|
this.Grid.splitChildRowIndex = this.Grid.rows.rowCollection.indexOf(row);
|
|
32777
32816
|
}
|
|
@@ -32841,7 +32880,7 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
32841
32880
|
// If a row is repeated and still cannot fit in page, proceed draw.
|
|
32842
32881
|
var isFit = false;
|
|
32843
32882
|
if ((this.Grid.allowRowBreakAcrossPages && !this.Grid.repeatHeader && !row.isRowHeightSet && !row.rowMergeComplete)) {
|
|
32844
|
-
if (this.Grid.LayoutFormat !== null && this.Grid.LayoutFormat.paginateBounds.height > 0
|
|
32883
|
+
if (this.Grid.LayoutFormat !== null && this.Grid.LayoutFormat.paginateBounds.height > 0) {
|
|
32845
32884
|
isFit = this.isFitToCell((this.currentBounds.height + this.startLocation.y) - this.currentBounds.y, this.Grid, row);
|
|
32846
32885
|
}
|
|
32847
32886
|
else
|
|
@@ -32999,7 +33038,18 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
32999
33038
|
isFit = false;
|
|
33000
33039
|
break;
|
|
33001
33040
|
}
|
|
33002
|
-
|
|
33041
|
+
if (gridRow.cells.getCell(i).style != null && gridRow.cells.getCell(i).style.borders != null && gridRow.cells.getCell(i).style.borders.top != null && gridRow.cells.getCell(i).style.borders.bottom != null)
|
|
33042
|
+
height += (gridRow.cells.getCell(i).style.borders.top.width + gridRow.cells.getCell(i).style.borders.bottom.width) * 2;
|
|
33043
|
+
if (this.slr.lineCount > 1 && gridRow.cells.getCell(i).stringFormat != null && gridRow.cells.getCell(i).stringFormat.lineSpacing != 0)
|
|
33044
|
+
height += (this.slr.lineCount - 1) * (gridRow.cells.getCell(i).style.stringFormat.lineSpacing);
|
|
33045
|
+
if (gridRow.cells.getCell(i).style.cellPadding == null) {
|
|
33046
|
+
height += (grid.style.cellPadding.top + grid.style.cellPadding.bottom);
|
|
33047
|
+
}
|
|
33048
|
+
else {
|
|
33049
|
+
height += (grid.style.cellPadding.top + grid.style.cellPadding.bottom);
|
|
33050
|
+
}
|
|
33051
|
+
height += grid.style.cellSpacing;
|
|
33052
|
+
if (currentHeight > height || (typeof this.slr.remainder !== 'undefined' && this.slr.remainder !== null)) {
|
|
33003
33053
|
isFit = true;
|
|
33004
33054
|
break;
|
|
33005
33055
|
}
|
|
@@ -33063,9 +33113,7 @@ var PdfGridLayouter = /** @__PURE__ @class */ (function (_super) {
|
|
|
33063
33113
|
if (stringResult != null && typeof stringResult.remainder !== 'undefined') {
|
|
33064
33114
|
row.cells.getCell(i).FinishedDrawingCell = false;
|
|
33065
33115
|
row.cells.getCell(i).remainingString = stringResult.remainder == null ? ' ' : stringResult.remainder;
|
|
33066
|
-
|
|
33067
|
-
row.rowBreakHeight = calculateHeight - stringResult.actualSize.height;
|
|
33068
|
-
}
|
|
33116
|
+
row.rowBreakHeight = calculateHeight - stringResult.actualSize.height;
|
|
33069
33117
|
}
|
|
33070
33118
|
}
|
|
33071
33119
|
result.isFinish = (!result.isFinish) ? result.isFinish : row.cells.getCell(i).FinishedDrawingCell;
|