contents = page.getContents()
if contents is None:
    stream = ContentStream(TEXT_STREAM, page.pdf)
else:
    contents.operations.extend(TEXT_STREAM)
Adding information to pdf, PyPDF2 merging too slow