Well for PdfPCells it can be done like this (obviously only the setBorder bit):

    // Define Cells structure's for re-use
    PdfPCell aCell = new PdfPCell();
    aCell.setHorizontalAlignment(Element.ALIGN_LEFT);
    aCell.setPaddingBottom(1f);
    aCell.setBorder(Rectangle.NO_BORDER);
    

for a table you can do it like this (obviously only the setBorder bit):

    PdfPTable aTable = PdfUtils.setupTable(4, widthPercentage, widths, 
HEADER_SPACE);
    aTable.setSpacingBefore(TEN_PERCENT_FLOAT);
    aTable.setSpacingAfter(TEN_PERCENT_FLOAT);
    aTable.setHorizontalAlignment(Element.ALIGN_CENTER);
    aTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);

Please bear in mind you an do things multiple ways with Java/iText.

Hope that helps,

Matthew

-----Original Message-----
From: fhomasp [mailto:[email protected]]
Sent: 09 June 2010 09:07
To: [email protected]
Subject: Re: [iText-questions] Paragraph negative spacing
weirdnessinPdfPTables



I think it's better to keep everything in one topic?

http://itext-general.2136553.n4.nabble.com/Paragraph-negative-spacing-weirdness-in-PdfPTables-td2245863.html#a2245863

How would one remove borders from tables?  One can only modify borders in
cells using setBorder(int)
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Re-Paragraph-negative-spacing-weirdness-inPdfPTables-tp2248430p2248458.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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/

Land Registry's House Price Index is now live. www.landregistry.gov.uk

If you have received this e-mail and it was not intended for you, please let us 
know, and then delete it. Please treat our communications in confidence, as you 
would expect us to treat yours. Land Registry checks all mail and attachments 
for known viruses, however, you are advised that you open any attachments at 
your own risk.



The original of this email was scanned for viruses by the Government Secure 
Intranet virus scanning service supplied by Cable&Wireless Worldwide in 
partnership with MessageLabs. (CCTM Certificate Number 2009/09/0052.) On 
leaving the GSi this email was certified virus free.
Communications via the GSi may be automatically logged, monitored and/or 
recorded for legal purposes.

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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/

Reply via email to