diff --git a/README.md b/README.md new file mode 100644 index 0000000..fdbdbc7 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +Simple pdf compressor \ No newline at end of file diff --git a/pdfcompress_gui.py b/pdfcompress_gui.py index eb45490..eadb448 100644 --- a/pdfcompress_gui.py +++ b/pdfcompress_gui.py @@ -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): @@ -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()