//app.component.ts file
<a (click)="download();">ClickHere</a>
//app.component.ts file
import * as jsPDF from 'jspdf'
download() {
var doc = new jsPDF('p', 'pt', 'letter');
var pageHeight = doc.internal.pageSize.height;
var y = 800;
var x = 800;
doc.text(100, 100, 'com1');
if (y >= pageHeight) {
doc.addPage();
doc.text(100, 100, 'com1');
y = 0;
}
if (x >= pageHeight) {
doc.addPage();
doc.text(100, 100, 'com1');
x = 0;
}
const merge = require('easy-pdf-merge');
merge(doc, 'http://www.africau.edu/images/default/sample.pdf', function (err) {
<a (click)="download();">ClickHere</a>
//app.component.ts file
import * as jsPDF from 'jspdf'
download() {
var doc = new jsPDF('p', 'pt', 'letter');
var pageHeight = doc.internal.pageSize.height;
var y = 800;
var x = 800;
doc.text(100, 100, 'com1');
if (y >= pageHeight) {
doc.addPage();
doc.text(100, 100, 'com1');
y = 0;
}
if (x >= pageHeight) {
doc.addPage();
doc.text(100, 100, 'com1');
x = 0;
}
const merge = require('easy-pdf-merge');
merge(doc, 'http://www.africau.edu/images/default/sample.pdf', function (err) {