From 2941da3a33c964818342bb003481099ad0b0cb45 Mon Sep 17 00:00:00 2001 From: Soumya Deb Date: Thu, 16 Jun 2011 12:14:02 +0530 Subject: [PATCH 1/2] Test-page updated to allow the user open local PDFs --- test.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/test.html b/test.html index 9cadf2e1f..aea4ec5ba 100644 --- a/test.html +++ b/test.html @@ -46,13 +46,16 @@ function queryParams() { } var canvas, numPages, pageDisplay, pageNum; -function load() { +function load(userInput) { canvas = document.getElementById("canvas"); canvas.mozOpaque = true; pageDisplay = document.getElementById("pageNumber"); infoDisplay = document.getElementById("info"); pageNum = parseInt(queryParams().page) || 1; - fileName = queryParams().file || "compressed.tracemonkey-pldi-09.pdf"; + fileName = userInput; + if(!userInput){ + fileName = queryParams().file || "compressed.tracemonkey-pldi-09.pdf"; + } open(fileName); } @@ -132,6 +135,9 @@ function gotoPage(num) {
+ + Date: Thu, 16 Jun 2011 09:37:15 -0700 Subject: [PATCH 2/2] add blogs and twitter link --- README | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README b/README index 18817c340..ee537f0a5 100644 --- a/README +++ b/README @@ -1,3 +1,12 @@ pdf.js is a technology demonstrator prototype to explore whether the HTML5 platform is complete enough to faithfully and efficiently render the ISO 32000-1:2008 Portable Document Format (PDF) without native code assistance. + +You can read more about pdf.js here: + +http://andreasgal.com/2011/06/15/pdf-js/ +http://blog.mozilla.com/cjones/2011/06/15/overview-of-pdf-js-guts/ + +Or follow us on twitter: @pdfjs + +http://twitter.com/#!/pdfjs