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

Free Support Forum - aspose.com

Issue in rendering \n using TextFragment

Hi,

I am adding the below text fragment to a table cell but it is not rendering the new line character. I want to dispaly like
Heading 1
Table of Contents

but is displaying like

TextFragment textFragment = new TextFragment(“Heading 1 \n Table of Contents”);

Best Regards

Hi Rajeev,

We are sorry for the inconvenience caused. While testing the scenario with the latest version of Aspose.Pdf for Java 9.1.0, we have managed to reproduce the reported issue and logged it in our bug tracking system as PDFNEWJAVA-34267 for further investigation and resolution. We will notify you via this thread as soon as it is resolved.

Please feel free to contact us for any further assistance.

Best Regards,

Hi,

Thanks for your response, but is there any workaround for this.

Best Regards

Hi Rajeev,


Thanks for your inquiry. I am afraid we need to investigate the issue for any suggestion. However if you want to add Table of Contents in a PDF document then please check following documentation link for the purpose. However we will keep you updated about the original issue resolution progress via this forum thread.


Please feel free to contact us for any further assistance.

Best Regards,