Pdftron 11.6 - why default signature is selected and it doesnot get applied on clicking in doc

WebViewer Version: 11.6

Can you reproduce using one of our samples or online demos? yes
Is your issue related to annotations? yes

Please give a brief summary of your issue:
why when we click on stamps in panel, no stamp is selected by default, but when signatures are opened, 1st is selected by default. i want no signature to be selected as well, as it creates confusion b/w it is selected for applying or not. because it is although selected, but on clicking on do, it doesnot get applied

Please describe your issue and provide steps to reproduce it:
just open viewer and in insert, click on stamps and click on signatures then

i dont want any signature to be selected by default and same even if i selected and then shifts to stamps and then again to signatures

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


It seems you’re encountering an issue with the default selection behavior of signatures in WebViewer when using version 11.6. The current behavior automatically selects the first signature, which can be confusing if it doesn’t apply when clicked. You want to modify this behavior so that no signature is selected by default, similar to how stamps are handled.

Some things you can try:

  • Check if there is an option in the API to modify the default behavior of signature selection. You might need to look for an event or setting that controls the selection state.

  • Consider programmatically deselecting the signature once the signature panel is opened. This can be achieved by listening for the relevant event and then setting the selected signature to null or a non-selected state.

  • Review any custom code or configurations that might influence the signature selection behavior, ensuring they align with the desired outcome.

  • Ensure that any changes made do not conflict with other functionality you have implemented in your WebViewer setup.



Here are some resources that might help you:

  • Interacting with Signature Fields - This guide explains how to work with signature fields, including their creation and interaction.

  • WebViewer Configuration - Provides details on configuring WebViewer, which might include options for default behaviors.

  • Customizing WebViewer - Offers insights into customizing the WebViewer UI and behavior, which could be relevant for your needs.

  • Annotations Guide - Learn about handling annotations, which includes signatures and stamps.

  • WebViewer API Documentation - Explore the full API documentation to find methods and events that could help manage the signature selection.



Hopefully, this helps you solve your problem while you wait for a human to get back to you.

Hi there,

Thank you for reporting this issue,

This looks like a visual issue with the signature having a blue border to show that it is selected even though it is not. You could temporarily remove the border-color CSS of the stamp annotation:

I will create this issue in the backlog for the product team to review.

best regards,
Kevin

and apart from border-color, there is background color difference as well for selected stamp and non selected stamps. please tell me that as well.

and problem now is that for initial render i want it to be disabled, and also when i switch from sig to stamps and then back to sig, but when i click any sig, then i want this border color and background color to be as it is now

just like any stamp

Hi there,

I will note this behaviour for the development team.

As a workaround, you can use the visibilityChanged event to conditionally add/remove the CSS:

Best regards,
Kevin

Hi there,

The product team has deemed that this is expected behaviour and not a bug.

The signature panel handles both stamping signatures as well as filling signature widgets. When you open the panel, the first signature is selected since it will be filled into a signature widget. If you want to stamp the signature, then you need to select it.

To see this in practice, you can try the following steps:

  • Go to JS Digital Signature Demo | Apryse WebViewer
  • Open the signature list panel and create a new signature
  • Close the signature list panel
  • Open the signature list panel and observe that the first signature is selected
  • Click on the signature widget on the canvas
  • Observe that the selected signature will be applied

best regards,
Kevin