0

I'm using React PDF and it displays my PDF perfectly. However my PDF is currently 18mb big, which takes some loading time to show it. To circumvent that, I tried to compress the pdf via some tools that I found online, unfortunately if I do that and use the now compressed PDF I get the error

Warning: Invalid stream: "FormatError: Bad FCHECK in flate stream: 104, 239 when using React-PDF

I suspect that some information get lost when the PDF is compressed and this error is produced. Is there a pdf compressor that works with react-pdf or any other way to deal with this issue?

0 Answers0