FreeTextAnnotations SetLineColor

46 views
Skip to first unread message

Michael

unread,
Jan 19, 2015, 8:22:42 AM1/19/15
to pdfne...@googlegroups.com
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

Aaron

unread,
Jan 19, 2015, 6:03:33 PM1/19/15
to pdfne...@googlegroups.com
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:



 

Christian Scheer

unread,
Mar 5, 2015, 4:53:33 PM3/5/15
to pdfne...@googlegroups.com
Can confirm this bug and i would really appreciate a fix

Ryan

unread,
Mar 10, 2015, 7:24:23 PM3/10/15
to pdfne...@googlegroups.com
This has been fixed and starting tomorrow will be available in our stable nightly releases. Thank you for the report and your patience.
Reply all
Reply to author
Forward
0 new messages