It's not a bug. As you say, it's a table with headers and no
content. If it doesn't have content there's nothing to
print.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cary Sweet
Sent: Monday, November 22, 2004 11:37 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] ColumnText bug?Expected Results:Header line of the table to be displayedActual Results:When I created a PdfTable with a header and no content, nothing displayedCode version: iText 1.1Class: ColumnTextMethod: goComposite(boolean simulate)Line: 1179if (table.size() <= table.getHeaderRows()) {I believe should beif (table.size == 0 || table.size() < table.getHeaderRows()) {With this in place, the header line(s) of the table will be displayed even though the table has no other rows.-----Original Message-----
From: Cary Sweet
Sent: November 22, 2004 3:58 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] PdfTable Bug?I was looking through the code and came across something that did not look correct:Code version: iText 1.1Class: PdfPTableMethod: constructor: PdfPTable(PdfPTable table)Line: 200skipFirstHeader = this.skipFirstHeader;I believe should beskipFirstHeader = table.skipFirstHeader;
This message, including any attachments, is intended only for the person(s) to whom it is addressed. If you received it in error, please let us know and delete the message from your system. This message may be confidential and may fall under the duty of non-disclosure. Any use by others than the intended addressee is prohibited. Trema shall not be liable for any damage related to the electronic transmission of this message, such as failure or delay of its delivery, interception or manipulation by third parties, or transmission of viruses or other malicious code.
This message, including any attachments, is intended only for the person(s) to whom it is addressed. If you received it in error, please let us know and delete the message from your system. This message may be confidential and may fall under the duty of non-disclosure. Any use by others than the intended addressee is prohibited. Trema shall not be liable for any damage related to the electronic transmission of this message, such as failure or delay of its delivery, interception or manipulation by third parties, or transmission of viruses or other malicious code.