Signature Pad - Signatures are not exported to PDF when applyImageFit: true
User Issue: T16329 - Signatures not being exported to PDF (Safari) https://surveyjs.answerdesk.io/internal/ticket/details/T16329
View Demo
To reproduce the issue, run the demo on MacOS, and try to export a survey to PDF. A Signature Pad question doesn't contain a signature image:
When the applyImageFit option is enabled, the SurveyJS PDF library uses an HTMLCanvasElement element to render images, apply the desired image fit and produce the resultant PDF image element. However, it appears that Safari is unable to properly handle it. As a result, images may not be available on the first PDF export call. For instance, here are similar issues:
Image is often missing on first render on Safari iOS SVG to PNG not render images in Safari browser
In the meantime, it is possible to solve this issue by disabling the applyImageFit option.
I've tried
When the applyImageFit option is enabled, the SurveyJS PDF library uses an HTMLCanvasElement element to render images, apply the desired image fit and produce the resultant PDF image element. However, it appears that Safari is unable to properly handle it. As a result, images may not be available on the first PDF export call. For instance, here are similar issues:
Image is often missing on first render on Safari iOS SVG to PNG not render images in Safari browser
In the meantime, it is possible to solve this issue by disabling the applyImageFit option.
I've tried your suggestion, but it is still not working
Hi @RussPalms, Would you please share your code?