Skip to content

Commit

Permalink
More readme formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
eKoopmans committed Nov 26, 2017
1 parent 3502c49 commit 311b7c2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ html2pdf converts any webpage or element into a printable PDF entirely client-si
There are two ways to install html2pdf:

1. **NPM:** Use `npm install --save html2pdf` to add html2pdf and its dependencies to your project.
2. **HTML:** Download `dist/html2pdf.bundle.min.js` to your project folder and include it in your HTML with:

`<script src="html2pdf.bundle.min.js"></script>`.
2. **HTML:** Download `dist/html2pdf.bundle.min.js` to your project folder and include it in your HTML with: `<script src="html2pdf.bundle.min.js"></script>`.

Once installed, html2pdf is ready to use. This command will generate a PDF of `#element-to-print` and prompt the user to save the result:

Expand All @@ -18,7 +16,7 @@ var element = document.getElementById('element-to-print');
html2pdf(element);
```

**Note:** html2pdf **will not run in Node.js**, it must be run in a browser.
*Note: html2pdf **will not run in Node.js**, it must be run in a browser.*

*[Click here](#dependencies) for more information about using the unbundled version `dist/html2canvas.min.js`.*

Expand Down

0 comments on commit 311b7c2

Please sign in to comment.