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
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,13 @@
2
2
3
3
html2pdf.js converts any webpage or element into a printable PDF entirely client-side using [html2canvas](https://github.com/niklasvh/html2canvas) and [jsPDF](https://github.com/MrRio/jsPDF).
4
4
5
+
> :warning: There have been several issues reported in v0.10. They are being investigated but in the meantime you may wish to remain on v0.9.3 ("^0.9.3" in npm, or [use cdnjs for HTML script tags](https://cdnjs.com/libraries/html2pdf.js/0.9.3)).
6
+
5
7
## Table of contents
6
8
7
9
-[Getting started](#getting-started)
8
-
-[HTML](#html)
10
+
-[CDN](#cdn)
11
+
-[Raw JS](#raw-js)
9
12
-[NPM](#npm)
10
13
-[Bower](#bower)
11
14
-[Console](#console)
@@ -30,15 +33,25 @@ html2pdf.js converts any webpage or element into a printable PDF entirely client
30
33
31
34
## Getting started
32
35
33
-
#### HTML
36
+
#### CDN
34
37
35
-
The simplest way to use html2pdf.js is to download `dist/html2pdf.bundle.min.js` to your project folder and include it in your HTML with:
38
+
The simplest way to use html2pdf.js is to include it as a script in your HTML by using cdnjs:
*Note: [Click here](#dependencies) for more information about using the unbundled version `dist/html2canvas.min.js`.*
44
+
Using a CDN URL will lock you to a specific version, which should ensure stability and give you control over when to change versions. cdnjs gives you access to [all past versions of html2pdf.js](https://cdnjs.com/libraries/html2pdf.js).
45
+
46
+
*Note: [Read about dependences](#dependencies) for more information about using the unbundled version `dist/html2canvas.min.js`.*
47
+
48
+
#### Raw JS
49
+
50
+
You may also download `dist/html2pdf.bundle.min.js` directly to your project folder and include it in your HTML with:
51
+
52
+
```html
53
+
<scriptsrc="html2pdf.bundle.min.js"></script>
54
+
```
42
55
43
56
#### NPM
44
57
@@ -63,7 +76,7 @@ If you're on a webpage that you can't modify directly and wish to use html2pdf.j
0 commit comments