diff --git a/Python_Scripts/DownloadSorter/Getting_Started.md b/Python_Scripts/DownloadSorter/Getting_Started.md new file mode 100644 index 0000000..fff2fdb --- /dev/null +++ b/Python_Scripts/DownloadSorter/Getting_Started.md @@ -0,0 +1,8 @@ +# Get Started +## Dependencies +- Uses standard python3 libraries + +## Usage +- Place the file within the folder(directory) that you want to organize +- Run the file +- Add to task scheduler if you want it to run any time a new file is added to the folder \ No newline at end of file diff --git a/Python_Scripts/PDFMerger/4B_final_part_1.pdf b/Python_Scripts/PDFMerger/4B_final_part_1.pdf new file mode 100644 index 0000000..d111376 Binary files /dev/null and b/Python_Scripts/PDFMerger/4B_final_part_1.pdf differ diff --git a/Python_Scripts/PDFMerger/4B_final_part_2.pdf b/Python_Scripts/PDFMerger/4B_final_part_2.pdf new file mode 100644 index 0000000..36dbd24 Binary files /dev/null and b/Python_Scripts/PDFMerger/4B_final_part_2.pdf differ diff --git a/Python_Scripts/PDFMerger/GetStared.md b/Python_Scripts/PDFMerger/GetStared.md index 3ebeaff..aba424e 100644 --- a/Python_Scripts/PDFMerger/GetStared.md +++ b/Python_Scripts/PDFMerger/GetStared.md @@ -1,4 +1,9 @@ # Getting Started ## Dependencies -- Requires python3 and PyPDF2 library. +- Requires python3 and pypdf library. -Use pip to install. + +## Usage +- Place file in folder(directory) with the pdf files you want to merge + - Files should be named alphabetically and use underscores `CS_Quiz_1.pdf` +- Run the file \ No newline at end of file diff --git a/Python_Scripts/PDFMerger/PDFMerger.py b/Python_Scripts/PDFMerger/PDFMerger.py index 45c787d..23ef54e 100644 --- a/Python_Scripts/PDFMerger/PDFMerger.py +++ b/Python_Scripts/PDFMerger/PDFMerger.py @@ -1,10 +1,12 @@ import sys -import PyPDF2 +from pypdf import PdfMerger import os -merger = PyPDF2.PdfFileMerger() -for file in os.listdir(os.curdir): +merger = PdfMerger() + +for file in os.listdir(os.getcwd()): if file.endswith(".pdf"): print(file) merger.append(file) - merger.write('CombinedFile.pdf') \ No newline at end of file + +merger.write('CombinedFile.pdf') \ No newline at end of file