react-to-pdf
react-to-pdf copied to clipboard
Browser crashing on pdf generation and line cut off
Hi, currently im facing two issues using this:
- Line cut off between the pages
- When i click print browser crashes, throws that message which lets you to either quit the website or wait, if i click wait I eventually get a generated pdf... Any ways to prevent this from crashing? My options are already low:
export const pdfOptions: Options = {
method: 'open',
resolution: 2,
page: {
// margin is in MM, default is Margin.NONE = 0
margin: Margin.MEDIUM,
format: 'A4',
orientation: 'landscape',
},
overrides: {
pdf: {
compress: true,
},
},
}