We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Wrong table break in Aspose.Pdf 4.4.0

Hi,

I've encountered a problem in the way Aspose.Pdf handles table row breaks in version 4.4.0. The text does not correctly flow from page 1 to page 2, it rather inserts the text at the bottom of the second page. I've compared this with version 3.9.0, the version we're currently using, and this version generates the correct output.

The code snippet is as follows:

public int GeneratePDF(bool isDraft) {

// Some general declarations.

Aspose.Pdf.Cell pdfCell;

Aspose.Pdf.Row pdfRow;

try

{

// Initialize the license.

SetAsposeLicense();

// Create the pdf object.

Pdf pdf = new Pdf();

pdf.PageSetup.PageWidth = Aspose.Pdf.PageSize.A4Width;

pdf.PageSetup.PageHeight = Aspose.Pdf.PageSize.A4Height;

pdf.DestinationType = DestinationType.FitPage;

// Create a section for this page

Section detailsPageSection = pdf.Sections.Add();

// This table contains the two columns with red headers and detail texts.

Aspose.Pdf.Table textTable = new Aspose.Pdf.Table();

textTable.ColumnWidths = "496";

detailsPageSection.Paragraphs.Add(textTable);

pdfRow = textTable.Rows.Add();

pdfCell = pdfRow.Cells.Add();

StringBuilder text = new StringBuilder();

for (int i = 0; i < 80; i++)

{

text.Append("blaat#$NL");

}

pdfCell.Paragraphs.Add(new Text(text.ToString()));

// Save the pdf document to the specified location.

pdf.Save(File.Path);

}

catch { }

return 0;

}

Included are the output from Aspose 3.9.0 and 4.4.0.

Lokhan Wong

DTZ Zadelhoff v.o.f.

Hello Lokhan,

Thanks for using our products.

I have tested the scenario using Aspose.Pdf for .NET 4.4.0 and I am able to notice the same problem. Mean while I have also tested it with the latest version of Aspose.Pdf for .NET (which will be published very soon) and I am unable to notice the problem. So I would request you to be patient and wait for the new version. Once the new version becomes available, we would be pleased to update you with the status of correction.

Your patience and comprehension is greatly appreciated in this regard. We apologize for your inconvenience.

Hello Lokhan,

Thanks for your patience.

We are pleased to announce the release of Aspose.Pdf for .NET 4.5.0. Please download it from this link. In case you face any problem, please feel free contact.