tkPDFViewer
The tkPDFViewer is python library, which allows you to embed the PDF file in your tkinter GUI. In just three steps.
- Install
- Import
- Embed on your gui
Features!
- Embed your PDF in your tkinter GUI.
- Customize width and height of your PDF.
- Zoom in and zoom out you pdf with shortcuts like ctrl+mousewheel or ctrl+ or ctrl-
- Open Encrypted PDFs
High quality pdf pages image with customizable width and height worked with python 3.0+.
Installation
Install tkPDFViewer using pip
pip install tkinterPdfViewer
Install tkPDFViewer using pip3
pip3 install tkinterPdfViewer
Usage
An Example of Using tkinterPdfViewer.
from tkinterPdfViewer import tkinterPdfViewer as pdf
import tkinter as tk
root = tk.Tk()
root.geometry("700x780")
d = pdf.ShowPdf().pdf_view(root, pdf_location=r"location", width=100, height=100)
d.pack()
root.mainloop()
Attributes
pdf_location = "" --> location of your pdf
width = 0 --> width of your pdf to be embeded
height = 0 --> height of your pdf to be embeded
To embed your pdf use --> .pack() or .grid() or .place()
bar --> True or False, Through this attribute you can hide or unhide the loading bar which showing on the frame after your gui is opened. This indicate that 'how much your pdf is loaded'.Once it complete it unhide automatically and your pdf get embeded.
load --> after or before, Through this attribute you can decide that , when your pdf object is to convert. If you select 'after' then the object of your pdf is convert after your gui is opened.Otherwise it convert first then your gui is opened. It is recommended that to select after which is default.Beacause this takes time. Depends on the size of pdf. And if you select 'before' then it make your gui slow to open.
dpi --> change dpi of the pdf to show
Dependencies
- tkinter
- PyMuPDF
- Thread
- math
- customtkinter
License
MIT
Author
Metadata
Release files for tkinterPdfViewer 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tkinterPdfViewer-0.2.tar.gz | 5.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tkinterPdfViewer-0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / tkinterPdfViewer-0.2.tar.gz
| Download URL | tkinterPdfViewer-0.2.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf992eb0088c050fba76d2e40431b7058fb71a33ca99f9a2f5a7d5a013f612c7
|
|
BLAKE2b-256 checksum How to use checksums |
6db1a3c0bf30796b16a962472af5662956bb3029405c6f1ddd888faa14e1b498
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.1
|
Release files / tkinterPdfViewer-0.2-py3-none-any.whl
| Download URL | tkinterPdfViewer-0.2-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e81e3ad81c33fcf68e6ae676cc531c8bc507cb546e69c8684aafe052007bda84
|
|
BLAKE2b-256 checksum How to use checksums |
233b8c6da5754ea39fc10936aacd0c4272899869fea14ed94277d46fce9a0ba0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.1
|
Security for tkinterPdfViewer 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.