Works for a single page file, probably Although arguably rotation is not quite lossless, and the two could be mutually exclusive anyway, so maybe this is it. Did not check in some debugging changes (lossless=False, text debugging=True) PyPDF seems to get merging wrong when one of the pages is rotated.