Re: [iText-questions] PdfPTable doesn't work with document.add?

2011-01-09 Thread 1T3XT BVBA
Nurettin DAG wrote: > Depending on your design of the document you might be able to achieve > that by using yet another alternative: I wrap the PdfPTable in a Paragraph object: Paragraph p = new Paragraph(); p.setIndentationLeft(10); p.add(table); document.add(p);

Re: [iText-questions] Table width doesn't work with document.add?

2011-01-09 Thread Nurettin DAG
You need to do the following when setting fixed width table.setLockedWidth(true); Otherwise, when rendering it will use the widthPercentage value defined in the table. Good luck Nurettin On Sun, Jan 9, 2011 at 8:56 AM, Eddy wrote: > > Hi all, > > I'm working with a PdfPTable and I'm trying to

Re: [iText-questions] PdfPTable doesn't work with document.add?

2011-01-09 Thread Nurettin DAG
Depending on your design of the document you might be able to achieve that by document left margin or if that is not suitable and you only want to align the table then your best bets are the following: 1) Add a dummy column to your table as the first cell and set the width of the cell to desired a

Re: [iText-questions] PdfPTable doesn't work with document.add?

2011-01-09 Thread Eddy
Thank you very much for this reply, Bruno. You have created great software. I set the locked width to true, and I can get the table to a fixed height now, but it's rendering itself in the middle of the page. I actually went back and also set the width percentage just for fun. Then I did table.

Re: [iText-questions] JFreeChart inside a table?

2011-01-09 Thread Eddy
Thanks for the quick reply. This seems to work well. -- View this message in context: http://itext-general.2136553.n4.nabble.com/JFreeChart-inside-a-table-tp3205912p3205940.html Sent from the iText - General mailing list archive at Nabble.com. --

Re: [iText-questions] JFreeChart inside a table?

2011-01-09 Thread 1T3XT BVBA
Op 9/01/2011 15:13, Eddy schreef: > Hi all, > > I need to put a JFreeChart inside a PdfPTable. Is this possible? Yes, wrap the PdfTemplate inside an Image object. Images can be added to PdfPCells (as opposed to PdfTemplate objects). -

Re: [iText-questions] PdfPTable doesn't work with document.add?

2011-01-09 Thread 1T3XT BVBA
Op 9/01/2011 15:03, Eddy schreef: > Hi all, > > I'm working with a PdfPTable and I'm trying to set it to a certain width. I > know about table.setTotalWidth(width) and have worked with it fine > when writing the table to a document using the writeSelectedRows method. > > But now I'm trying

[iText-questions] JFreeChart inside a table?

2011-01-09 Thread Eddy
Hi all, I need to put a JFreeChart inside a PdfPTable. Is this possible? I currently do it with a graphics object (see below) and it works fine, but a table would be so much more elegant, and so much easer to move things on the page and putting them one after another... PdfTemplate chart = con

[iText-questions] PdfPTable doesn't work with document.add?

2011-01-09 Thread Eddy
Hi all, I'm working with a PdfPTable and I'm trying to set it to a certain width. I know about table.setTotalWidth(width) and have worked with it fine when writing the table to a document using the writeSelectedRows method. But now I'm trying to do the same with document.add(table) and

[iText-questions] Table width doesn't work with document.add?

2011-01-09 Thread Eddy
Hi all, I'm working with a PdfPTable and I'm trying to set it to a certain width. I know about table.setTotalWidth(width) and have worked with it fine when writing the table to a document using the writeSelectedRows method. But now I'm trying to do the same with document.add(table) and