Created
January 29, 2020 16:34
-
-
Save cjharkins/036bf0f7d387ca39c77fba5bd0bb6309 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 = {...} | |
const pageMargin = 50 // NEW CODE | |
// NEW CODE | |
const liveArea = { | |
width: pageDimensions.width - pageMargin, | |
height: pageDimensions.height - pageMargin | |
} | |
doc.save(filename) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment