Created
January 29, 2020 16:33
-
-
Save cjharkins/a38953d5c7949b40e5ffa98428dac04d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jsPDF from 'jspdf' | |
export default pdf({data, headers, filename}) { | |
const doc = new jsPDF({...}) | |
const pageDimensions = { // NEW CODE | |
height: 595.28, | |
width: 841.89 | |
} | |
doc.save(filename) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment