I can upload the image to the canvas, but now I want to replace the image with a PDF file. How to upload a pdf file to canvas as image.src?
You can achieve this with pdf.js https://github.com/mozilla/pdf.js/
Take a look at this article http://www.codediesel.com/javascript/rendering-pdf-in-html5-canvas/
Source: https://habr.com/ru/post/980420/More articles:Set working directory to laptop directory - pythonInvalid celery weed content error - pythonEmacs started adding extra tabs when I insert them into OS X - emacsSet the result of EXECUTE sp_executesql to a variable in sql - sqlPDF scaling inside iframe when button is clicked - javascriptOverlay color graphs on 2 color scales ggplot2 - rWhat is unary plus / minus in R? - rAndroid: ScrollView does not scroll - androidScrollView not scrolling - Android - androidMethod call error '': method not found [404] - meteorAll Articles