Re: [iText-questions] tables text and margin

2007-07-16 Thread Bruno Lowagie

Corwin noname wrote:
How to get highest character to touch the top border of the cell? Is it 
possible to do that?


I just checked the book and it should be setUseAscender instead
of setAscender. I hope you already found this out yourself.
In any case: reading chapter 6 of the book would have saved
you from having to ask the question. What surprised me reading
your question was that you found setUseDescender, but failed
to find setUseAscender...

Document document = new Document();
PdfWriter.getInstance(document, new FileOutputStream("cellheight.pdf"));
document.open();
PdfPTable myTable = new PdfPTable(1);
PdfPCell cell = new PdfPCell();
cell.addElement(new Chunk("abcdefghijklmnopqrstuvwxuz"));
cell.setPadding(0);
cell.setUseAscender(true);
cell.setUseDescender(true);
myTable.addCell(cell);
document.add(myTable);
document.close();

br,
Bruno


cellheight.pdf
Description: Adobe PDF document
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] tables text and margin

2007-07-16 Thread Bruno Lowagie
Corwin noname wrote:
> How to get highest character to touch the top border of the cell? Is it 
> possible to do that?

I assume you have used setDescender(true);
(although you didn't say anything about the solution you
were using), but did you setAscender(true);
And what about the leading of the cell?
Did you take that into account?

What I meant with my counter-question was:
the information you are giving us is very vague.
That makes it almost impossible for us to answer
the question.

br,
Bruno

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] tables text and margin

2007-07-15 Thread Corwin noname
Thank you Bruno.Now I know why sealing in the houses are so high :)But I still 
don’t know how to get the top border to touch the top of the text. Or I 
rephrase the question:How to get highest character to touch the top border of 
the cell? Is it possible to do that?ThanksDmitri> > I need to insert text into 
a table so top and bottom of the text touches > > the cells borders.> > > > At 
the moment I have managed the text touch the bottom border but I have > > 
failed to do this with the top of the text.> > Suppose that you are an 
architect, and I ask you to build> a house so that my feet touch the floor and 
my hands touch> the ceiling in every room. The same should be true for my> wife 
and kids. What would be the first thing you'd ask me?> > Make the analogy with 
your question, and provide the answer> the architect needs to meet the 
requirement.> > br,> Bruno> > 
-> This 
SF.net email is sponsored by DB2 Express> Download DB2 Express C - the FREE 
version of DB2 express and take> control of your XML. No limits. Just data. 
Click to get it now.> http://sourceforge.net/powerbar/db2/> 
___> iText-questions mailing list> 
iText-questions@lists.sourceforge.net> 
https://lists.sourceforge.net/lists/listinfo/itext-questions> Buy the iText 
book: http://itext.ugent.be/itext-in-action/
_
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


Re: [iText-questions] tables text and margin

2007-07-14 Thread Bruno Lowagie
Corwin noname wrote:
> I need to insert text into a table so top and bottom of the text touches 
> the cells borders.
> 
> At the moment I have managed the text touch the bottom border but I have 
> failed to do this with the top of the text.

Suppose that you are an architect, and I ask you to build
a house so that my feet touch the floor and my hands touch
the ceiling in every room. The same should be true for my
wife and kids. What would be the first thing you'd ask me?

Make the analogy with your question, and provide the answer
the architect needs to meet the requirement.

br,
Bruno

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


[iText-questions] tables text and margin

2007-07-12 Thread Corwin noname


I need to insert text into a table so top and bottom of the
text touches the cells borders.

At the moment I have managed the text touch the bottom
border but I have failed to do this with the top of the text.

 

Any ideas how it can be done?

 

Thanks

Dmitri
_
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/