Coder Social home page Coder Social logo

divyansh645 / pdfify-web-extension Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 161 KB

A Chrome extension that converts web page text into PDF files. Utilizes Express.js for the backend, EJS for templating, Tailwind CSS for styling, and Google Generative AI API for text processing. Enables seamless in-browser text selection and PDF generation.

JavaScript 62.01% HTML 6.09% EJS 31.90%

pdfify-web-extension's Introduction

PDFify

"PDFify Web Extension" is a Chrome extension designed to convert text content from web pages into PDF files. The project leverages various technologies, including Express.js for the backend server, EJS for templating, Tailwind CSS for styling, and the Google Generative AI API for text processing. The extension enables users to select text on any webpage and convert it into a PDF directly through the browser.

Project Structure:

Project Structure The project consists of several key files, each serving a specific purpose:

1.server.js - Main server file, handles PDF generation and file management.

2.views/allpdfs.ejs - EJS template for displaying a list of generated PDFs.

3.views/index.ejs - EJS template for the main application interface.

4.manifest.json - Configuration file for the Chrome extension.

5.background.js - Background script for the Chrome extension.

Key Functionalities:

1.Context Menu:-Adds a context menu item for converting selected text to PDF

2.Text Processing:-Captures selected text and sends it to the server for PDF generation.

3.PDF Download:-Handles the PDF file download once generated.

Workflow:

diagram-export-6-24-2024-1_48_38-PM

Screenshots:

2



1



3



Conclusion:

PDFify Web provides a seamless solution for converting text content into PDF files directly from the browser. The integration of modern web technologies ensures a responsive and user-friendly experience, while the use of Google Generative AI enhances text processing capabilities. The Chrome extension further extends the functionality, making it easy for users to convert web content into PDFs on the fly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.