jsPDF - Documentation
https://artskydj.github.io/jsPDF/docs/jsPDF.html02.04.2019 · jspdf.js, line 3429. Adds series of curves (straight lines or cubic bezier curves) to canvas, starting at x, y coordinates. All data points in lines are relative to last line origin. x, y become x1,y1 for first line / curve in the set. For lines you only need to specify [x2, y2] - (ending point) vector against x1, y1 starting point.
jsPDF - Documentation
artskydj.github.io › jsPDF › docsApr 02, 2019 · lines (lines, x, y, scale, style, closed) → { jsPDF } Adds series of curves (straight lines or cubic bezier curves) to canvas, starting at x, y coordinates. All data points in lines are relative to last line origin. x, y become x1,y1 for first line / curve in the set.
jsPDF Demos - GitHub Pages
https://mrrio.github.io/jsPDF/examples/basic.htmlvar pdf = new jsPDF('p', 'pt', 'letter') // source can be HTML-formatted string, or a reference // to an actual DOM element from which the text will be scraped. , source = $('#fromHTMLtestdiv')[0] // we support special element handlers. Register them with jQuery-style // ID selector for either ID or node name. ("#iAmID", "div", "span" etc.)
jsPDF Demos - GitHub Pages
mrrio.github.io › jsPDF › examplesvar name = prompt ('What is your name?'); var multiplier = prompt ('Enter a number:'); multiplier = parseInt (multiplier); var doc = new jsPDF (); doc.setFontSize (22); doc.text (20, 20, 'Questions'); doc.setFontSize (16); doc.text (20, 30, 'This belongs to: ' + name); for (var i = 1; i <= 12; i ++) { doc.text (20, 30 + (i * 10), i + ' x ' + multiplier + ' = ___'); } doc.addPage (); doc.setFontSize (22); doc.text (20, 20, 'Answers'); doc.setFontSize (16); for (var i = 1; i <= 12; i ++) { ...