简体   繁体   中英

iText set cell's height

I am using a java version of this library and can't figure out how to set the cell's height. When I use cell.setFixedHeight() and passing any number less that 18 the content dissapears in output PDF file. Why? Thank you

Check whether the width and height given for document is not exceeds.

Document document = new Document(PageSize.A4, 60, 60, 120, 80);

and for cell height you have to give in float value for eg

Cell.setFixedHeight(45f);

I hope this will help you to proceed further :-)

对此的新答案是cell.setMinHeight(10f);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM