Add Padding to Signatures

WebViewer Version: 8.6.0

Hey guys,

I’m trying to add padding to the selection box of Signature annotations. Does anyone have an idea how to do that?
I’m calling the CreateSignatureTool method setSignature(base64Image) and add the signature to the document. After adding the signature, I select it. There is no padding around the signature, so it goes straigh to the selection border. I’m looking for a way to add some padding to it. I already tried to edit the SelectionModel.prototype.drawSelectionOutline function but it does not change the bounding box, only the visual representation of the border. I also tried to create a new Core.Math.Rect with adjusted dimensions from the original Rect of the annotation but calling annotation.setRect(newRect) didn’t help either.


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:



Could you maybe attach some screenshots to better explain the issue here? Thanks!


Hi Wanbo, of course :slight_smile:
As you can see in this screenshot, the selection box is touching the signature. I’d like to add a padding between the selection box and the signature without changing the image itself.