{"id":18717181,"url":"https://github.com/akascape/ctkpdfviewer","last_synced_at":"2025-06-23T03:33:35.981Z","repository":{"id":171356556,"uuid":"647810488","full_name":"Akascape/CTkPDFViewer","owner":"Akascape","description":"A simple yet powerfull pdf viewer for customtkinter! (extension/add-on)","archived":false,"fork":false,"pushed_at":"2025-04-08T05:15:56.000Z","size":37,"stargazers_count":53,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T13:51:31.496Z","etag":null,"topics":["customtkinter","customtkinter-widgets","pdf-document","pdf-viewer","tkinter","tkinter-graphic-interface","tkinter-gui","tkinter-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Akascape.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-05-31T15:07:18.000Z","updated_at":"2025-04-08T05:16:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"e5ea3543-d72f-483b-884b-edaea673f014","html_url":"https://github.com/Akascape/CTkPDFViewer","commit_stats":null,"previous_names":["akascape/ctkpdfviewer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Akascape/CTkPDFViewer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akascape%2FCTkPDFViewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akascape%2FCTkPDFViewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akascape%2FCTkPDFViewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akascape%2FCTkPDFViewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Akascape","download_url":"https://codeload.github.com/Akascape/CTkPDFViewer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Akascape%2FCTkPDFViewer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261405015,"owners_count":23153513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["customtkinter","customtkinter-widgets","pdf-document","pdf-viewer","tkinter","tkinter-graphic-interface","tkinter-gui","tkinter-python"],"created_at":"2024-11-07T13:15:13.805Z","updated_at":"2025-06-23T03:33:30.965Z","avatar_url":"https://github.com/Akascape.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CTkPDFViewer\nA simple yet powerfull pdf viewer widget for customtkinter! This can be helpful for adding **documentation (in the form of PDF)** inside your application. \n\nUsers can quicky view the offline copy of your documentation.\n\n## Features\n- load pdf with ease\n- configure page width and height\n- scrollable pages\n- configurable options\n\n## Installation\n### [\u003cimg alt=\"GitHub repo size\" src=\"https://img.shields.io/github/repo-size/Akascape/CTkPDFViewer?\u0026color=white\u0026label=Download%20Source%20Code\u0026logo=Python\u0026logoColor=yellow\u0026style=for-the-badge\"  width=\"400\"\u003e](https://github.com/Akascape/CTkPDFViewer/archive/refs/heads/main.zip)\n\n**Requirements**\n- [PyMuPDF](https://pypi.org/project/PyMuPDF/) `pip install PyMuPDF`\n\n**Download the source code, paste the `CTkPDFViewer` folder in the directory where your program is present.**\n\n## Usage\n### CTkPDFViewer\n```python\nimport customtkinter\nfrom CTkPDFViewer import *\n\nroot = customtkinter.CTk()\nroot.geometry(\"700x600\")\npdf_frame = CTkPDFViewer(root, file=\"my_file.pdf\")\npdf_frame.pack(fill=\"both\", expand=True, padx=10, pady=10)\nroot.mainloop()\n```\n\n![example](https://github.com/Akascape/CTkPDFViewer/assets/89206401/1324243e-da47-4bd8-af46-cded53cb7b51)\n\n### CTkPDFViewerNavigate\n```python\nimport customtkinter\nfrom CTkPDFViewer import *\n\nroot = customtkinter.CTk()\nroot.geometry(\"700x600\")\npdf_frame = CTkPDFViewerNavigate(root, file=\"my_file.pdf\")\npdf_frame.pack(fill=\"both\", expand=True, padx=10, pady=10)\nroot.mainloop()\n```\n\n## Arguments\n| Parameter | Description |\n|-----------| ------------|\n| **master** | parent widget  |\n| **file** | the PDF file you want to view |\n| page_width | **optional**, change the width of the pages |\n| page_height | **optional**, change the height of the pages |\n| page_separation_height | change the _pady_ between the pages |\n| **other frame parameters | _All other ctkscrollable frame parameters can be passed_ |\n\nYou can also change all these parameters using the `.configure()` method. Eg: `pdf_frame.configure(file=\"new_file.pdf\", ...)`\n\nThat's all, hope it will help!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakascape%2Fctkpdfviewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakascape%2Fctkpdfviewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakascape%2Fctkpdfviewer/lists"}