Hi Team,
I am using Aspose to convert HTML / text to PDF output.
In pdf output word wrap is not working properly. Please see the code below with actual and expected resuls for the same
Aspose.Pdf.Generator.Pdf masterIndexSheet = new Aspose.Pdf.Generator.Pdf();
Aspose.Pdf.Generator.Section indexSection = masterIndexSheet.Sections.Add();
Aspose.Pdf.Generator.Table contentTable = new Aspose.Pdf.Generator.Table(indexSection);
Aspose.Pdf.Generator.Row indexTitleRow = contentTable.Rows.Add();
Aspose.Pdf.Generator.Cell indexTitleCell = indexTitleRow.Cells.Add(“TEST working - trying to send a paragraph to without word cut”);
indexTitleCell.DefaultCellTextInfo.Alignment = Aspose.Pdf.Generator.AlignmentType.Left;
indexTitleCell.DefaultCellTextInfo.FontName = “Verdana”;
indexTitleCell.DefaultCellTextInfo.FontSize = 11;
indexTitleCell.IsWordWrapped = true;
Actual output:
TEST working - trying to send a parag
raph to without word cut
Expected output:
TEST working - trying to send a
paragraph to without word cut
(or)
TEST working - trying to send a paragraph
to without word cut
Please help on this
Thanks