I have the following code:
I wish to transform the text using setTextMatrix. But, the matirx is not applied to the showTextAligned. It is only applied when I use the showText(String text);
How can I transform my text with setTextMatrix AND center align it on an x,y coordinate?
xPos = 72 + xOffset;
yPos = 556; cb.beginText(); cb.setFontAndSize(barcodeFont, LARGE_FONT_SIZE); cb.setTextMatrix(1.5f,0,0,1.25f,xPos,yPos); cb.showTextAligned(PdfContentByte.ALIGN_CENTER, make3of9(wdc.getHarvestUnit()), xPos, yPos, 0); cb.endText(); Thanks,
Brandon
|
- RE: [iText-questions] Alignment of transformed text Brandon Goodin
- RE: [iText-questions] Alignment of transformed text Paulo Soares