I'm trying to rotate PDF signature appearance(text and image) with iText 5.5 (Java Plugin). I'm signing a PDF and displaying some text(layer 2) with background image(layer 0). I want to rotate each page signature appearance by using PdfAnnotation. Can anyone help me out to fix that or can share the code how can we achieve this using iText 5?
For instance
PdfAnnotation freeText = PdfAnnotation.createFreeText(
appearance.stamper.getWriter(),
new Rectangle(x1, y1, x2, y2),
"Sample Text",
appearance.getAppearance())
freeText.setRotate(45)
appearance.stamper.addAnnotation(freeText, pageNumber)
My problem is that I want rotate signature appearance with dynamic rotation value.