No, the question applies to all files loaded into the viewer.
Can you reproduce using one of our samples or online demos?
Yes, the behaviour is the same in the Apryse demo.
Are you using the WebViewer server?
No.
Does the issue only happen on certain browsers?
No, this is a feature-related question, not a browser-specific issue.
Is your issue related to a front-end framework?
No.
Is your issue related to annotations?
Yes.
Please give a brief summary of your issue:
Can annotation colours be changed in the WebViewer?
Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)
We would like users to be able to change the color of annotations (e.g., rubber stamp annotations, highlights, text boxes, shapes) in the WebViewer. Currently, annotations appear in their default colours with no visible option to customise them.
Steps to reproduce:
Open any PDF in the Apryse WebViewer.
Add an annotation (e.g., a rubber stamp).
No visible option is presented to change the annotation colour.
We’d like to know:
Is it possible to allow users to select different colours for annotations via the UI or programmatically?
If so, could you provide an example or documentation reference?
Hello, I’m AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
Changing annotation colors in Apryse WebViewer is indeed possible, both programmatically and through the UI. You can customize the color of various annotations such as highlights, stamps, and text boxes by using the setStyles API or by configuring the UI to allow users to select colors.
Some things you can try:
Use the setStyles API to programmatically change the color of annotations. This API lets you specify colors, stroke widths, and other style properties.
Customize the WebViewer UI to include color selection options for annotations. This involves adding UI elements that call the setStyles API when a color is selected.
Extend existing annotation tools to prompt users for color selection upon creation or modification of annotations.