joschan21 / profanity.dev

1.37k stars 104 forks source link

Feature Request: Add PDF File Input and API Support #15

Open sanjeevmurmu opened 4 months ago

sanjeevmurmu commented 4 months ago

Description Currently, the website and API only supports text input in the form of JSON. However, it would be beneficial to have the ability to input PDF files and send them through the API for processing.

Proposed Solution

  1. PDF File Input: Add a new file input field or drag-and-drop area to allow users to upload PDF files directly into the application.

  2. API Support for PDF Files: Extend the existing API endpoints to accept PDF file uploads and process them accordingly. This could involve converting the PDF to text or images, depending on the use case.

@joschan21, I would like to work on this if you approve of this feature.

DadiBit commented 4 months ago

It could be a nice feature, however I think there are two points:

sanjeevmurmu commented 4 months ago

Thank you for the feedback. I understand now that fixing long text validation is our priority now. I will start looking into it.