Focus and Background of a SignatureWidgetAnnotation

Product: WebViewer & Angular

Product Version: 8.3.1

Please give a brief summary of your issue:
Two points :

  1. Cannot focus a SignatureWidgetAnnotation or TextWidgetAnnotation
  2. Cannot set a background to a SignatureWidgetAnnotation

Please describe your issue and provide steps to reproduce it:

  1. Cannot focus a SignatureWidgetAnnotation or TextWidgetAnnotation

base on this sample : PDFTron Systems Inc. | Documentation
I try different ways :

  • annotationManager.addAnnotation(widgetAnnot, { autoFocus: true });
  • annotationManager.selectAnnotations([widgetAnnot]);
  • annotationManager.selectAnnotation(widgetAnnot);
  • this.wvInstance.UI.focusNote(widgetAnnot.Id);

nothing works, How can I focus my field after creation (by code)

  1. Cannot set a background to a SignatureWidgetAnnotation
    I can set a background color to TextWidgetAnnotation :
    using :
    widgetAnnot.backgroundColor.A = 1;
    widgetAnnot.backgroundColor.B = 226;
    widgetAnnot.backgroundColor.G = 226;
    widgetAnnot.backgroundColor.R = 226;

When I do the same code with SignatureWidgetAnnotation, the background stay transparent (after apply fields, blue if fields editor mode).
How can I chose my background color ?

Please provide a link to a minimal sample where the issue is reproducible:
none

Regards
Nicolas

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

Hi Nicolas,

You can create a custom widget sign here element using this API. In this you can set the CSS color properties to whatever works for you.

Unfortunately, there is no way to click the SignatureWidget programmatically. What are you hoping to do by this? perhaps I can suggest an alternative.

Best Regards,
Ahmad Moaaz
Software Developer
PDFTron Systems, Inc.
www.pdftron.com