Giter Site home page Giter Site logo

zain-bin-arshad.github.io's Introduction

PDF-Viewer

A Pure Python PDFViewer, which provides almost all functionalities you want from a PDF reader. Following are the some of main features of this application

  • Searching through PDF document
  • Table of contents
  • Take notes and save them automatically
  • Night mode for taking care of your eyes
  • Zooming feature
  • Developed in pure python (python-3.7.4)

Why bother creating new PDF Viewer?

I wanted to create an application that requires me to have a PDF Viewer with access to the source code, in python. I searched the internet for a PDF Viewer written in Python, but all in vain. I couldn't find any reasonable result. Hence, I decided to create my own PDF Viewer, that uses pure python packages.

How to run?

Make sure you have installed these packages:

  • PySimpleGUI
  • PyMuPDF
  • fitz

You can simple run this command to install all packages. First make sure you are in same directory as requirements.txt, then type:

pip install -r requirements.txt

This will install all the packages, then you have to simple run this command:

python pdfviewer.py

Given command will generate this screen: 1

Now, you can open any book and enjoy reading. 5xVcJDdb75

Searching

We all just want to search through a document and get things done quickly, well I got your back. Keep searching using this advanced user-friendly search feature.

animated

Night Mode

You want to read more but your eyes can't see the white screen anymore, switch to night mode. This not only updates the application's theme, but converts the PDF to black background and white text so that your eyes can relax. night

Notes

Well you can take notes as you go through the book. On the right side there a space for writing anything you want. There is a "Check Box" at the right hand corner make sure that box is checked, only then the note will be saved.

A file name like this "%PDF Filename%_notes.txt" will appear once you close the document. This file will look something like this:

animated

You can see how easy it is to navigate through this text file and see all the notes.

What's so special about it?

Once you have taken the notes, then, whenever you open the same file again, all the notes will appear again with respective to there page number. If you take example of above given screenshot of the notes.txt, when I open the same file again you can see the notes:

animated

Make sure you don't delete the text file that is created automatically by the PDFViewer.

Buy me a coffee

If you like my effort and want this project to move forward, you can support this project by using the Sponser button above. Every generous help is much appreciated.

Pythonic Code

This code is not as much pythonic as I want it to be, but I had just enough time and resources to get this done, so this is what it is. I might take 1-2 days out of my schedule to refactor this code base so anyone using this code don't want to kill me, hahaa.

Special Thanks

I want to thanks PySimpleGUI for developing such a great GUI-Framework in python.

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.