Skip to content

Commit 60706e6

Browse files
Updated main README file as permitted in PR DhanushNehru#277.Kindly add hacktoberfest2024-accepted label
1 parent c36b7f7 commit 60706e6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

PDF Merger/pdf_merger/merger.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ def __init__(self):
66
self.pdf_list = []
77

88
def add_pdf(self, pdf_file):
9-
"""Add a PDF file to the list if it's valid."""
9+
1010
if os.path.isfile(pdf_file) and pdf_file.endswith('.pdf'):
1111
self.pdf_list.append(pdf_file)
1212
print(f'Added: {pdf_file}')
1313
else:
1414
print(f'Error: Invalid file - {pdf_file}')
1515

1616
def merge_pdfs(self, output_filename):
17-
"""Merge all added PDFs into a single output file."""
17+
1818
pdf_writer = PyPDF2.PdfWriter()
1919

2020
try:

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ More information on contributing and the general code of conduct for discussion
8787
| OTP Verification | [OTP Verification](https://github.com/DhanushNehru/Python-Scripts/tree/master/OTP%20%20Verify) | An OTP Verification Checker. |
8888
| Password Generator | [Password Generator](https://github.com/DhanushNehru/Python-Scripts/tree/master/Password%20Generator) | Generates a random password. |
8989
| Password Manager | [Password Manager](https://github.com/nem5345/Python-Scripts/tree/master/Password%20Manager) | Generate and interact with a password manager. |
90+
| PDF Merger | [PDF Merger](https://github.com/DhanushNehru/Python-Scripts/tree/master/
91+
PDF%20Merger) |Merges multiple PDF files into a single PDF, with options for output location and custom order.|
9092
| PDF to Audio | [PDF to Audio](https://github.com/DhanushNehru/Python-Scripts/tree/master/PDF%20to%20Audio) | Converts PDF to audio. |
9193
| PDF to Text | [PDF to text](https://github.com/DhanushNehru/Python-Scripts/tree/master/PDF%20to%20text) | Converts PDF to text. |
9294
| Planet Simulation | [Planet Simulation](https://github.com/DhanushNehru/Python-Scripts/tree/master/Planet%20Simulation) | A simulation of several planets rotating around the sun.

0 commit comments

Comments
 (0)