Skip to content

Commit

Permalink
generated docs using co pilott
Browse files Browse the repository at this point in the history
  • Loading branch information
slayerrr12 committed Dec 20, 2023
1 parent 9aff92e commit e21ce4c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Cool Scripts/mergepdfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@
import PyPDF2

def merge_pdfs(pdf1_path, pdf2_path, output_path):
"""
Merge two PDF files into a single PDF file.
Args:
pdf1_path (str): The file path of the first PDF.
pdf2_path (str): The file path of the second PDF.
output_path (str): The file path of the merged PDF.
Returns:
None
"""
# Open the PDFs in binary mode
with open(pdf1_path, 'rb') as pdf1_file, open(pdf2_path, 'rb') as pdf2_file:
# Create PDF reader objects
Expand Down

0 comments on commit e21ce4c

Please sign in to comment.