How to put line breaks in RichTextBox field?

Using Aspose.Pdf version 8.3.1.0

Trying to insert html into the RValue property of a RichTextBox.

The formatting shows up fine, but the paragraph tags are not causing the text to come out on separate lines.

Noticed this similar thread which says the issue was resolved, but doesn't seem to be working. https://forum.aspose.com/t/87349https://forum.aspose.com/t/87349

Hi Glen,


Sorry for the inconvenience faced. After initial investigation I’ve also found that
tag is not working so logged an issue as PDFNEWNET-35782 in our issue tracking system for further investigation and resolution. We will update you as soon as we resolve the issue.

As a workaround you can use “\n” to break line in RichTextBox field.

Document doc = new Document(“InputForm.pdf”);
(doc.Form[“Description”] as RichTextBoxField).RValue = “

This is some bolded text.\nHere is some text on a new line.

”;
doc.Save(“RichTexBox_out.pdf”);

Please feel free to contact us for any further assistance.

Best Regards,

The issues you have found earlier (filed as PDFNEWNET-35782) have been fixed in Aspose.Pdf for .NET 11.3.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.