https://github.com/bbc-esq/pyside6_pdf_viewer
Simple PDF Viewer Using Pyside6 that can be run standalone or included in a larger program.
https://github.com/bbc-esq/pyside6_pdf_viewer
pdf pdf-document pdf-files pdf-viewer pdfjs pyside6
Last synced: 6 months ago
JSON representation
Simple PDF Viewer Using Pyside6 that can be run standalone or included in a larger program.
- Host: GitHub
- URL: https://github.com/bbc-esq/pyside6_pdf_viewer
- Owner: BBC-Esq
- Created: 2023-09-20T15:03:58.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-03-06T10:59:58.000Z (8 months ago)
- Last Synced: 2025-04-06T11:25:52.431Z (7 months ago)
- Topics: pdf, pdf-document, pdf-files, pdf-viewer, pdfjs, pyside6
- Language: Python
- Homepage: http://www.chintellalaw.com
- Size: 5.41 MB
- Stars: 11
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PySide6 PDF Viewer
Simple PDF viewer made with PySide6. Scoured the Internet for days and finally found a way to do it so here you go. If you want one using PyQt instead of Pyside, check out my other repository.This repository has two viewers, one based on javascript and the other using the Chromium engine that is part of Pyside6. I'll let you decide who has the better implementation.
# Installation
> First, make sure you're running [Python 3.10+](https://www.python.org/downloads/release/python-31011/)
Download the latest releast and unzip the folder to somewhere on your computer. Then, open the folder containing my repository files, create a command prompt, and create a virtual environment:
```
python -m venv .
```
Activate the virtual environment:
```
.\Scripts\activate
```
Upgrade pip
```
python -m pip install --upgrade pip
```
Install Dependencies
```
pip install PySide6
```
Unzip Javascript Files
:warning: You must unzip the folder within the ZIP file to the same exact directory where the scripts are located.:warning:# Run Program
### Javascript Version
```
python pyside6_pdfviewer_js.py
```
### Non-Javascript Version
```
python pyside6_pdfviewer.py
```## Please STAR if you found it useful so other people can find the repository easier!