Microsoft Windows Phone 8.1 support ends (13 Jul 2017)

Microsoft has ended support for Windows Phone 8.1

Questions about Android development and PDF

Ink Annotation

More
9 years 1 month ago - 9 years 1 month ago #11514 by mrawy
Replied by mrawy on topic Ink Annotation
How i can do this using 3.8 version ?
Kindly Advise.
Last edit: 9 years 1 month ago by mrawy.
More
9 years 1 month ago #11515 by Davide
Replied by Davide on topic Ink Annotation
Hi,
I suggest you to check the Ink.java class and this method : www.radaeepdf.com/documentation/javadocs...on.html#GetInkPath--
If this is not what you wanted, can you please better explain your needs?
More
9 years 1 month ago #11516 by mrawy
Replied by mrawy on topic Ink Annotation
I'm storing the Ink points(Path points) out of the PDF file and i can redraw the Ink on PDF file using this points.
The problem is: I don't know how i can update this points when the user moves the Ink annotation.
Here is what i have:
- An array of points. Point object contains (Float)X, (Float)Y and (Integer)Type.
What i want:
- I want to create a new Path object using this points. So i can call this method Page.Annotation.SetInkPath(path);
More
9 years 1 month ago #11521 by Davide
Replied by Davide on topic Ink Annotation
Hi,
when the user moves the Ink annot you have to recall the GetInkPath() method and re-save the new points, so you will get the new correct position of the Ink.
More
9 years 1 month ago - 9 years 1 month ago #11523 by mrawy
Replied by mrawy on topic Ink Annotation
I want to update the Ink Path for an old Ink Annotation that exist on another copy of the PDF file. So suppose that i have an array of points (from path object) and i have the target annotation(InkAnnotation). How i can update the path for an old(created before) ink annotation ? I know that i can use this method InkAnnotation.SetInkPath(Path path). How i can create the path object from an array of points ?
Last edit: 9 years 1 month ago by mrawy.
More
9 years 1 month ago - 9 years 1 month ago #11527 by nermeen
Replied by nermeen on topic Ink Annotation
You need to do something like the code below, using the info you have (loop on your array and based on the type use MoveTo, LineTo, ...):
Code:
Path path1 = new Path(); path1.MoveTo(0, 0); path1.LineTo(320, 0); path1.LineTo(320, 100); path1.LineTo(0, 100); path1.ClosePath();

Check also Ink.OnDraw
Last edit: 9 years 1 month ago by nermeen.
Time to create page: 0.402 seconds
Powered by Kunena Forum