Skip to content

Browser-based PDF viewer built with Flask and PDF.js. Easily adaptable for any web framework. Fast, modern, and developer-friendly—save hours integrating PDF viewing into your project.

License

Notifications You must be signed in to change notification settings

knightafter/pdf-viewer-with-pdf.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

🖥️ Professional PDF Viewer in the Browser

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


Screenshot 2025-08-04 at 5 02 23 AM

🚀 Project Overview

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


🎯 Purpose

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.


📦 Features

  • Upload and view PDF documents in the browser
  • Smooth page navigation and zoom controls
  • Modern, ChatPDF-style interface
  • Easily customizable and extendable

⚠️ Limitations

Note:
Text selection in opened PDF files is not yet implemented.
Future updates will add full text selection support.


🛠️ Getting Started

  1. Install dependencies:
    pip install Flask
  2. Run the app:
    python app.py
  3. Open your browser:
    Visit http://localhost:5000

📚 PDF.js Library

For more information about PDF.js, visit the official documentation:
👉 https://mozilla.github.io/pdf.js/


About

Browser-based PDF viewer built with Flask and PDF.js. Easily adaptable for any web framework. Fast, modern, and developer-friendly—save hours integrating PDF viewing into your project.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published