mirror of
https://github.com/24eme/signaturepdf.git
synced 2023-08-25 09:33:08 +02:00
Signature pad en png pour eviter les problème de ration de pixel
This commit is contained in:
parent
5aab5e3b57
commit
e8ff2e20fd
@ -244,9 +244,8 @@ loadingTask.promise.then(function(pdf) {
|
|||||||
throttle: 0,
|
throttle: 0,
|
||||||
onEnd: function() {
|
onEnd: function() {
|
||||||
document.getElementById('btn_modal_ajouter').setAttribute('disabled', 'disabled');
|
document.getElementById('btn_modal_ajouter').setAttribute('disabled', 'disabled');
|
||||||
|
const file = new File([dataURLtoBlob(signaturePad.toDataURL())], "draw.png", {
|
||||||
const file = new File([dataURLtoBlob(signaturePad.toDataURL("image/svg+xml"))], "draw.svg", {
|
type: 'image/png'
|
||||||
type: 'image/svg+xml'
|
|
||||||
});
|
});
|
||||||
var data = new FormData();
|
var data = new FormData();
|
||||||
data.append('file', file);
|
data.append('file', file);
|
||||||
|
Loading…
Reference in New Issue
Block a user