Hi All,
I am having a problem with the PdfContentByte.ALIGN_RIGHT.
I am trying to add the one of the following texts to a pdf that I am editing "Copy" or "Duplicate". I want these words to be alligned to the top right hand with right alignment on the document. I have got it to print on the top right hand side but it is always printing with left alignment.
Here is a snippet of the code.
PdfTemplate templateAnnotation = null
......
......
alignment = PdfContentByte.ALIGN_RIGHT;
templateAnnotation.beginText();
templateAnnotation.setColorFill(color);
templateAnnotation.setFontAndSize(BaseFont.createFont(fontName, BaseFont.CP1252, true), fontSize);
templateAnnotation.showTextAligned(alignment, texte, posX, posY, 0);
templateAnnotation.endText();
......
Any ideas?
Regards,
Ricardo Coutinho
Consultant
Tel +352 26 29 77 37
Fax +352 26 48 34 60
Email [EMAIL PROTECTED]
__________________________________________________________________________
· This email and any files transmitted with it are CONFIDENTIAL and intended
solely for the use of the individual or entity to which they are addressed.
· Any unauthorized copying, disclosure, or distribution of the material within
this email is strictly forbidden.
· Any views or opinions presented within this e-mail are solely those of the
author and do not necessarily represent those of Odyssey Asset Management
Systems SA unless otherwise specifically stated.
· An electronic message is not binding on its sender. Any message referring to
a binding engagement must be confirmed in writing and duly signed.
· If you have received this email in error, please notify the sender immediately
and delete the original.
