This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from pathlib import Path | |
from itertools import zip_longest | |
from PyPDF2 import PdfWriter, PdfReader, PageObject | |
def merge_two_into_one(in_path, out_path, force=False): | |
in_path = Path(in_path) | |
out_dir = Path(out_dir) | |
writer = PdfWriter() | |
reader = PdfReader(in_path) |