Skip to content

Commit de6f472

Browse files
authored
Add width and height options to the jsPdf constructor in readme (#326)
1 parent dccc83b commit de6f472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ See [#102](https://github.com/yWorks/svg2pdf.js/issues/102) for details.
2929
import { jsPDF } from 'jspdf'
3030
import 'svg2pdf.js'
3131

32-
const doc = new jsPDF()
32+
const doc = new jsPDF(width > height ? 'l' : 'p', 'pt', [width, height])
3333

3434
const element = document.getElementById('svg')
3535
doc

0 commit comments

Comments
 (0)