753 B
753 B
python-node-pdf-reader
A simple Node interface with a locally hosted server; allows the user to convert PDF files to text using Python and query from a list of these files with a basic Express server.
Local deployment
- From within the project directory, run
node app.jsto start the Express server. - The Python logic will be automatically triggered while this server is active.
- The
/pdf-gen/endpoint allows you to provide a href within the project folder "recipes" from which to extract text. - Expects the URL format
{localhost}/url-gen?href={your path} - The
/pdfs/:nameendpoint allows you to search your files for a .txt file of a certain name. A preview excerpt of 150 characters is then sent as a response.