forked from Sh1vam/AI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__main__.py
20 lines (19 loc) · 938 Bytes
/
__main__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import __init__
import Browse
import PDFMerg as PM
import os
import Merger as M
import time
PM.replace('PDFMerg.txt','/','\\\\')
print("\nPath of Your File\n", PM.read())
print('''\nExample:= "C:\\Users\\Shivam\\Downloads\\CamScanner 07-28-2020 13.22.15.pdf","D:\\Users\\Shivam\\Downloads\\New Doc 2020-07-21 19.27.15.pdf" ''')
print("\nNote := The file In C Drive will be First And file in D drive will be Second")
print('''\nExample (only for one file):= "C:\\Users\\Shivam\\Downloads\\CamScanner 07-28-2020 13.22.15.pdf",''')
print("\nNote:= Protected Pdf Need To Be Decrepted First By User")
print("\nNote:= if u are running it in terminal and path is too long copy it from text file which will open now")
time.sleep(3)
os.startfile('PDFMerg.txt')
print("\n Any Error Will Exit The Program")
print("\n You Can Change the order of PDF Files to be Merged")
print(' remove "", or " ", from Path Pasted ')
M.merger()