WebViewer Version: 8.6.0
Hello PDFTron team,
we have a problem with the signature preview. We are using the AnnotationCreateSignature tool, setting a base64 encoded png-image and using the showPreview method. This used to be no problem until we recently increased the size of the image so it still looks sharp when the user increases the size of the annotation. We took that idea from your Webviewer-UI project. Now, the preview image looks blurry althouhg once added to the document the image is sharp. Do you have any idea why this happens or how to fix it?
signature preview:
signature added to the docment:
Here is a snippet of our code:
const instance = this.pdfTronViewer.webViewerInstance;
const signTool: Core.Tools.SignatureCreateTool =
instance.Core.documentViewer.getTool(
"AnnotationCreateSignature"
) as Core.Tools.SignatureCreateTool;
signTool.setDefaultSignatureOptions({ maximumDimensionSize: 80 });
signTool.setSignature(signature).then(() => {
instance.UI.setToolMode("AnnotationCreateSignature");
signTool.showPreview();
});
Thanks,
Dennis