Aspose.pdf for .net: whole text is not shown

I am facing a problem in aspose.pdf for .net that complete text is not shown when text is longer than cell width. If anyone knows the solution please guide me. Thanks

Hi Usman,


Thanks for contacting support.

I have tested the scenario using following code snippet and as per my observations, the cell contents are properly being wrapped. For your reference, I have also attached the PDF file generated over my end.

Can you please share the complete code snippet which you are using, so that we can again test the scenario in our environment.

[C#]

// Load source PDF document<o:p></o:p>

Aspose.Pdf.Document doc = new Aspose.Pdf.Document();

doc.Pages.Add();

// Initializes a new instance of the Table

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

// Set the table border color as LightGray

table.Border = new Aspose.Pdf.BorderInfo(Aspose.Pdf.BorderSide.All, .5f, Aspose.Pdf.Color.FromRgb(System.Drawing.Color.LightGray));

// set the border for table cells

table.DefaultCellBorder = new Aspose.Pdf.BorderInfo(Aspose.Pdf.BorderSide.All, .5f, Aspose.Pdf.Color.FromRgb(System.Drawing.Color.LightGray));

// create a loop to add 10 rows

for (int row_count = 1; row_count < 10; row_count++)

{

// add row to table

Aspose.Pdf.Row row = table.Rows.Add();

// add table cells

row.Cells.Add("Column (" + row_count + ", 1) with large contnets are it should be wrapped to next line");

row.Cells.Add("Column (" + row_count + ", 2)");

row.Cells.Add("Column (" + row_count + ", 3)");

}

// Add table object to first page of input document

doc.Pages[1].Paragraphs.Add(table);

// Save updated document containing table object

doc.Save(“c:/pdftest/document_with_table.pdf”);