The rotated pdf file is odd.
MemoryStream tempPdfStream = tempStream
PdfPageEditor pEdit = new PdfPageEditor();
pEdit.BindPdf(tempStream);
pEdit.Rotation = rotationAngle;
pEdit.Save(result);
// I input original pdf file into tempStream.
original pdf file : 1test_08232023.pdf (33.7 KB)
rotated pdf file : rotatedPDF.pdf (33.5 KB)