Python-Scripts icon indicating copy to clipboard operation
Python-Scripts copied to clipboard

Update PDF Merger and Splitter.py

Open Sharmeen20 opened this issue 2 months ago • 0 comments

Refactor PDF utility script with improved structure and error handling

  • Added docstrings for merge_pdfs and split_pdf functions
  • Improved filename handling using os.path.splitext
  • Implemented error handling for file read/write operations
  • Added user feedback via print statements
  • Used enumerate with start=1 for better page numbering
  • Prepared script for CLI usage with main block

PR Title

Give a title to your PR

Summary

summary...

Description

The changes are as follows:

  • Change 1
  • Change 2

Checks

in the repository

  • [x] Made no changes that degrades the functioning of the repository
  • [x] Gave each commit a better title (unlike updated README.md)

in the PR

  • [x] Followed the format of the pull_request_template
  • [x] Made the Pull Request in a small level (for the creator's wellfare)
  • [x] Tested the changes you made

Thank You,

[Your Name]

Sharmeen20 avatar Oct 29 '25 09:10 Sharmeen20