Hi,
I have following html code which I am inserting into PDF file.
- List 1
- list 2
It should look up like this in PDF
testing listes:
1. list1
2. list2
How can we achieve proper indentation in the PDF file.
Thanks
Mamatha
Hi,
I have following html code which I am inserting into PDF file.
It should look up like this in PDF
testing listes:
1. list1
2. list2
How can we achieve proper indentation in the PDF file.
Thanks
Mamatha
Hi Mamatha,
String str = “
”;<o:p></o:p>
1
//Instantiate Pdf pbject by calling its empty constructor
Pdf pdf1 = new Pdf();
//Create a new section in the Pdf object
Section sec1 = pdf1.getSections().add();
//Create a new text paragraph and pass the text to its constructor as argument
Text text1 = new Text(str);
text1.setIsHtmlTagSupported(true);
sec1.getParagraphs().add(text1);
pdf1.save("d:/pdftest/Ordered_List_test_PDF.pdf");
Hi,
It should be displayed like this. Like in word. period after numbers. Indent infront of list items.
Available options:
1. Apples
2. oranges
How can this be achieved?
Thanks for looking into it.
Mamatha
Hi Mamatha,