Skip to content

Commit

Permalink
Simpler example
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRio committed Dec 29, 2012
1 parent fae7fef commit 2048284
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');

```

Expand Down

0 comments on commit 2048284

Please sign in to comment.