mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 06:02:39 +01:00
16 lines
398 B
JavaScript
16 lines
398 B
JavaScript
|
var doc = new jsPDF();
|
||
|
|
||
|
// We'll make our own renderer to skip this editor
|
||
|
var specialElementHandlers = {
|
||
|
'#editor': function(element, renderer){
|
||
|
return true;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
// All units are in the set measurement for the document
|
||
|
// This can be changed to "pt" (points), "mm" (Default), "cm", "in"
|
||
|
doc.fromHTML($('body').get(0), 15, 15, {
|
||
|
'width': 170,
|
||
|
'elementHandlers': specialElementHandlers
|
||
|
});
|