Hi,
I am using the below piece of code and when I use new line character \n, the HTML Fragment does not recognizes it and places the content in the same line.
Document doc = new Document();
I am using the below piece of code and when I use new line character \n, the HTML Fragment does not recognizes it and places the content in the same line.
Document doc = new Document();
Page page = doc.getPages().add();
HtmlFragment title = new HtmlFragment("<fontsize=10><b><i>Html Fragments</i></b></fontsize>\n\nTable Of Contents");
title .setKeptWithNext (true);
title .getMargin().setBottom (10);
title .getMargin().setTop (100);
page.getParagraphs().add(title );
doc.Save("C://toc.pdf");
There is one more issue I noticed, it does not work with cell object when I use cell.getParagraphs().add(title).
Can you please let me know if this is an issue in the 9.5.0 release.
Thanks
Rajeev Mathur
There is one more issue I noticed, it does not work with cell object when I use cell.getParagraphs().add(title).
Can you please let me know if this is an issue in the 9.5.0 release.
Thanks
Rajeev Mathur