Hi Ruvindra,
Yes, it is
possible to add custom annotations by programmatically setting the annotation
mode or directly adding the annotations to the PDF. Based on our understanding,
it seems you might be looking to implement your own custom toolbar for
selecting and adding custom annotations (such as circles or lines). If this is
the case, you could consider disabling the built-in toolbar and integrating
your custom toolbar to meet your specific requirements.
To disable
the build-in toolbar, please refer the below code :
|
//Disable built-in toolbar
pdfViewer.ShowToolbars = false;
|
If you want
to allow users to continuously add circle annotations, you can set the
annotation mode to "Circle" and disable it when the user finishes
drawing. Alternatively, if you want to add a circle annotation at a specific
location, you can create and add the annotation programmatically using the
desired bounds.
Here’s a code
snippet to set the annotation mode to "Circle":
|
// To set the annotation mode to
circle
pdfViewer.AnnotationMode=AnnotationMode.Circle;
|
We support various annotation types,
including ink, free text, text markups, shapes, sticky notes, and more. For
additional information on how to use and add these annotations, please refer to
the following documentation links:
Additionally,
we have attached a sample along with a recorded video that demonstrates how to
add circle annotations to a PDF. Kindly review the sample and video and let us
know if they meet your requirements.
Regards,
Bharathi S
Attachment:
PDFViewerDemo_b0d14d6d.zip