Browse Source

Merge pull request #533 from arturadib/hello-world-fix

Fixed Hello World example: PDFDoc(raw_data)
Artur Adib 14 years ago
parent
commit
60421517da
  1. 2
      examples/helloworld/hello.js

2
examples/helloworld/hello.js

@ -30,7 +30,7 @@ ajaxGet('helloworld.pdf', function(data){
// //
// Instantiate PDFDoc with PDF data // Instantiate PDFDoc with PDF data
// //
var pdf = new PDFDoc(new Stream(data)); var pdf = new PDFDoc(data);
var page = pdf.getPage(1); var page = pdf.getPage(1);
var scale = 1.5; var scale = 1.5;

Loading…
Cancel
Save