ivmarcos/react-to-pdf

Browser crashing on pdf generation and line cut off

Kimblis opened this issue · 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 Can you provide full code like implementation too.