Skip to content

Commit

Permalink
0,1
Browse files Browse the repository at this point in the history
  • Loading branch information
slxnxl committed Mar 11, 2024
1 parent 1f564b3 commit 2a25f6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Simple pdf compressor
2 changes: 2 additions & 0 deletions pdfcompress_gui.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import tkinter as tk
from tkinter import filedialog, messagebox
from pypdf import PdfReader, PdfWriter
import fitz

class PDFCompressorApp:
def __init__(self, master):
Expand Down Expand Up @@ -39,6 +40,7 @@ def browse_file(self):
self.label_filename.config(text=f"Выбран файл: {file_path}")
self.file_path = file_path

# TODO протестировать PyMuPDF и PyPDF2
def compress_pdf(self):
if hasattr(self, 'file_path'):
quality = self.scale_quality.get()
Expand Down

0 comments on commit 2a25f6f

Please sign in to comment.