From 125c1fe4739de2d7e49a72c24e7331d8ecc5657e Mon Sep 17 00:00:00 2001 From: Artur Adib Date: Mon, 26 Sep 2011 14:40:32 -0400 Subject: [PATCH] Fixed Hello World example: PDFDoc(raw_data) As per #532 --- examples/helloworld/hello.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/helloworld/hello.js b/examples/helloworld/hello.js index 21799c33a..c386e7cce 100644 --- a/examples/helloworld/hello.js +++ b/examples/helloworld/hello.js @@ -30,7 +30,7 @@ ajaxGet('helloworld.pdf', function(data){ // // Instantiate PDFDoc with PDF data // - var pdf = new PDFDoc(new Stream(data)); + var pdf = new PDFDoc(data); var page = pdf.getPage(1); var scale = 1.5;