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

No Styles When Only Rendering With Document

Open Lermatroid opened this issue 8 months ago • 0 comments

Describe the bug When rendering the PDF with just document instead of inside of PDFViewer there are no styles.

To Reproduce

  1. Create a new next application with tailwind
  2. Render a PDF with <Document> without wrapping it in a PDFViewer

You can make use of react-pdf REPL to share the snippet

Expected behavior The PDF should render in react instead of the PDF viewer.

Screenshots image

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Arc / Chromium
  • React-pdf 3.4.4

Lermatroid avatar May 28 '24 23:05 Lermatroid