pdf2html is a module which helps to convert PDF file to HTML pages using Apache Tika. This module also helps to generate thumbnail image for PDF file using Apache PDFBox.
This library uses the fs library, which doesn't exist on next.js frontends. Why would this library need the file system in the first place? Getting/setting from the file system might not work in serverless environments.
Might need to refactor to not use the fs library or any other library not available to the client or in a serverless environment.
This library uses the
fs
library, which doesn't exist on next.js frontends. Why would this library need the file system in the first place? Getting/setting from the file system might not work in serverless environments.Might need to refactor to not use the
fs
library or any other library not available to the client or in a serverless environment.