Created
January 29, 2020 16:30
-
-
Save cjharkins/d527d56723ab120fc2e6121cc18fee60 to your computer and use it in GitHub Desktop.
jspdf-2
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({ | |
orientation: 'l', | |
unit: 'pt', | |
format: 'a4' | |
}) | |
doc.save(filename) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment