Free Support Forum - aspose.com

In pdf output word wrap is not working properly

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

@ChangepondAspose

Thank you for contacting support.

We would like to request you to upgrade to Aspose.PDF for .NET 18.4 because you are using an outdated version of the API. You may visit the documentation article, Convert a File to PDF Format, for your kind reference.

In case the issue persists with latest version of the API, please share source and generated files with us as a single ZIP directory so that we may investigate to help you out.