Skip to content

Instantly share code, notes, and snippets.

@zhenniuxing
zhenniuxing / pdftoimage.html
Last active April 26, 2019 08:39
using pdf.js implement pdf to image and support for non-latin characters
<html>
<body>
<canvas id="the-canvas" style="border:1px solid black"></canvas>
<script type="text/javascript" src="https://unpkg.com/pdfjs-dist@2.0.943/build/pdf.js"></script>
<script type="text/javascript">