How do I rotate a PDF annotation by an arbitrary angle?

There is now an API to support this, though as mentioned above, since this is not supported by the PDF specification, if the annotation is later edited in anyway the custom rotation most likely will be lost.