Repository navigation
Expand file tree
/
Copy pathutils.py
More file actions
68 lines (47 loc) · 1.47 KB
/
Copy pathutils.py
File metadata and controls
68 lines (47 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
from colorama import Fore, Style, init
# Initialize Colorama
init(autoreset=True)
# ==========================================
# Display Banner
# ==========================================
def show_banner():
print(Fore.CYAN + Style.BRIGHT)
print("=" * 55)
print(" PDF MANAGER PRO")
print("=" * 55)
print(Style.RESET_ALL)
# ==========================================
# Display Menu
# ==========================================
def display_menu():
print(Fore.YELLOW + "\nPDF Manager Menu")
print("-" * 30)
print("1. List PDFs")
print("2. PDF Information")
print("3. Merge PDFs")
print("4. Split PDF")
print("5. Extract Pages")
print("6. Rename PDF")
print("7. Delete PDF")
print("8. Exit")
print("-" * 30)
# ==========================================
# Success Message
# ==========================================
def success_message(message):
print(Fore.GREEN + f"\n✓ {message}")
# ==========================================
# Error Message
# ==========================================
def error_message(message):
print(Fore.RED + f"\n✗ {message}")
# ==========================================
# Warning Message
# ==========================================
def warning_message(message):
print(Fore.YELLOW + f"\n! {message}")
# ==========================================
# Pause Screen
# ==========================================
def pause():
input(Fore.CYAN + "\nPress Enter to continue...")