I want to rotate a piece of text 90 degrees counter-clockwise. I wrote the
code below with no attempts at using rotation and the string shows up
fine. When I added in the saveState(), concatCTM(), and restoreState()
method calls, the text does not show up at all. Is there a step I am missing?
// oneGenericIdBlock is a PdfTemplate
oneGenericIdBlock.saveState(); // new code
// cos, sin, -sin, cos, 0, 0
oneGenericIdBlock.concatCTM(0, 1, -1, 0, 0, 0); //
new code
ColumnText ct = new ColumnText(oneGenericIdBlock);
ct.setSimpleColumn(x, textY,
x + (2f * BUBBLE_RADIUS),
y,
7, Element.ALIGN_CENTER);
ct.addText(new Chunk("9", bubbleFont));
ct.go();
oneGenericIdBlock.restoreState(); // new code
Thanks.
Jeff
At 10:41 AM 3/7/2002 +0000, you wrote:
>Yes. Apply PdfContentByte.concatCTM() probably between a
>saveState()/restoreState().
>
>Best Reards,
>Paulo Soares
>
> > -----Original Message-----
> > From: Jeff Kolesky [SMTP:[EMAIL PROTECTED]]
> > Sent: Wednesday, March 06, 2002 19:49
> > To: [EMAIL PROTECTED]
> > Subject: [iText-questions] drawing rotated text?
> >
> > Is there a way to draw rotated text through a ColumnText object?
> >
> > Thanks.
> >
> >
> > _______________________________________________
> > iText-questions mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions