Skip to content

Commit

Permalink
add a simple example with the tag
Browse files Browse the repository at this point in the history
  • Loading branch information
dealfonso committed Mar 27, 2023
1 parent 8d00b25 commit 157b7d5
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions examples/simpler.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<html>
<head>
<title>Simple PDFjs-viewer</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.4.120/pdf.min.js"></script>
<link rel="stylesheet" href="../css/pdfjs-viewer.css">
<script>
var pdfjsLib = window['pdfjs-dist/build/pdf'];
pdfjsLib.GlobalWorkerOptions.workerSrc = 'https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.4.120/pdf.worker.min.js';
</script>
</head>
<body class="pdfjs-viewer" pdf-document="test.pdf" initial-zoom="fit">
</body>
<script src="../js/pdfjs-viewer.js"></script>
</html>

0 comments on commit 157b7d5

Please sign in to comment.