Free Support Forum - aspose.com

Issue with headings

Hi Team,

I am using aspose PDF java api to create PDF. I am trying to create bulleted list. but i am unable to find the option to create the same. Also in my list , i need some part of the text to be in bold and rest to be in normal style. I tried to add userlable to the heading and assignes segmwent to it. but when i assign userlabel , i am not getting the i) or A) whatever style i have selected. Can you help me in achieving this.

TextSegment seg=new TextSegment(“9.6 g/dL 12.0-16.0(Lab Results,04/06/2013:04:24:00 AM)”);
seg.getTextState().setFont(FontRepository.findFont(“Calibri”));
seg.getTextState().setFontSize(12);
seg.getTextState().setForegroundColor(Color.getBlack());

Heading heading4 = new Heading(1);
heading4.setInList(true);
heading4.setStartNumber(1);
heading4.setStyle(NumberingStyle.LettersUppercase);
heading4.setText(“Clinical indicator:”);
heading4.setStyle(NumberingStyle.NumeralsRomanLowercase);
heading4.setUserLabel(seg);
heading4.setAutoSequence(true);
floatBox.getParagraphs().add(heading4);


Hello Gomathi,


Thanks for using our API’s.

We are looking into this matter and will keep you updated with our findings.

Best Regards,


Hello Gomathi,

Thanks for using our API's.

I am trying to create bulleted list. but i am unable to find the option to create the same

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Arial; -webkit-text-stroke: #000000} span.s1 {font-kerning: none}

I have tested the scenario and have managed to reproduce the problem that bulleted list is not working properly. For the sake of correction, I have logged it as PDFJAVA-36469 in our issue tracking system. We will further look into the details of this problem and will keep you posted on the status of correction.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px Arial; -webkit-text-stroke: #000000} span.s1 {font-kerning: none}


Furthermore, Please note that you cannot use setUserLabel(), then setStyle() methods together, because setUserLabel() method is used for custom bullets.


Also in my list , i need some part of the text to be in bold and rest to be in normal style


I am afraid the requested feature does not exist in Aspose.Pdf for Java, so I have logged an enhancement ticket PDFJAVA-36470 in our issue tracking system for further investigation and rectification. We will notify you as soon as it is resolved.


Best Regards,