I try to add image inside body show [object object]
Please anyone can help
pdf.autoTable({
startY: rowY,
body: [
[
{ content: "", styles: { cellWidth: 5 } },
{
image: user.image,
width: 30,
colSpan: 2,
},
],
],
});
Looks like your user variable is an array which means you are accessing it wrong.