Some test text!

Loading...
Guides
Style properties

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()
dash.Add(2.0)
dash.Add(4.0)
circle.SetBorderStyle( NewBorderStyle( BorderStyleE_dashed, 3.0, 0.0, 0.0, dash ) )
dash.Clear()
circle.SetPadding( 2.0 )
circle.RefreshAppearance()
page.AnnotPushBack(circle)

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

Upcoming Webinar: PDFTron SDK Tech Review | Nov 29, 2022 at 2 pm ET

PDFTron SDK

The Platform

NEW

© 2022 PDFTron Systems Inc. All rights reserved.

Privacy

Terms of Use