Java AsposePDF, burned annotation,Italic and bold

Hello,

I am trying to add some “burn” text annotation to a PDF.
I use

WatermarkAnnotation wa = new WatermarkAnnotation
page.getAnnotations().add(wa);
TextState ts = new TextState();
ts.setForegroundColor(Color.getRed());
if (Italic && Bold)
{
ts.setFont(FontRepository.findFont(AnnotationFont, FontStyles.Bold));
}
if (!Italic && Bold)
{
ts.setFont(FontRepository.findFont(AnnotationFont, FontStyles.Bold));
}
if (Italic && !Bold)
{
ts.setFont(FontRepository.findFont(AnnotationFont, FontStyles.Italic));
}
if (!Italic && !Bold)
{
ts.setFont(FontRepository.findFont(AnnotationFont));
}
ts.setFontSize(AnnotationSize);
wa.setOpacity(1);
wa.setTextAndState(new String[] { AnnotationText }, ts);
wa.flatten();

Right now, i dont know how to also add Italic and bold together.

I have 3 possibility for my font : Arial/Times new roman/Courier.
I have com.aspose.pdf.facades.FontStyle.TimesBoldItalic or com.aspose.pdf.facades.FontStyle.CourierBoldOblique for Times new roman and courrier but i didnt find something for Arial.

Is there something i miss?

Thank you

@ClementP

You can use TextState.setFontStyle(FontStyles.Bold | FontStyles.Italic) method as shown below to get the desired output.

// Load the PDF file
Document document = new Document(MyDir + "sample.pdf");
Page page = document.getPages().get_Item(1);

//Create Annotation
WatermarkAnnotation wa = new WatermarkAnnotation(page, new Rectangle(100, 500, 400, 600));

//Add annotaiton into Annotation collection of Page
page.getAnnotations().add(wa);

//Create TextState for Font settings
TextState ts = new TextState();

ts.setForegroundColor(Color.getBlue());
ts.setFont(FontRepository.findFont("Times New Roman"));
ts.setFontSize(32);
ts.setFontStyle(FontStyles.Bold | FontStyles.Italic);

//Set opacity level of Annotaiton Text
wa.setOpacity(0.5);

//Add Text to Annotation
wa.setTextAndState(new String[] { "Aspose.PDF", "Watermark", "Demo" }, ts);

//Save the Document
document.save(MyDir + "sample_watermark.pdf");

Thank you, this have help