Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Issue with headings

$
0
0
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);



Viewing all articles
Browse latest Browse all 3131

Trending Articles