Skip to content

Commit 3cdc32d

Browse files
committed
Update app.py
1 parent ae7e9b8 commit 3cdc32d

File tree

1 file changed

+54
-9
lines changed

1 file changed

+54
-9
lines changed

app.py

Lines changed: 54 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11

2+
def main():
23

3-
4-
if __name__ == "__main__":
5-
6-
print("PyMuPDF Command Line App")
4+
print("\nPyMuPDF Command Line App")
75

86
print("\n\n","Pages","\n")
97

10-
print("\tmerge")
8+
print("\tmerge - split")
119

12-
print("\tmove")
10+
print("\tmove - delete - fcopy")
1311

1412
print("\n\n","Embed files","\n")
1513

@@ -21,9 +19,16 @@
2119

2220
print("\n\n","Images","\n")
2321

24-
print("\tpixmap")
22+
print("\tpixmap - getimages")
23+
24+
print("\n\n","Security","\n")
2525

26-
goto = input("Function#: ")
26+
print("\tencrypt - decrypt")
27+
28+
29+
goto = input("\nFunction: ")
30+
31+
print("\n")
2732

2833
if(goto == "htmlbox"):
2934

@@ -43,4 +48,44 @@
4348

4449
elif(goto == "search"):
4550

46-
import search
51+
import search
52+
53+
elif(goto == "delete"):
54+
55+
import delete
56+
57+
elif(goto == "fcopy"):
58+
59+
import fcopy
60+
61+
elif(goto == "encrypt"):
62+
63+
import encrypt
64+
65+
elif(goto == "decrypt"):
66+
67+
import decrypt
68+
69+
elif(goto == "getimages"):
70+
71+
import getimages
72+
73+
elif(goto == "split"):
74+
75+
import split
76+
77+
78+
more = input("Continue? (y/n): ")
79+
80+
if(more.strip().lower() == "y"):
81+
82+
main()
83+
84+
else:
85+
86+
print("Exiting...")
87+
88+
89+
if __name__ == "__main__":
90+
91+
main()

0 commit comments

Comments
 (0)