Hallo,
when I do this:
DefaultAppearance defaultAppearance = new DefaultAppearance();
defaultAppearance.setFontName(anno.getFontname());
defaultAppearance.setFontSize(anno.getFontsize());
defaultAppearance.setTextColor(color);
com.aspose.pdf.Font font = defaultAppearance.getFont();
Aspose gives me a null. Why I need this? Because I want to calculate the appropriate width of a rectangle for generating a freetextAnnotation with some text in it. I thought I can do it with font.measureString().
What did I do wrong?
Regards, Gerd