def mergeRotateAroundPointPage(page, page2, rotation, tx, ty):
    translation = [[1, 0, 0], [0, 1, 0], [-tx, -ty, 1]]
rotation = math.radians(rotation)
rotating = [[math.cos(rotation), math.sin(rotation), 0], [-math.sin(
    rotation), math.cos(rotation), 0], [0, 0, 1]]
rtranslation = [[1, 0, 0], [0, 1, 0], [tx, ty, 1]]
ctm = utils.matrixMultiply(translation, rotating)
ctm = utils.matrixMultiply(ctm, rtranslation)
return page.mergeTransformedPage(page2, [ctm[0][0], ctm[0][1], ctm[1][0],
    ctm[1][1], ctm[2][0], ctm[2][1]])
How to merge two landscape pdf pages using pyPdf