ivmarcos/react-to-pdf

Svg content is not rendering to PDF

Opened this issue · 1 comments

Images are not rendering in PDF, in my case, I am trying to convert the canvas to PDF. All the text is fine but in place of images getting empty space.

Hi @rahit-ip, please provide an example using codesandbox or similar in which the issue is reproducible. I'd also suggest enable the logging as follow to check for any possible insights.

const options = {
   overrides: {
      canvas: {
          logging: true
      }
  }
}

Since this is probably related to the html2canvas package, I'd go also in the meantime check for similar issues in their repo https://github.com/niklasvh/html2canvas/issues.