You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PDFTron PDFNet SDK
Question:
How to erase a vertex of a Polygon annot. There is only GetVertex and SetVertex?
Answer:
The vertices are stored under an entry called Vertices, which is an array of numbers, where each vertex is a pair of numbers in order of x,y.
So to erase the nth vertex simply call the following.
Obj vertices = polygon.GetSDFObj().FindObj("Vertices"); if(vertices !=null&& vertices.IsArray()) { vertices.EraseAt(n*2);// erase x value vertices.EraseAt(n*2);// erase y value }