Я разработал код, чтобы помочь с приведенной ниже ссылкой https://www.amcharts.com/docs/v4/tutorials/generating-multi-content-pdf-export/
for (let i = 0; i < pdfDataLength; i++) {
doc.content.push({
text: "SNo." + this.pdfData.cd_details[i].campaign_id
});
doc.content.push(
{
fontSize: 9,
table: {
headerRows: 1,
widths: ["auto", "auto", "auto", "auto", "auto", "auto"],
body: [
[
{ text: "A" },
{ text: "B" },
{ text: "C" },
{ text: "D" }
],
[
this.pdfData.cd_details[i].A,
this.pdfData.cd_details[i].B.join(", "),
this.pdfData.cd_details[i].C.join(", "),
this.pdfData.cd_details[i].D.join(", ")
]
]
}
},
"\n"
);
}