How do I set the default value for an annotation property?

85 views
Skip to first unread message

Matt Parizeau

unread,
Apr 29, 2015, 5:49:55 PM4/29/15
to pdfnet-w...@googlegroups.com
Q:

Is it possible to set the default value for an annotation, for example the default thickness for the FreeHand annotation?

A:

The annotation tools can be accessed through readerControl and have a defaults property which can be changed. For example:
readerControl.toolModeMap[PDFTron.WebViewer.ToolMode.AnnotationCreateFreeHand].defaults.StrokeThickness = 5;

Other properties that can be set are StrokeColor, FillColor, TextColor, Opacity and FontSize where applicable.
Reply all
Reply to author
Forward
0 new messages