Some test text!

Style propertieskeyboard_arrow_down

Edit annotation style properties in Go

To set an annotation style property such as color, interior color, border style, padding, etc to an annotation.

doc := NewPDFDoc(filename)
page := doc.GetPage(1)

circle = CircleCreate(doc.GetSDFDoc(), NewRect(100.0, 100.0, 200.0, 200.0 ))
circle.SetColor(NewColorPt(0.0, 1.0, 0.0), 3)
circle.SetInteriorColor(NewColorPt(0.0, 0.0, 1.0), 3)
var dash = NewVectorDouble()
circle.SetBorderStyle( NewBorderStyle( BorderStyleE_dashed, 3.0, 0.0, 0.0, dash ) )
circle.SetPadding( 2.0 )

Add or edit PDF annotations sample
Full code sample which shows how to add or edit PDF annotations (e.g. hyperlink, intra-document link, stamp, rubber stamp, file attachment, sound, text, free-text, line, circle, square, polygon, polyline, highlight, squiggly, caret, and ink).

Get the answers you need: Support


Free Trial

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.

Unlimited usage. No email address required.