I attached the input PDF document. It is created using a IntelliCAD based software, using print-> "Adobe pdf". The orientation was set to Landscape.
If you comment out the line "PdfSignature.EnableValidationAppearance = True", you will see that the content of the signature is rotated.
The source code is:
Dim store As New X509Store(StoreName.My, StoreLocation.CurrentUser)
Dim doc = New PdfLoadedDocument(input)
store.Open(OpenFlags.ReadOnly)
Dim pageBase As PdfPageBase = doc.Pages(0)
Dim height = pageBase.Size.Height
Dim PdfSignature = New PdfSignature(doc, pageBase, MyCert, "Signature1")
PdfSignature.EnableValidationAppearance = True
PdfSignature.TimeStampServer = New TimeStampServer(New Uri(TimestampServer))
PdfSignature.EnableLtv = EnebleLtv
PdfSignature.DocumentPermissions = PdfCertificationFlags.AllowComments Or PdfCertificationFlags.AllowFormFill Or PdfCertificationFlags.ForbidChanges
PdfSignature.Bounds = GetBounds(pageBase, input)
PdfSignature.ContactInfo = ContactInfo
PdfSignature.LocationInfo = LocationInfo
PdfSignature.Reason = Reason
DrawSignatureImage(PdfSignature, pageBase.Rotation)
DrawSignatureInfo(PdfSignature, pageBase.Rotation )
doc.Save(output)
doc.Close(True)
I also noticed that even with EnableValidationAppearance = True, the signature validation mark is displayed different in portrait and in landscape mode.
Document page in portrait (RotationAngle0):

Document page in landscape mode (RotationAngle90):

The above bugs are not very important and at the moment I can continue my project with the existing functionality. I just want to report bugs so you can make your product even better!
Regards,
Stavros D.
Attachment:
Landscape_Test_unsigned_2f8fb43c.zip