Hi All,
    How can I rotate a table itself? The following code doesn't seem to 
work.


import java.io.FileOutputStream;

import com.lowagie.text.*;
import com.lowagie.text.Document;
import com.lowagie.text.PageSize;
import com.lowagie.text.pdf.PdfWriter;

public class RotateTable {

    public static void main(String[] args) {

        Document document = new Document(PageSize.A4, 50, 50, 50, 50);
        try {
            PdfWriter writer = PdfWriter.getInstance(document, new 
FileOutputStream("Rotate.pdf"));

            document.open();
   Table table = new Table(1);
   Cell cell = new Cell("Rotate Text");
   System.out.println("\n getRotation() ="+table.getRotation());
    table.addCell(cell);
    table.rotate();
   document.add(table);
        }
        catch (Exception de) {
            de.printStackTrace();
        }
        document.close();
    }
}

Regards,
Sudheendra N Singh
Cell - 9880015753
----- Original Message ----- 
From: "Mark Hall" <[EMAIL PROTECTED]>
To: <[email protected]>
Cc: "Sudheendra N Singh" <[EMAIL PROTECTED]>
Sent: Monday, October 09, 2006 8:22 PM
Subject: Re: [iText-questions] How to rotate cells in Rtf



Nous Infosystems
This e-mail transmission may contain confidential or legally privileged
information that is intended only for the individual(s) or entity(ies) named
in the e-mail address. If you are not the intended recipient, please reply to
the [EMAIL PROTECTED], so that arrangements can be made for proper
delivery, and then please delete all copies and attachments.Any disclosure,
copying, distribution, or reliance upon the contents of this e-mail, by any
other than the intended recipients, is strictly prohibited.



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to