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 ( <>