FreeTextAnnotations SetLineColor

We are seeing an issue with the FreeTextAnnotations SetLineColor method. When SetLineColor is called, the FreeText annotation loses its FontSize – and it cannot be set again, it will always return zero. Here is the code:

FreeText text = FreeText.Create(doc, textRect);

text.SetFontSize(30);
double fSize = text.GetFontSize(); // fSize is 30

ColorPt cpt = new ColorPt(1, 0, 0);
text.SetLineColor(cpt, 3);

fSize = text.GetFontSize(); // fSize is 0.0

Thank you for bringing this issue up. We are working on fixing this in future versions.

In the meantime, you may be better off setting the default appearance string manually, as shown in the following:

https://groups.google.com/d/msg/pdfnet-sdk/EbcVkf51tj4/F3-iYa-X_OMJ

Can confirm this bug and i would really appreciate a fix

This has been fixed and starting tomorrow will be available in our stable nightly releases. Thank you for the report and your patience.