1) How can I implement the pressure? The class InkPoint has x and y coordinates and pressure but I can not implement it, because the method save does not have any field for pressure. |
We do not have any field to set pressure to the ink annotation instead we do support to set BorderWidth of the PdfInkAnnotation to change the border width of the ink annotation, please refer the below code snippet.
PdfInkAnnotation inkAnnot = new PdfInkAnnotation(new RectangleF(0, 0, (float)pageWidth, (float)pageHeight), inkPoints);
//Set the ink annotation border width
inkAnnot.BorderWidth = 1;
|
2) Instead of using new "RectangleF (0, 0, (float) pageWidth, (float) pageHeight)" I can use a circular shape? |
We do not have a support for draw the ink annotation to the circular shape, we can draw only in rectangle of the bounds, it is the default behavior. |
3) how can I implement the highlighter?
I use a InkCanvas with inktoolbar, the highlight of InkCanvas exactly is a series of points as a simple stroke, I tried to implement the highlighter throughPdfTextMarkupAnnotation Class but do not think is the right solution.
Thanks so much. |
We have created a sample for adding highlight annotations using PdfViewerControl. Please refer the below screenshot and sample for more details.
Sample link:
Please let us know whether this is your actual requirement or else provide more detail about your requirement, so that we will provide you a prompt solution |