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

Free Support Forum - aspose.com

Aspose.PDF FreeTextAnnotation - Annotation-text is NOT getting wrap automatically based on the Rectangle size

I am using the "Aspose.Pdf.InteractiveFeatures.Annotations.FreeTextAnnotation" for the annotation.

The annotation-text is NOT getting wrap automatically based on the Rectangle size, instead, part of the text has got truncated.

Attached the screenshot for your analysis.

Please find below the code:
FreeTextAnnotation stxt = new FreeTextAnnotation(doc.Pages[pageNumber], rect, defApp);

stxt.Name = JsonConvert.SerializeObject(tbdetails);
stxt.Title = "Text Annotation";
stxt.HorizontalAlignment = HorizontalAlignment.Left;
stxt.Contents = text;

var bdr = new Aspose.Pdf.InteractiveFeatures.Annotations.Border(stxt);

bdr.Width = 1;
bdr.Effect = BorderEffect.Cloudy;
bdr.EffectIntensity = 1;

stxt.Characteristics.Border = System.Drawing.Color.Transparent;

if (tbdetails.TextBoxBackground.Equals("opaque", StringComparison.InvariantCultureIgnoreCase))
stxt.Characteristics.Background = System.Drawing.Color.White;
stxt.Color = Aspose.Pdf.Color.White;
stxt.Characteristics.Background = System.Drawing.Color.Transparent;
stxt.Color = Aspose.Pdf.Color.Transparent;



Hi Murugesan,

We are sorry for the inconvenience caused. We have noticed that text is not being wrapped in FreeTextAnnotaion. So we have logged a ticket PDFNEWNET-38896 in our issue tracking system for further investigation and rectification. We will notify you as soon as we resolve it.

Best Regards,

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

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