One other thing: Is it possible to set the text's opacity level? On Tue, Jan 24, 2017 at 10:53 PM, Gilad Denneboom <[email protected] > wrote:
> Hi all, > > I'm using a PDPageContentStream to create a watermark which is rotated by > 45 or 315 degrees, and I would like to place it at the center of the page's > media box, but I can't seem to get it to work because the setTextRotation > function moves the bottom-left corner of the box, and I can't figure out > how the moveTextPositionByAmount works... > Basically what I would like is to be able to calculate the height and > width of the text, so I could figure out where on the page to place it so > that the center of both objects are aligned. Any tips how to achieve that? > > Thanks in advance! >

