i have a problem with the rotation.
What i have :
- GdViewer
- GdPicturePDF
What i do :
- i draw on the pdf page plenty of AnnotationRubberStamps ( a fill ellispe with a number inside) (=>OK)
- I rotate the pdf page : (90°)
Code: Select all
m_NativePDF.RotatePage(90)
GdViewer1.RotateAnnotations(90)
'code to rotate the annotations in the good way of reading :
Me.MesPages(Me.GdViewer1.CurrentPage - 1).RotationPage = m_NativePDF.GetPageRotation
For i As Integer = 0 To GdViewer1.GetAnnotationCount - 1
Dim myannot As GdPicture.AnnotationRubberStamp = CType(GdViewer1.GetAnnotationFromIdx(i), GdPicture.AnnotationRubberStamp)
myannot.Rotation = 360 - Me.MesPages(Me.GdViewer1.CurrentPage - 1).RotationPage
Next
BUT if i add more annotation on this rotated page ... i am not abble to set the good rotation of this one ..
i have tried many things ( reset rotation of all before adding, find the good rotation,.. ) but i failed.
Thanks for helping.