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,
|
resolution: Resolution.HIGH,
|
||||||
page: {
|
page: {
|
||||||
margin: Margin.SMALL,
|
margin: Margin.SMALL,
|
||||||
format: 'letter',
|
format: 'A4',
|
||||||
orientation: 'landscape' as const,
|
orientation: 'portrait' as const,
|
||||||
},
|
},
|
||||||
canvas: {
|
canvas: {
|
||||||
mimeType: 'image/png' as const,
|
mimeType: 'image/png' as const,
|
||||||
@ -28,8 +28,8 @@ export default function DownloadPdf() {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
// generatePDF(targetRef, options)
|
generatePDF(targetRef, options)
|
||||||
generatePDF(targetRef, { filename: 'page.pdf' })
|
// generatePDF(targetRef, { filename: 'page.pdf' })
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user