baowen
August 11, 2021, 10:02am
1
PDF.js Express Version
Detailed description of issue
I have hide other element on Signature Modal and only Show Two Types of Signature one is Draw and second is Type where user will Input its Text and Create a Signature from Text.
Expected behaviour
Need to Move position of both Type i want to select Type as Default Signature option for User
Does your issue happen with every document, or just one?
Yes on every document
Link to document
Code snippet
instance.disableElements([
“imageSignaturePanelButton”,
“textPopup”,
“contextMenuPopup”,
“leftPanel”,
“annotationCommentButton”,
“annotationStyleEditButton”,
“linkButton”
]);
system
August 11, 2021, 10:02am
2
Hello, I’m Ron, an automated tech support bot
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:
Logan
August 12, 2021, 4:35pm
4
Hi there,
We do not have an API to move the position of the tab, however you can set the “Type” tab as default by calling:
instance.setSelectedTab('signatureModal', 'textSignaturePanelButton');
Thanks!
Logan
baowen
August 16, 2021, 12:34pm
5
When i’m click on my annonation its set Guest as default signature can we change Guest to our Custome Sign as default ?
baowen
August 17, 2021, 5:22am
6
how i can Change textSignaturePanelButton Value ?
driley
August 18, 2021, 6:36pm
7
Hi Baowen,
You can set the default value by changing the current user. You can do this like so:
const {annotManager} = instance;
annotManager.setCurrentUser('User Name');
Cheers,
Dustin
baowen
August 30, 2021, 4:44am
8
Thanks but the solution is not reflecting when i click on Sign.
annotManager.setIsAdminUser(true)
annotManager.setCurrentUser('My username')
is there any thing else ?
driley
August 30, 2021, 9:05pm
9
Hi Baowen,
What version are you running? Can you try updating to 7.3.9? This snippet works for me just fine when I click sign in a PDF document:
instance.setSelectedTab('signatureModal', 'textSignaturePanelButton');
annotManager.setIsAdminUser(true)
annotManager.setCurrentUser('unique user');
Is this the behaviour you were expecting?:
Cheers,
Dustin