Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 946 Bytes

File metadata and controls

28 lines (19 loc) · 946 Bytes

Website-to-PDF Web Tool

A modern web application that converts any webpage into a downloadable PDF using Flask, Playwright, and a responsive frontend with TailwindCSS + Alpine.js.

Features

  • Input any URL and generate a high‑fidelity PDF.
  • Preview the website thumbnail before conversion.
  • Customize page size (A4/Letter), margin, dark mode, and JavaScript wait time.
  • Clean, modern UI with gradient background and smooth animations.
  • Error handling for invalid URLs, timeouts, and blocked sites.
  • Fully responsive and mobile‑friendly.

Tech Stack

  • Backend: Python 3.8+, Flask, Playwright (async)
  • Frontend: TailwindCSS (CDN), Alpine.js
  • Deployment: Runs locally, easy to deploy on Render, Railway, or any WSGI‑compatible host.

Installation

  1. Clone the repository:
    git clone https://github.com/mustapha-devstack/website-to-pdf.git
    cd website-to-pdf
    
    
    playwright install chromium