Closed testbot-codemonk[bot] closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 17, 2024 1:47pm |
while trying to split pdf, i get this error: return send_file(outputs[0], attachmentfilename=f'split{filename}', as_attachment=True) Also check the merge pdf section and make sure it takes two pdfs as input to merge
Resolving the issue ⏳
Pull Request Modified!
🚀 Here's the PR! https://github.com/chrismathew99/pdf/issues/5
⚡This is an automated 🛠️ Pull Request raised by Codemonk
Issue: Here's a plan to build a front-end website for PDF tools such as merging, splitting, and extracting text, conversion to image using Python. Make sure to give different button for all the functionalities: Since we want to build a front-end website, Flask would be a lightweight and easy-to-use option for creating web applications in Python. Define Routes: Define routes in your Flask application to handle different functionalities like uploading PDFs, merging, splitting, and extracting text, conversion to image from pdf, and downloading manipulated PDFs. HTML Templates: Create HTML templates for different pages of your website, such as upload page, manipulation options page, and result page. Static Files: Place any static files like CSS or JavaScript in the appropriate directories within your Flask application. PDF Manipulation Logic: Implement PDF manipulation logic using Python libraries within your Flask routes. For example, you can use PyPDF2 for merging, splitting, and extracting text from PDFs, pdf2image for converting PDF pages to images, etc. Front-end Interactions: Use JavaScript to enhance user interactions, such as showing progress bars during PDF manipulation or providing real-time feedback.