10 lines
86 KiB
JavaScript
10 lines
86 KiB
JavaScript
|
// You'll need to make your image into a Data URL
|
||
|
// Use http://dataurl.net/#dataurlmaker
|
||
|
var imgData = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOMAAADjCAYAAAB3jqNMAAAgAElEQVR4Aey9B5Qc13nn+6uqzt2TenIOGMxgMMgECBLMYKYkiiJl0ZKc16unfbLfO5at1ZPt9crSavfYOmtZ9NqSvdZaEsVVpCSKOZMgAIIECCIDM5iEyblnOocK73y3ugGQsr0OeyRgySIH3V1dXX373vu/X/p/39Ucx3F49/i59YDqfhkC3UEGovSnAbpqlfuve17OAjZoxafyKE8vjOKF4dQ0x72hbeNgo8nFuo6Doa5XV8rnHfce8ihXqpur86XWFO8pF+Be67ZO7lVqs1lsse6eUFe6F7u/xS6dedujvFv8MW975532UnsXjD/nIS/OcxxBmPtCAeeiZgnQFJDQ3MmvuQCVSzT130UXv+WpANzBcWwszb1S/i0BSC6VOwmkil+toOW2QsMpIf48XNxPuu+XPu22Ace6sEI4RXCp73Qb5C41b4Od3Oii73hL09+BL94F4yUy6K6CIpJMJIgr+jQFFXdiXwCAw/m5/vcC0ZU0JdhceHTv4757QUrpjnMBD44AFxyFTIGpx5V77keLEk++X6HIXQhKC4VaMeS+pZa63+TCz10ApKtLt7pEuv2Saob09rvHz7EHRGJYIp00UTVdfVHTlKzCsfWiRHQbKBNZrjkv2+QzPzXBXRkk5xXkBGBy/yJo3O9RNypKYu3897qolPtr6nttuUMJ+UqIybVF2SptPS9jBbhF8ImEdBVnV+rJ55X0c6W5qMHule/C8u3T7l3J+PYe+Rm/FhXSduGIrul/r6x7e5MEXvI5mdWu8inAkOOCBFJQUcBxsSDX/UsP27HdT5fUYyW4pRWuhFUqtKMrcLtLS+mbXGCLImwXLeCS4BR8/stbVLr//1mP70rG/83j6aqb7k1dO+8f/wKRgoaaqDbJRILVeIJcPk+hYJLL5rAsE13TCAR8eL1e/F4vFdEqIpHy4o0FmO60Lplf8kq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w3S0NNDdEqW50k9tVTkZx8vrpyd5et9JRmcTajkSy9VUflebkE+nrdLDVeuauKKjho6oj4qwV6nDGcsimXcYmlzllWNTRNds4Jd++5Ncf/t7VA/LYuYUx0ApAkrxEL36rd0nMVTVf8U3pN9L4HrppZf4wz/8Q44cOaLOJZNJ9WGRjH/3d3/HRz/6UTVOpevfeudL+9U7DIwug8QFlas6udQuWbBlRgjwXJ6m2HCWUtgkFCufA0OzlFqZyaT58y99if/6Z3/O0lKMpuoKOloayeZyzCkArGI7GraSVg6GR6e+IsiWriYaQhpeM42FTiJv88bgtJIqIoNFstniERQcF1k4mBYGlgKrAKnao3F1fzV9G/t45fBZDp6aJSNXaA4Br0al30chk8UxXeeP/CJZEHQ/JPOQMOV7JLbp4MN1FIUM6KwP0d1SR1VVGXUNLfjC5Tz94qscGxwnbUPWcfUEmc7SI2GgMWSwoS3Kpu5qetqj1FV48JPHtnQKBDg0NMvgUo67PvobvPcjv4E3VFvs478PFCV94W2LY1Gdl/DPd7/7Xb785S8TDof5vd/7PY4ePcpf//Vfq5vJmP7BH/wBn//859XryxGM76Cgf0kqKoFVXGkFgLI8u5NfHsW0EVyKw9/RZMWX6y0MTew7D5Pnhvn8577A17/xoFIlW+trlLdzeSWOnS/gZHIK0gIuQYGuGdiWuCAt6gI616+toitaj9/vJe0YnOlr4PjIIocGphiLFVgV+88S3VVA6DpfVJRR17Ach1lL4ydHl3lq8CDZQp6CJvafhqHZeDyuBKuOltFVW8Wmrnoaoj78WkHFEOeTJvuOn+PEuRgraVtJPfHKZixYmE5zcHoMP1ATGaC/s52rNvexfUs304uzjI5NsLKcI58FU4NUweRc2m
|
||
|
|
||
|
var doc = new jsPDF();
|
||
|
|
||
|
doc.setFontSize(40);
|
||
|
doc.text(35, 25, "Octonyan loves jsPDF");
|
||
|
doc.addImage(imgData, 'PNG', 15, 40, 227, 227, null, 'FAST');
|