@syncfusion/ej2-pdf-export 24.2.3 → 25.1.38

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.
@@ -27498,7 +27498,8 @@ class PdfGridCell {
27498
27498
  }
27499
27499
  if (param.page != childGridResult.page) //&& (isWidthGreaterthanParent != true))
27500
27500
  {
27501
- childGridResult.bounds.height = this.row.rowBreakHeightValue;
27501
+ if (this.row.rowBreakHeightValue !== null && typeof this.row.rowBreakHeightValue !== 'undefined')
27502
+ childGridResult.bounds.height = this.row.rowBreakHeightValue;
27502
27503
  if (this.row.rowBreakHeight == 0)
27503
27504
  this.row.NestedGridLayoutResult = childGridResult;
27504
27505
  else
@@ -30007,11 +30008,11 @@ class PdfGridLayouter extends ElementLayouter {
30007
30008
  this.currentBounds.y = recalHeight;
30008
30009
  //this.currentBounds.y = row.NestedGridLayoutResult.bounds.height;
30009
30010
  if (startPage != this.currentPage) {
30010
- let secion = this.currentPage.section;
30011
- let startIndex = secion.indexOf(startPage) + 1;
30012
- let endIndex = secion.indexOf(this.currentPage);
30011
+ let section = this.currentPage.section;
30012
+ let startIndex = section.indexOf(startPage) + 1;
30013
+ let endIndex = section.indexOf(this.currentPage);
30013
30014
  for (let page = startIndex; page < endIndex + 1; page++) {
30014
- let pageGraphics = this.currentPage.graphics;
30015
+ let pageGraphics = section.getPages()[page].graphics;
30015
30016
  let location = new PointF(format.paginateBounds.x, format.paginateBounds.y);
30016
30017
  let height = page == endIndex ? (row.NestedGridLayoutResult.bounds.height - param.bounds.y) :
30017
30018
  (this.currentBounds.height - location.y);
@@ -30033,14 +30034,14 @@ class PdfGridLayouter extends ElementLayouter {
30033
30034
  else {
30034
30035
  totalwidth = cell.width;
30035
30036
  }
30036
- // if (cell.columnSpan > 1)
30037
- // {
30038
- // for (; c < cell.columnSpan; c++)
30039
- // cellWidth += row.grid.columns.getColumn(c).width;
30040
- // }
30041
- // else
30042
- cellWidth = Math.max(totalwidth, row.grid.columns.getColumn(c).width);
30037
+ if (cell.columnSpan > 1) {
30038
+ for (; c < cell.columnSpan; c++)
30039
+ cellWidth += row.grid.columns.getColumn(c).width;
30040
+ }
30041
+ else
30042
+ cellWidth = Math.max(totalwidth, row.grid.columns.getColumn(c).width);
30043
30043
  cell.drawCellBorders(pageGraphics, new RectangleF(location, new SizeF(cellWidth, height)));
30044
+ cell.drawCellBorders(pageGraphics, new RectangleF(location, new SizeF(this.Grid.rows.getRow(this.Grid.rows.count - 1).width, height)));
30044
30045
  location.x += cellWidth;
30045
30046
  c += (cell.columnSpan - 1);
30046
30047
  }
@@ -30638,14 +30639,16 @@ class PdfGridLayouter extends ElementLayouter {
30638
30639
  // }
30639
30640
  }
30640
30641
  for (let i = this.cellStartIndex; i <= this.cellEndIndex; i++) {
30642
+ let gridColumnWidth = this.Grid.columns.getColumn(i).width;
30641
30643
  let cancelSpans = ((row.cells.getCell(i).columnSpan + i > this.cellEndIndex + 1) &&
30642
30644
  (row.cells.getCell(i).columnSpan > 1));
30643
- // if (!cancelSpans) {
30644
- // for (let k : number = 1; k < row.cells.getCell(i).columnSpan; k++) {
30645
- // row.cells.getCell(i + k).isCellMergeContinue = true;
30646
- // }
30647
- //}
30648
- let size = new SizeF(this.Grid.columns.getColumn(i).width, this.gridHeight > 0.0 ? this.gridHeight :
30645
+ if (!cancelSpans) {
30646
+ for (let k = 1; k < row.cells.getCell(i).columnSpan; k++) {
30647
+ row.cells.getCell(i + k).isCellMergeContinue = true;
30648
+ gridColumnWidth += this.Grid.columns.getColumn(i + k).width;
30649
+ }
30650
+ }
30651
+ let size = new SizeF(gridColumnWidth, this.gridHeight > 0.0 ? this.gridHeight :
30649
30652
  this.currentPageBounds.height);
30650
30653
  // if (size.width === 0) {
30651
30654
  // size = new SizeF(row.cells.getCell(i).width, size.height);