From 3cd83730294523282bb13f7ee97646aa51247e64 Mon Sep 17 00:00:00 2001 From: mtbstn Date: Tue, 19 Aug 2025 21:52:13 +0530 Subject: [PATCH] set windowWidth to use same bill format for any dimension --- src/views/billView/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/billView/index.jsx b/src/views/billView/index.jsx index 2f541e3..375fffd 100644 --- a/src/views/billView/index.jsx +++ b/src/views/billView/index.jsx @@ -46,7 +46,7 @@ const BillView = () => { margin: 0.3, filename: `Bill_${formData.id}.pdf`, image: { type: 'jpeg', quality: 0.98 }, - html2canvas: { scale: 2 }, + html2canvas: { scale: 2, windowWidth: 1024 }, jsPDF: { unit: 'in', format: 'letter', orientation: 'portrait' } }; html2pdf()