Asturias-sam
Asturias-sam
I have tried in the same manner by first converting it into the base64(using javascript). But when i pass it to addImage nothing happens , i have also tried it...
getting an error " Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported." and i am using img.src ="some image url "
I am working on a chrome extension which convert images in html page to pdf.So it is not possible to convert images by getting it's url? what about getting images...
Did not understand it ? Would you write the code briefly ?
not working is there any way to convert images from html page to pdf in jspdf ?
but there is a js security cross server issue for chrome browser how can i solve this
i am getting the images from a url not from local machine and the code will run on chrome browser
Thanks man you rock !!!!! finally solve it !!!!! thanks@diegocr but one last thing would you please explain me about crossOrigin how did it solve it?
if i am providing more images , the images are not map together , some images are repeated in pdf code ``` $("#id").find('img').each(function(){ var som = $(this).attr('src'); getImageFromUrl(som,createPDF); }); ```
i am not using any alias