Dear pdftron support,
i'm asking me, how can i set the font size in freetext annotations. if
i resize annotations, font size changes - and sometimes the size is
rather small.
Kind regards,
Simon
Dear pdftron support,
i'm asking me, how can i set the font size in freetext annotations. if
i resize annotations, font size changes - and sometimes the size is
rather small.
Kind regards,
Simon
Hello Simon,
Did you try using: freetext.SetDefaultAppearance("/Helv 20 Tf 0 0 1
rg");
For example:
pdftron.PDF.Annots.FreeText default_annot = new FreeText
(pdfview.GetDefaultAnnotation("FreeText").GetSDFObj());
default_annot.SetDefaultAppearance("/Helv 20 Tf 0 0 1 rg");
Similarly you can set the default color for different annotation types
as follows:
_pdfview.GetDefaultAnnotation("Arrow").SetColor(new ColorPt(0, 0,
1));
_pdfview.GetDefaultAnnotation("Line").SetColor(new ColorPt(0, 0, 1));
_pdfview.GetDefaultAnnotation("Circle").SetColor(new ColorPt(0, 0,
1));
_pdfview.GetDefaultAnnotation("Square").SetColor(new ColorPt(0, 0,
1));
_pdfview.GetDefaultAnnotation("PolyLine").SetColor(new ColorPt(0, 0,
1));
_pdfview.GetDefaultAnnotation("Polygon").SetColor(new ColorPt(0, 0,
1));
_pdfview.GetDefaultAnnotation("Text").SetColor(new ColorPt(0, 0, 1));
_pdfview.GetDefaultAnnotation("FreeText").SetColor(new ColorPt(0, 0,
1));
The string on the above line will use default 20pt size and blue text.