A modern, browser-based PDF viewer built with Flask and powered by PDF.js.
Easily adaptable to other frameworks with the help of AI!

This project provides a professional PDF viewing experience directly in your browser.
It uses the powerful PDF.js library for rendering PDF documents, allowing for fast and reliable viewing.
-
Framework: Flask (can be swapped for any other web framework)
-
PDF Rendering: PDF.js (loaded via CDN)
-
UI: Clean, modern, and responsive
-
- Framework: Flask (can be swapped for any other web framework)
-
PDF Rendering: PDF.js (loaded via CDN)
-
UI: Clean, modern, and responsive
Quickly see the code with an IDE experience — open this link
This project is designed to help the developer community save valuable time—often an hour or two—when building a PDF viewer for any web application.
Simply clone this repository and quickly adapt the viewer to your own project.
With PDF.js at its core, you can easily extend functionality and add more features as needed.
- Upload and view PDF documents in the browser
- Smooth page navigation and zoom controls
- Modern, ChatPDF-style interface
- Easily customizable and extendable
Note:
Text selection in opened PDF files is not yet implemented.
Future updates will add full text selection support.
- Install dependencies:
pip install Flask
- Run the app:
python app.py
- Open your browser:
Visit http://localhost:5000
For more information about PDF.js, visit the official documentation:
👉 https://mozilla.github.io/pdf.js/