Which product are you using?
PDF.js Express Viewer
PDF.js Express Version
8.7.2
Detailed description of issue
When I get the signatures through the API and import it by importSignatures(). Draw signatures are displaying very small in fill and sign drop-down. I am just drawing the signature on canvas through the array path point. Only with the DRAW signature
Expected behaviour
Does your issue happen with every document, or just one?
Every time with only the draw signature
Link to document
{Provide a link to the document in question if possible}
Code snippet
const signatureArray = JSON.parse(
JSON.stringify(signatures[latestAddedSignatureIndex])
);
const canvas = document.createElement(‘canvas’);
canvas.width = 500;
canvas.height = 500;
const ctx = canvas.getContext(‘2d’);
ctx.lineWidth = 4;
ctx.strokeStyle = ‘black’;
ctx.beginPath();
for (
let x = 0;
x <= signatures[latestAddedSignatureIndex].length - 1;
x++
) {
ctx.moveTo(signatureArray[0].x, signatureArray[0].y);
for (let i = 1; i < signatureArray.length; i++) {
ctx.lineTo(signatureArray[i].x, signatureArray[i].y);
}
}
ctx.stroke();