Metadata-Version: 2.1
Name: tkPDFViewer
Version: 0.1
Summary: The tkPDFViewer is python library, which allows you to embed the PDF file in your tkinter GUI
Home-page: https://github.com/Roshanpaswan/
Author: Roshan Paswan
Author-email: roshanpaswan121121@gmail.com
License: MIT
Download-URL: https://github.com/Roshanpaswan/tkPDFViewer/archive/0.1.zip
Keywords: PdfViewer,tkinter,pdf
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Description-Content-Type: text/markdown
Requires-Dist: PyMuPDF

# tkPDFViewer

[Powered by [Roshan]](https://github.com/Roshanpaswan/PdfViewer)

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.



> High quality pdf pages image
> with customizable width and height
> worked with python 2.7+.

### Installation


Install tkPDFViewer using pip

```sh
pip install tkPDFViewer
```


Install tkPDFViewer using pip3

```sh
pip3 install tkPDFViewer
```

Install using git.

```sh
pip install git+"https://github.com/Roshanpaswan/tkPDFViewer/archive/0.1.zip"
```

### Usage

An Example of Using tkPDFViewer.

```sh
from tkPDFViewer import tkPDFViewer as pdf
from tkinter import*
root = Tk()

#create object like this.
variable1 = pdf.ShowPdf()
#Add your pdf location and width and height.
variable2 = variable1.pdf_view(root,pdf_location=r"location",width=50,height=100)
variable2.pack()
root.mainloop()

```


### Attributes

```sh
pdf_location = "" --> location of your pdf
```

```sh
width = 0 --> width of your pdf to be embeded
```

```sh
height = 0 --> height of your pdf to be embeded
```

```sh
To embed your pdf use --> .pack() or .grid() or .place()
```

```sh
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.
```

```sh
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. 
```


# Dependencies

 - tkinter
 - PyMuPDF
 - Thread
 - math


License
----

MIT

# Author

 - [Roshan Paswan](https://github.com/Roshanpaswan/)


