Real-Time Wholesale & Retail Price Discrepancy Checker Price Discrepancy Checker LIVE Simulated Real-Time Wholesale & Retail Price Monitoring Select a Product to Analyze: Wholesale Price$0.00 Retail Price$0.00 Price Discrepancy (Margin)$0.000.00% Historical Price Gap Trend (90 Days) Market Overview Product Name Wholesale Retail Margin ($) Margin (%) Download Price Analysis Report Price Discrepancy Analysis Report For | Generated on Executive Summary Historical Price Gap Trend (90 Days) Full Market Comparison Retail Price ${document.getElementById('discrepancyAmount').textContent}Margin ($) `; document.getElementById('pdf-chart-image').src = priceGapChart.toBase64Image(); let tableHtml = '' + document.querySelector('table').innerHTML + ''; document.getElementById('pdf-data-table').innerHTML = tableHtml; const reportEl = document.getElementById('pdf-report'); reportEl.style.display = 'block'; const canvas = await html2canvas(reportEl, { scale: 2 }); reportEl.style.display = 'none'; const imgData = canvas.toDataURL('image/png'); const pdfWidth = pdf.internal.pageSize.getWidth(); const pdfHeight = (canvas.height * pdfWidth) / canvas.width; pdf.addImage(imgData, 'PNG', 0, 0, pdfWidth, pdfHeight); pdf.save(`${product.name}-Price-Analysis.pdf`); } });