Get a java.util.NoSuchElementException when cellsHaveToFit is true, and
table consist of just the header, and cells would split.
I recommend the following fix if PdfDocument.java, add(element), case
Element.TABLE:
Change:
                                        if (!cellsFit) {
                                            while( cell.isHeader() ) {
                                                iterator.remove();
                                                cell = (PdfCell)
iterator.next();
                                            }
                                            break;
                                        }
To:
                                        if (!cellsFit) {
                                            while( cell.isHeader() ) {
                                                iterator.remove();
                                                if (!iterator.hasNext()) {
                                                        break;
                                                }
                                                cell = (PdfCell)
iterator.next();
                                            }
                                            break;
                                        }

David J. Burtness 
Programmer/Analyst
SAFETY NATIONAL Casualty Corporation




- - - - - - 
This e-mail message is intended only for the use of the individual or entity
identified in the alias address of this message and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution of this e-mail message is strictly prohibited. If you have
received this e-mail message in error, please notify the sender immediately
by reply e-mail and delete this message from your system. Thank you.


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to