Image Reader in pure JavaScript

JavaScript filesystem - Image reader with upload button and Convert in PDF

HTML

<script src="https://raw.githubusercontent.com/MrRio/jsPDF/master/dist/jspdf.debug.js"></script>
<!-- <h1 style="color:red;">
weweweewwwwwwwwwwwwwwq
wewewewewewewewewe

</h1> -->
<canvas id="mycanvas">
    <div id="fallback">
        You only see this message if your browser doesn't support canvas.
    </div>
<canvas>

JavaScript

var context = document.getElementById('mycanvas').getContext('2d');
console.log('context', context);