react-to-pdf icon indicating copy to clipboard operation
react-to-pdf copied to clipboard

Browser crashing on pdf generation and line cut off

Open Kimblis opened this issue 9 months ago • 1 comments

Hi, currently im facing two issues using this:

  1. Line cut off between the pages image
  2. 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,
    },
  },
}

Kimblis avatar May 10 '24 05:05 Kimblis