Skip to content

Commit

Permalink
updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Marak committed Jun 17, 2010
1 parent 30111e0 commit 013e37d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
# pdf.js - generate simple pdfs server-side with ease
# pdf.js - create basic pdf files in the browser or node.js, simple as cake
<img src = "http://imgur.com/ARmuX.jpg" border = "0">
### online demo @ <a href = "http://maraksquires.com/pdf.js/">http://maraksquires.com/pdf.js/</a>
## USAGE
### browser -

<script src = "pdf.js" type = "text/javascript"></script>
<script>
/* create the PDF document */

var doc = new pdf();
doc.text(20, 20, 'Hello world!');
/* Optional - set properties on the document */
doc.setProperties({
title: 'A sample document created by pdf.js',
Expand All @@ -21,6 +23,7 @@
/* Add Pages */
doc.addPage();
/* Change Font Sizes */
doc.setFontSize(22);
doc.text(20, 20, 'This is a title');
Expand Down Expand Up @@ -65,5 +68,5 @@
});
## Authors
#### Marak Squires
#### Marak Squires and Matthew Bergman
Heavily inspired by James Hall's jsPDF
Empty file removed test.file
Empty file.
Binary file removed test.pdf
Binary file not shown.

0 comments on commit 013e37d

Please sign in to comment.