We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use code fo insert image from url but can't save to pdf
PDFAnnotate.prototype.addImageToServer = function () { var inst = this; var canvas = inst.fabricObjects[inst.active_canvas]
fabric.util.loadImage('https://d1hdtc0tbqeghx.cloudfront.net/sites/536207e0e52e306190000002/theme/images/sd-laravel-icon.png', function(img) { if(img == null) { alert("Error!"); }else { var image = new fabric.Image(img); canvas.add(image).setActiveObject(image); canvas.renderAll(); } }, { crossOrigin: 'anonymous' });
}
The text was updated successfully, but these errors were encountered:
Or this code insert image finish but can't save pdf
fabric.Image.fromURL('https://d1hdtc0tbqeghx.cloudfront.net/sites/536207e0e52e306190000002/theme/images/sd-laravel-icon.png', function(oImg) {
// scale image down, and flip it, before adding it onto canvas oImg.scale(0.5).set('flipX', true); canvas.add(oImg); }); }
Sorry, something went wrong.
No branches or pull requests
I use code fo insert image from url but can't save to pdf
PDFAnnotate.prototype.addImageToServer = function () {
var inst = this;
var canvas = inst.fabricObjects[inst.active_canvas]
fabric.util.loadImage('https://d1hdtc0tbqeghx.cloudfront.net/sites/536207e0e52e306190000002/theme/images/sd-laravel-icon.png', function(img) {
if(img == null) {
alert("Error!");
}else {
var image = new fabric.Image(img);
canvas.add(image).setActiveObject(image);
canvas.renderAll();
}
}, { crossOrigin: 'anonymous' });
}
The text was updated successfully, but these errors were encountered: