Rank: Newbie
Groups: Registered
Joined: 1/27/2020(UTC) Posts: 1  Location: Oklahoma
|
I need to convert Ink strokes to a PdfInkAnnotation, I am able to add points to the annotation using this code:
For i = 0 To e.Stroke.BezierPoints.Length - 1 pPnt = New Drawing.Point((e.Stroke.BezierPoints(i).X * dpi_graph.DpiX) / 2540, (e.Stroke.BezierPoints(i).Y * dpi_graph.DpiY) / 2540) Dim pagePnt As PointF = PdfViewer1.ClientToPage(iPage, New Drawing.Point(pPnt.X, pPnt.Y)) pdfInkPoints.Add(New Patagames.Pdf.FS_POINTF(pagePnt.X, pagePnt.Y)) Next
This issue is the annotation is a series of lines instead of curves, is there a method to change these to Bezier curves? Maybe something similar to FS_PATHPOINTF.HasFlag(PathPointFlags.BezierTo).
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 1/5/2016(UTC) Posts: 1,027
Thanks: 5 times Was thanked: 122 time(s) in 119 post(s)
|
Hello, PDF specification: Quote:InkList - (Required) - An array of n arrays, each representing a stroked path. Each array is a series of alternating horizontal and vertical coordinates in default user space, specifying points along the path. When drawn, the points are connected by straight lines or curves in an implementation-dependent way. (See implementa- tion note 93 in Appendix H.) and appendix H: Quote:8.4.5, “Annotation Types” (Ink Annotations) 93. Acrobat viewers always use straight lines to connect the points along each path.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The Patagames Software Support Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close