shebinleo / pdf2html

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.
https://www.npmjs.com/package/pdf2html
Apache License 2.0
154 stars 33 forks source link

this library doesn't work on frontend next.js #52

Closed Johnrobmiller closed 1 year ago

Johnrobmiller commented 1 year ago

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.

Johnrobmiller commented 1 year ago

closed since front end next.js won't have JRE