From 3d9cd1d9923b59cf0ac461de0c28b33e690281b0 Mon Sep 17 00:00:00 2001 From: nalpari Date: Fri, 16 May 2025 17:46:02 +0900 Subject: [PATCH] fix: Update PDF download options to A4 format and portrait orientation --- src/components/DownloadPDF.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/DownloadPDF.tsx b/src/components/DownloadPDF.tsx index 8532483..5df8d87 100644 --- a/src/components/DownloadPDF.tsx +++ b/src/components/DownloadPDF.tsx @@ -11,8 +11,8 @@ export default function DownloadPdf() { resolution: Resolution.HIGH, page: { margin: Margin.SMALL, - format: 'letter', - orientation: 'landscape' as const, + format: 'A4', + orientation: 'portrait' as const, }, canvas: { mimeType: 'image/png' as const, @@ -28,8 +28,8 @@ export default function DownloadPdf() { }, } - // generatePDF(targetRef, options) - generatePDF(targetRef, { filename: 'page.pdf' }) + generatePDF(targetRef, options) + // generatePDF(targetRef, { filename: 'page.pdf' }) } return ( <>