fix: Update PDF download options to A4 format and portrait orientation
This commit is contained in:
parent
4e8fd462cf
commit
3d9cd1d992
@ -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 (
|
||||
<>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user