Permalink
Browse files

Simpler example

  • Loading branch information...
1 parent fae7fef commit 204828497ba42a0be259d1c7a1c9b1a26f8700fd @MrRio committed Dec 29, 2012
Showing with 3 additions and 21 deletions.
  1. +3 −21 README.md
View
24 README.md
@@ -8,27 +8,9 @@ See examples/basic.html. Make sure you include BlobBuilder.js and FileSaver.js.
```javascript
- var doc = new jsPDF();
-
- doc.text(20, 20, 'This is the default font.');
-
- doc.setFont("courier");
- doc.setFontType("normal");
- doc.text(20, 30, 'This is courier normal.');
-
- doc.setFont("times");
- doc.setFontType("italic");
- doc.text(20, 40, 'This is times italic.');
-
- doc.setFont("helvetica");
- doc.setFontType("bold");
- doc.text(20, 50, 'This is helvetica bold.');
-
- doc.setFont("courier");
- doc.setFontType("bolditalic");
- doc.text(20, 60, 'This is courier bolditalic.');
-
- doc.save('Test.pdf');
+var doc = new jsPDF();
+doc.text(20, 20, 'Hello world.');
+doc.save('Test.pdf');
```

0 comments on commit 2048284

Please sign in to comment.