|
Dear sir,
I am a java developer and i am using the itext
library for writing the text in a pdf document and am facing the following
problem-
I am trying to write the
text in a pdf document by aligning them ike left alignment,right alignment &
center alignment.I am not able to align the text to right i.e. for right
alignment.The problem is that depending on the length of string,some amount of
space is getting introduced beside the string. I am using the PdfContentByte
library and the way I am using the library in the following way-
PdfContentByte cb =
getPdfContentByte();
cb.beginText();
cb.setTextMatrix(1.0,1.0,1.0,1.0,x,y);
cb.endText();
I just wanted to know the reason and solution for
the same.
Thanks & Regards,
Vishal.
|
