You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-4Lines changed: 2 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,7 @@ html2pdf converts any webpage or element into a printable PDF entirely client-si
7
7
There are two ways to install html2pdf:
8
8
9
9
1.**NPM:** Use `npm install --save html2pdf` to add html2pdf and its dependencies to your project.
10
-
2.**HTML:** Download `dist/html2pdf.bundle.min.js` to your project folder and include it in your HTML with:
11
-
12
-
`<script src="html2pdf.bundle.min.js"></script>`.
10
+
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>`.
13
11
14
12
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:
15
13
@@ -18,7 +16,7 @@ var element = document.getElementById('element-to-print');
18
16
html2pdf(element);
19
17
```
20
18
21
-
**Note:** html2pdf **will not run in Node.js**, it must be run in a browser.
19
+
*Note: html2pdf **will not run in Node.js**, it must be run in a browser.*
22
20
23
21
*[Click here](#dependencies) for more information about using the unbundled version `dist/html2canvas.min.js`.*
0 commit comments