Project Title

Web Application for PDF Manipulation and File Upload

Project Description

 Felix required a web application with several features, including multiline text fields with customizable attributes, PDF creation and preview, file upload and download capabilities, and an option to send the generated PDF via email. The application needed to incorporate a persistent database, a list and detail view, a PDF preview, and be able to upload and download files.

Key Responsibilities

  • Designed and developed a web application using Streamlit, ensuring a user-friendly interface.
  • Implemented two multiline text fields with HTML text formatting options for bold and italic text attributes.
  • Developed a “Create PDF” button to generate PDF items from the text fields, capturing their position and size on the PDF.
  • Added functionality for users to upload PDF and PNG files, with these files being displayed in a list below the upload button.
  • Integrated a PDFView to show the created PDF, displaying the texts and any additional lines based on user interactions.
  • Implemented a “Download PDF” button to allow users to download the generated PDF and a “Send as Email” button for emailing the PDF.
  • Ensured the application included a persistent database for storing and retrieving data.
  • Advised on security measures, including account creation or social authentication for enhanced security.

Technologies Used

  • Streamlit (for the web application interface)
  • Python
  • PyPDF2 (for PDF manipulation)
  • HTML/CSS (for text formatting)
  • Firebase (for deployment and database management)

Challenges Faced:

  • Ensuring text attributes like bold and italic were accurately represented in the PDF.
  • Handling file uploads and displaying them correctly within the application.
  • Integrating PDF generation and ensuring the placement of text and additional elements was precise.

Results Achieved

  • Successfully delivered a functional and user-friendly web application that met all of Felix’s requirements.
  • Enabled users to create, preview, download, and email PDFs directly from the web app.
  • Provided a solution that Felix appreciated for its communication and execution, with plans for further collaboration.

Screenshots/Demo

Feedback

© 2024 Ifrah Shahid. All Rights Reserved.