fix: Update PDF download options to A4 format and portrait orientation

This commit is contained in:
nalpari 2025-05-16 17:46:02 +09:00
parent 4e8fd462cf
commit 3d9cd1d992

View File

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