Rajiv Sabat wrote:
> Thanks fro the reply. Since i am new to this tool, i m bit struggling.
> My 2nd question was :
> how to set the width of the PdfpCell?
> i saw in example that is like this : float[] widths = {0.1f, 0.1f,
> 0.05f, 0.75f};
> since i have 150 cells in this table, and i want to set only one cell width.
> so is there any method to set the width of one cell only.
That's not possible. It's also not an issue. Just do:
float[] widths = new float(150);
for (int i = 0; i < widths.length; i++) {
widths[i] = 1f;
}
Then set the specific column width. For instance: widths[0] = 3f; will
set the width of the first column to 3 times the width of all the other
columns.
Note that you're not only new "with this tool", it shows that you're new
at programming. Developers that have invested in studying computer
science so that they can enter the market with a certain expertise,
don't like people who don't know that 0xFF equals 255, and who don't
know any method that converts "FF" into "255". Such a question has
nothing to do with your lack of understanding of iText; nor has your
question about creating an array, other than by using angle brackets.
Questions like this make real developers sad because they know that
people like you are bad for business. It's nothing personal; it's just
business.
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/