Вот мой текущий код:
Код: Выделить всё
var pdf = new jsPDF('p', 'pt', 'letter');
let w = 40;
let h = 100;
source = `Some text`;
pdf.addImage(chartIMG, 'PNG', w, h + 50, 180, 100);
pdf.fromHTML(source, w, h, { 'width': 522 }, function () {
pdf.save('Test.pdf');
});
Подробнее здесь: https://stackoverflow.com/questions/793 ... is-directl
Мобильная версия