rotate a rectangle in pdf using java

Job ID: 30638301

Budget: $10 – $30 USD

I need to rotate the rectangle that is printed in pdf without changing its position