Fixed Hello World example: PDFDoc(raw_data)

As per #532
This commit is contained in:
Artur Adib 2011-09-26 14:40:32 -04:00
parent 65cad1caf8
commit 125c1fe473

View File

@ -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;