const signature = require('html-pdf-signature');
const PDFSignature = new signature();
PDFSignature.htmlSignature('tests/doc.html', '', 200, 354, 'image in base64', true, 'name output file.html', 'html');
PDFSignature.htmlSignature('tests/doc.html', '', 200, 354, 'image in base64', true, 'name output file.html', 'pdf');
PDFSignature.htmlSignature('', '<!DOCTYPE html>\n' +
'<html lang="en">\n' +
'<head>\n' +
' <meta charset="UTF-8">\n' +
' <title>Something document</title>\n' +
'</head>\n' +
'<body>\n' +
'<h1>LOR DOLOR ISPUM</h1>\n' +
'<div>\n' +
' <span>\n' +
' Something\n' +
' </span>\n' +
' <p>That paragraph</p>\n' +
' <h2>Header 2</h2>\n' +
'</div>\n' +
'<div>\n' +
' <button>Something</button>\n' +
'</div>\n' +
'\n' +
'</body>\n' +
'</html>\n', 200, 354, 'this is generated file', true, 'name output file.html', 'html');
PDFSignature.pdfSignature('tests/doc', 200, 365, 'image in base64', true, 'name output file');