Hi Aspose Support,
I was trying to make the heading of a tagged PDF bold, but even though I specify bold I was not getting bold font. Can you check the below code snippet.
HeaderElement heading = taggedContent.createHeaderElement();
heading.setText(“OwnerInfo”);
heading.getStructureTextState().setFont(font);
heading.getStructureTextState().setFontSize((float) 9);
heading.getStructureTextState().setFontStyle(FontStyles.Bold);
heading.getStructureTextState().setMarginInfo(new MarginInfo(30, 0, 0, 3));
heading.getStructureTextState().setForegroundColor(Color.getBlack());
taggedContent.getRootElement().appendChild(heading);