Browse Source

hello world fixed

Artur Adib 14 years ago
parent
commit
74015f70ee
  1. 4
      examples/helloworld/hello.js
  2. 8
      examples/helloworld/index.html

4
examples/helloworld/hello.js

@ -7,11 +7,11 @@
'use strict'; 'use strict';
getPdf('helloworld.pdf', function getPdfHelloWorld(data) { PDF.getPdf('helloworld.pdf', function getPdfHelloWorld(data) {
// //
// Instantiate PDFDoc with PDF data // Instantiate PDFDoc with PDF data
// //
var pdf = new PDFDoc(data); var pdf = new PDF.PDFDoc(data);
var page = pdf.getPage(1); var page = pdf.getPage(1);
var scale = 1.5; var scale = 1.5;

8
examples/helloworld/index.html

@ -3,13 +3,7 @@
<head> <head>
<!-- PDF.js-specific --> <!-- PDF.js-specific -->
<script type="text/javascript" src="../../pdf.js"></script> <script type="text/javascript" src="../../build/pdf.js"></script>
<script type="text/javascript" src="../../metrics.js"></script>
<script type="text/javascript" src="../../fonts.js"></script>
<script type="text/javascript" src="../../glyphlist.js"></script>
<script type="text/javascript" src="../../worker/message_handler.js"></script>
<script type="text/javascript" src="../../worker/processor_handler.js"></script>
<script type="text/javascript" src="hello.js"></script> <script type="text/javascript" src="hello.js"></script>
</head> </head>

Loading…
Cancel
Save