Can I use a default annotation as a custom one for my viewer and it can be default on other pdf viewers

Example:- I want to use RectangleAnnotation as a custom annotation so i can set its shape and other properties as i want. But when we download it it should be shown as simple RectangleAnnotation.

So is there a way for something like registerannotationtype(‘rectangleAnnotation’, ‘mycustomannotation’)

Thank you so much for reaching out!

To help assist with this, could you help clarify a couple things?

  1. Which platform and programming language you are using.
  2. Which version of the SDK you are using.
  3. A detailed example of what you are trying to achieve using code samples and/or images.

thanks for the information

Sure,

  1. I am using pdftron for angular and using typescript.
  2. I am using version 8.9.0
  3. I want to make a default annotation as a custom annotation for example i want to use rectangle annotation as my own custom annotation with custom properties.

Hello Pranay,

You can create a custom annotation by extending from the Annotations.CustomAnnotation class.

Please take a look at our custom annotation documentation here: Creating-custom-annotations | Apryse Documentation

Regards,
Luke