The file is damaged and could not be repaired.

Tai Bo
2 min readOct 31, 2020

Published October 31, 2020 in Java

Image by Free-Photos from Pixabay

I want to share this familiar but cryptic error I experienced when opening certain PDFs which were streamed from a Java web application.

We were a bit puzzled by the error because although those PDF files appeared broken in Adobe Reader, we were able to open them just fine in Chrome PDF viewer. Furthermore, we only got the…

--

--

Tai Bo

Backend developer in .NET core. I enjoy the outdoor, hanging out with good friends, reading and personal development.