Some test text!
Annotation properties have default settings and can be changed programmatically.
The tools read and write values via the Tools package
PTColorDefaults
type (class) interface.
Sets the default stroke color for rectangle annotations.
ColorDefaults.SetDefaultColor(UIColor.Green, PTAnnotType.e_ptSquare, "Color", ColorPostProcessMode.e_postprocess_none);
Available properties:
Property name | Key |
---|---|
Stroke color | "Color" |
Fill color | "FillColor" |
Opacity | "Opacity" |
Border thickness | "BorderThickness" |
Free text size | "FreeTextSize" |
Reads the default fill color for ellipse annotations.
var fillColor = PTColorDefaults.GetDefaultColorForAnnotType(PTAnnotType.e_ptCircle, "FillColor", ColorPostProcessMode.e_postprocess_none);
Get the answers you need: Support
Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.
Select a platform to get started with your free trial.
Web
Android
iOS
Windows
Linux
Unlimited usage. No email address required.