`;
// Create a temporary element to hold the HTML content
const tempDiv = document.createElement('div');
tempDiv.innerHTML = pdfContent;
// Use html2pdf to generate the PDF
html2pdf().from(tempDiv).set({
margin: 10,
filename: 'Angle_Conversion_Report.pdf',
image: { type: 'jpeg', quality: 0.98 },
html2canvas: { scale: 2, logging: false },
jsPDF: { unit: 'mm', format: 'a4', orientation: 'portrait' }
}).save();
}
