Как мы можем создать пустой PDF-файл с помощью pypdf2?
import PyPDF2
writer = PyPDF2.PdfFileWriter()
writer.addBlankPage(219, 297)
with open (r"C:\\Users\\Aditya\\.spyder-py3\\scripting in python\\sample pdf with python\\mergedpdf.pdf","wb") as file:
writer.write(file)
file.close()
невозможно создать PDF-файл, используя это.