Skip to content

Commit cd976f1

Browse files
committed
Update readme for current html2canvas version
1 parent 7823dc5 commit cd976f1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ var opt = {
9393
margin: 1,
9494
filename: 'myfile.pdf',
9595
image: { type: 'jpeg', quality: 0.98 },
96-
html2canvas: { dpi: 192, letterRendering: true },
96+
html2canvas: { scale: 2 },
9797
jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' }
9898
};
9999

@@ -155,8 +155,6 @@ If using the unbundled `dist/html2pdf.min.js` (or its un-minified version), you
155155
<script src="html2pdf.min.js"></script>
156156
```
157157

158-
html2pdf currently uses [this fork](https://github.com/eKoopmans/html2canvas/tree/develop) of html2canvas to resolve a few bugs and add support for box-shadows and custom resolutions (via the `dpi`/`scale` options).
159-
160158
## Contributing
161159

162160
### Issues

0 commit comments

Comments
 (0)