I have used jspdf and autotable library in my angular project for export to pdf.
Here when colspan range is some little bit larger than horizontalPager not working in library. where header is dynamic colspan so how to do that ?
autoTable(doc, {
html: '#SampleContent',
styles: { fontSize: desiredFontSize },
tableWidth: 200, // fixed table width
pageBreak: 'auto',
rowPageBreak: 'avoid',
horizontalPageBreak: true,
horizontalPageBreakBehaviour: 'immediately',
horizontalPageBreakRepeat: [0],
theme: 'grid',
headStyles: {
fillColor: [52, 58, 64], // Set background color
textColor: [255, 255, 255], // Set text color
lineWidth: { bottom: 0.5, left: 0.1, right: 0.1 }, // Set border line width (adjust as needed)
lineColor: [255, 255, 255], // Set border line color
halign: 'center',
overflow: 'hidden',
},
startY: 55,
});
for reference — jsPDF-AutoTable/issues/1032
New contributor
vijay lathiya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.