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

How to set background colour of a FreeTextAnnotation

$
0
0
Is it possible to set the background colour of a FreeTextAnnotation? I can set the font colour through the DefaultAppearance but I'm struggling to set the background colour. 

Pdf.InteractiveFeatures.DefaultAppearance appearance =
    new Pdf.InteractiveFeatures.DefaultAppearance("Arial", fontSize, color);
Pdf.InteractiveFeatures.Annotations.FreeTextAnnotation annotation =    new Pdf.InteractiveFeatures.Annotations.FreeTextAnnotation(page, new Pdf.Rectangle(llx, lly, urx, ury), appearance);

TIA
Dan

Viewing all articles
Browse latest Browse all 3131

Trending Articles