[iText-questions] PdfpTable + page break

2012-11-27 Thread Yoorch
Hi, I have some content generated auotomatically to build a Pdf. To fit the disign and to handle the size and the page breaks I have had created one table with 3 tables inside. One table(1) --first row (TITLE) -- second row -- table(2) for content -- two columns --

Re: [iText-questions] PdfPtable TotalHeight is always zero in v 5.3.4

2012-11-15 Thread iText Info
Op 13/11/2012 22:57, Vahid Nasiri schreef: Hello, After adding a table to the page, its TotalHeight is always zero in v 5.3.4 document.Add(table); var data =table.TotalHeight; //it was OK in v 5.3.2 OK, this could be reproduced. We're working on it.

[iText-questions] PdfPtable TotalHeight is always zero in v 5.3.4

2012-11-13 Thread Vahid Nasiri
Hello, After adding a table to the page, its TotalHeight is always zero in v 5.3.4       document.Add(table);     var data =   table.TotalHeight; //it was OK in v 5.3.2-- Monitor your physical, virtual and

Re: [iText-questions] PdfPTable keepTogether with skipped header rows

2012-02-17 Thread Jason Berk
Should I open a bug ticket for this, or is it considered a feature Thanks, Jason -Original Message- From: Jason Berk [mailto:jb...@purduefed.com] Sent: Thursday, February 09, 2012 2:08 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] PdfPTable keepTogether

[iText-questions] PdfPTable keepTogether with skipped header rows

2012-02-09 Thread Jason Berk
I noticed if I create a table with some header rows and set skipFirstHeader(true) and then set keepTogether(true) and add the table to the document using doc.add(table) the header rows are being considered in the calculation to determine if the table fits on the current page...even if they aren't

[iText-questions] PdfPTable .setExtendLastRow() does not work - why?

2012-02-04 Thread Jens Haberer
import com.itextpdf.text.Document; import com.itextpdf.text.PageSize; import com.itextpdf.text.Phrase; import com.itextpdf.text.pdf.PdfPCell; import com.itextpdf.text.pdf.PdfPTable; import com.itextpdf.text.pdf.PdfWriter; public class PDFTest { public static void main(String args[]) {

Re: [iText-questions] PdfPTable .setExtendLastRow() does not work - why?

2012-02-04 Thread 1T3XT BVBA
Hello Jens, please subscribe to the mailing list. If you don't, you risk this scenario: http://lowagie.com/itextml As for your question, I assume you don't want the first table to be extended. In that case, you should adapt your code like this: import java.io.FileOutputStream; import

Re: [iText-questions] PdfpTable does not line up with left justified text

2012-01-26 Thread Paulo Soares
Set the padding to 0. Paulo From: Daniel Lopez [mailto:daniel.lopez...@gmail.com] Sent: Thursday, January 26, 2012 2:16 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] PdfpTable does not line up with left justified text Hello all, I am

Re: [iText-questions] PdfpTable does not line up with left justified text

2012-01-26 Thread d2thalo
Thanks for the reply. For some reason, I was doing -- pdfPtable.getDefaultCell().setPadding(0); And it didnt work, but when I did it on the individual cell (just the cell(s) in the very first column), it worked. Thanks for the reminder! -- View this message in context:

[iText-questions] PdfPTable - right aligning a column?

2011-09-21 Thread Jason Berk
I find myself creating lots of tables with this same basic layout: ___ | T A B L E H E A D E R | --- |some label | $999.99| (left column is left aligned and right column is right aligned) |some label | $999.99| |some label |

Re: [iText-questions] PdfPTable - right aligning a column?

2011-09-21 Thread 1T3XT BVBA
On 21/09/2011 21:41, Jason Berk wrote: I find myself creating lots of tables with this same basic layout: ___ | T A B L E H E A D E R | --- |some label | $999.99| (left column is left aligned and right column is right aligned) |some

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

2011-01-10 Thread Eddy
That's very cool. Thanks, Nurettin! -- View this message in context: http://itext-general.2136553.n4.nabble.com/PdfPTable-doesn-t-work-with-document-add-tp3205903p3206749.html Sent from the iText - General mailing list archive at Nabble.com.

[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)

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 to do

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

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

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);

[iText-questions] Pdfptable with unicode problem

2010-11-05 Thread Tri Truong
Hello everyone, I have a problem with pdfptable My pdfptable have unicode characters (utf-8) and when export to pdf some characters missing.I print the pdfptable out the screen and it ok but when I use document.add(table) the problem generate. Anyone can help me about this problem. Thank you so

Re: [iText-questions] Pdfptable with unicode problem

2010-11-05 Thread Mark Storer
, November 05, 2010 8:38 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Pdfptable with unicode problem Hello everyone, I have a problem with pdfptable My pdfptable have unicode characters (utf-8) and when export to pdf some characters

Re: [iText-questions] Pdfptable with unicode problem

2010-11-05 Thread 1T3XT info
On 5/11/2010 16:38, Tri Truong wrote: Hello everyone, I have a problem with pdfptable My pdfptable have unicode characters (utf-8) and when export to pdf some characters missing.I print the pdfptable out the screen and it ok but when I use document.add(table) the problem generate. Anyone can

Re: [iText-questions] PdfPTable not rendered in Paragraph with keeptogether

2010-10-21 Thread Genner
i'm having the same problem, it was resolved with this code snippet: ArrayList a2 = new ArrayList(); a2 = HTMLWorker.parseToList(new StringReader(convocatoria), style); for (int i = 0; i a2.size(); i++) { if

[iText-questions] PDFPTable issue - urgent help

2010-09-30 Thread karthick
Hi, This is my first post. I have a table with 9 column title which aligned vertically. In the next column (parrallel to each title) I will need to print values. I have constructed arraylist (my hashmap value) with values but when I print values it breaks the table. How do I fill values

Re: [iText-questions] PDFPTable issue - urgent help

2010-09-30 Thread 1T3XT info
On 30/09/2010 2:45, karthick wrote: Hi, This is my first post. I have a table with 9 column title which aligned vertically. In the next column (parrallel to each title) I will need to print values. I have constructed arraylist (my hashmap value) with values but when I print values it breaks

Re: [iText-questions] PDFPTable issue - urgent help

2010-09-30 Thread karthick
Thank you gentleman. Any examples would be greately appreciated. -- View this message in context: http://itext-general.2136553.n4.nabble.com/PDFPTable-issue-urgent-help-tp2720018p2720690.html Sent from the iText - General mailing list archive at Nabble.com.

Re: [iText-questions] PDFPTable issue - urgent help

2010-09-30 Thread 1T3XT info
On 30/09/2010 15:02, karthick wrote: Thank you gentleman. Any examples would be greately appreciated. If you want examples for ColumnText, you should go to the list of keywords, and select ColumnText: http://1t3xt.be/?1a7 That way, you'll find all kinds of examples. If you don't understand

Re: [iText-questions] PdfPTable issue in iText

2010-08-21 Thread 1T3XT info
On 19/08/2010 23:01, Dony Thomas wrote: Hi I want to create 2 tables side by side. Therefore, I first created 2 tables and then created a third table with 2 cells. Or you could use ColumnText to add the 2 tables side by side. Then you don't have to use a third table. (See the last example in

Re: [iText-questions] PdfPTable not rendered in Paragraph with keeptogether

2010-08-13 Thread Jo Voordeckers
Hi, After googling some more I discovered that I was using an unsupported old version (unfortunately the newest version on Maven central, which is confusing). So now I've tried this with iText 5.0.3 as well but I experience the same problem. Is what I'm trying to do unsupported, or is there a

Re: [iText-questions] PdfPTable not rendered in Paragraph with keeptogether

2010-08-13 Thread 1T3XT info
Jo Voordeckers wrote: Hi, After googling some more I discovered that I was using an unsupported old version (unfortunately the newest version on Maven central, which is confusing). So now I've tried this with iText 5.0.3 as well but I experience the same problem. Is what I'm trying

[iText-questions] PdfPTable not rendered in Paragraph with keeptogether

2010-08-12 Thread Jo Voordeckers
Hi Bruno and others, I'm sorry if this question has been answered before, but my searches in the archive didn't reveal a solution. We have a document containing a few Paragraphs, containing Phrases, PdfPTables and Images. Depending on the content we want some paragraphs contained on the same

Re: [iText-questions] pdfptable header rows

2010-07-08 Thread Jason Berk
:23 AM To: Post all your questions about iText here Subject: Re: [iText-questions] pdfptable header rows Jason Berk wrote: I need to produce a table that could span multiple pages and will always be the first thing added to a new page in a document. There are two header rows. The first header

Re: [iText-questions] pdfptable header rows

2010-07-08 Thread Jason Berk
...@purdueefcu.com] Sent: Thursday, July 08, 2010 2:19 PM To: Post all your questions about iText here Subject: Re: [iText-questions] pdfptable header rows I understand, but could you provide a sample of how to modify the text of a PdfPCell in the cell event? All the examples I see draw lines

[iText-questions] pdfptable header rows

2010-07-07 Thread Jason Berk
I need to produce a table that could span multiple pages and will always be the first thing added to a new page in a document. There are two header rows. The first header is a description that spans all table columns. The second header is actual column headers (one per column). When the table

Re: [iText-questions] pdfptable header rows

2010-07-07 Thread Jason Berk
I need to produce a table that could span multiple pages and will always be the first thing added to a new page in a document. There are two header rows. The first header is a description that spans all table columns. The second header is actual column headers (one per column). When the table

Re: [iText-questions] pdfptable header rows

2010-07-07 Thread 1T3XT info
Jason Berk wrote: I need to produce a table that could span multiple pages and will always be the first thing added to a new page in a document. There are two header rows. The first header is a description that spans all table columns. The second header is actual column headers (one per

Re: [iText-questions] PdfPTable padding and spacing

2010-06-10 Thread fhomasp
That seems to have done the trick indeed. It's actually all I needed. Here's an example of my output.. Perhaps it'll be more clear as to why I chose to use PfdPTables. http://rapidshare.com/files/397335667/out.rar.html Thanks! -- View this message in context:

Re: [iText-questions] PdfPTable padding and spacing

2010-06-10 Thread 1T3XT info
fhomasp wrote: That seems to have done the trick indeed. It's actually all I needed. Another way could have been to round the page size to an integer value. Because it's odd to have a page size defined in ten thousands of a point... Here's an example of my output.. Perhaps it'll be more

Re: [iText-questions] PdfPTable padding and spacing

2010-06-10 Thread fhomasp
Fair enough, and I'll keep that in mind for next time :-) int value would not have been okay. I get the interval sizes in mm, which needs to be converted to points. And it has to be exact. Oh, Off topic. Watch Oog in oog tonight, I'll be there asking a question ^^ -- View this message in

Re: [iText-questions] PdfPTable padding and spacing

2010-06-10 Thread Wain, Matthew
: fhomasp [mailto:thomas.peet...@realdolmen.com] Sent: 10 June 2010 07:33 To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] PdfPTable padding and spacing That seems to have done the trick indeed. It's actually all I needed. Here's an example of my output.. Perhaps it'll

Re: [iText-questions] PdfPTable padding and spacing

2010-06-10 Thread fhomasp
Right, sorry.. I changed document.add(main); to main.writeSelectedRows(0,main.getRows().size(),0f,main.getTotalHeight(),canvas); cheers ;-) -- View this message in context: http://itext-general.2136553.n4.nabble.com/PdfPTable-padding-and-spacing-tp2248510p2250062.html Sent from the iText -

Re: [iText-questions] PdfPTable padding and spacing

2010-06-10 Thread Wain, Matthew
Cool, thanks Thomas :-) Just makes your fix clear to everyone. Good luck with the rest of your assignment. -Original Message- From: fhomasp [mailto:thomas.peet...@realdolmen.com] Sent: 10 June 2010 09:13 To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] PdfPTable

[iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
Hey, First of all, sorry for the double post but I do need the advice and I do realize that the initial thread got started off on the wrong foot. I made a unit test to show how I encounter the problem. Note that the whole document is cut of exactly at the end of the table, so the table should

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread Wain, Matthew
Subject: [iText-questions] PdfPTable padding and spacing Hey, First of all, sorry for the double post but I do need the advice and I do realize that the initial thread got started off on the wrong foot. I made a unit test to show how I encounter the problem. Note that the whole document is cut

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
I need a bit of padding on the bottom of the cells. If I set for example: cell.setPadding(5); cell.setPaddingTop(0); cell.setPaddingBottom(4); Then the space between the cells is still too large. And I do need bottom padding (sounds like fun) otherwise the text in the cell is placed exactly

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread 1T3XT info
fhomasp wrote: I need a bit of padding on the bottom of the cells. If I set for example: cell.setPadding(5); cell.setPaddingTop(0); cell.setPaddingBottom(4); Then the space between the cells is still too large. And I do need bottom padding (sounds like fun) otherwise the text in the

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread Wain, Matthew
remove all the padding? Do you have a screen shot? BTW, you can always set cell height manually as well... -Original Message- From: fhomasp [mailto:thomas.peet...@realdolmen.com] Sent: 09 June 2010 10:24 To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] PdfPTable

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread 1T3XT info
Wain, Matthew wrote: BTW, not sure if the comment about a new thread everytime is to me You are registered as a subscriber to the list. Thomas isn't. Which is very annoying: his mail is always put on hold, and an administrator needs to manually approve it. (If all mail would be accepted, you'd

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
Yes well.. I was attempting to avoid having to know which cell is the first in a bunch. The ad documents contain several headers so there are several first cells. But ok, I'll go about it this way. I do still think the cutting of the document, even when using contradicting padding values and

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
Well.. It seems that the padding isn't really fixing all of the document cutting problems. These are my cell settings now: private void applyDefaultCellProps(PdfPCell cell){ cell.setBorder(PdfPCell.NO_BORDER); cell.enableBorderSide(Rectangle.LEFT);

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
For clarification, here's the whole testcase again: As you can see I'm not using negative values anymore for the padding, just the textspacing. The document is still cut wrongly. @Test public void testSizeBug() throws DocumentException, FileNotFoundException { PdfPTable main = new

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread 1T3XT info
fhomasp wrote: It's ok in 80% of the documents, but there are still documents cut badly. Because of the ascender/descender? -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info --

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
Sorry... I must have missed the ascender descender thing. I'll give that a shot now. But still. A tables size is its size, right? ascending or descending, should it really matter when cutting the document to the size of the table? Really, forgive me for being ignorant but all I can do is ask.

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread Wain, Matthew
] Sent: 09 June 2010 11:34 To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] PdfPTable padding and spacing Sorry... I must have missed the ascender descender thing. I'll give that a shot now. But still. A tables size is its size, right? ascending or descending, should

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
This is my new cell config: private void applyDefaultCellProps(PdfPCell cell){ cell.setBorder(PdfPCell.NO_BORDER); cell.enableBorderSide(Rectangle.LEFT); cell.enableBorderSide(Rectangle.RIGHT); cell.setPadding(5); cell.setPaddingTop(0);

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread Wain, Matthew
); cell.setPaddingBottom(2); cell.setUseAscender(false); cell.setUseDescender(false); } } Matthew -Original Message- From: fhomasp [mailto:thomas.peet...@realdolmen.com] Sent: 09 June 2010 11:42 To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] PdfPTable

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread 1T3XT info
fhomasp wrote: But still. A tables size is its size, right? You were talking about padding, not about table size. ascending or descending, should it really matter when cutting the document to the size of the table? Really, forgive me for being ignorant but all I can do is ask. Messages

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread Wain, Matthew
...@realdolmen.com] Sent: 09 June 2010 11:42 To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] PdfPTable padding and spacing This is my new cell config: private void applyDefaultCellProps(PdfPCell cell){ cell.setBorder(PdfPCell.NO_BORDER

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
Excuse me but I did the effort of building a JUnit test to show the problem. If you had simply attempted to run it, which takes about 5 secs you would easily have seen what I meant, no offense. But I'll explain in detail. The output document needs to be of a fixed height interval, depending

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread 1T3XT info
fhomasp wrote: The output document needs to be of a fixed height interval, depending on how much rows there are. So let's say the fixed interval is an inch, then the height of the document needs to be a multiple of 72pt. I cannot just output on extra pages anytime i want. You need a single

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
The document needs to be printed in a newspaper. The maximum is the largest size of the page of the newspaper. The other intervals are the lengths given to me where the document can be cut. So if I have a resulting table of 5cm and the interval is 80mm I need to fill the rest up with

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
As addition... Everything works except for the occasional glitch of the size of the table. Somehow when the document is being made the table appears to be larger than it said itself (table.getTotalSize). But that's one my assumptions, I learned not to go too much on those. My problem seems to

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
And of course I mean TableInstance.getTotalHeight(); -- View this message in context: http://itext-general.2136553.n4.nabble.com/PdfPTable-padding-and-spacing-tp2248510p2248902.html Sent from the iText - General mailing list archive at Nabble.com.

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread 1T3XT info
fhomasp wrote: The document needs to be printed in a newspaper. I've done a similar assignment for De Persgroep. It took me less than 2 days ;-) The code is used in several magazines and in HLN. The maximum is the largest size of the page of the newspaper. The other intervals are the

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread fhomasp
I've done a similar assignment for De Persgroep. It took me less than 2 days ;-) The code is used in several magazines and in HLN. Linkedin rules? :-) I've been here at this project for one week and a half. The code I have now was finished in one week, except for this problem I'm having

Re: [iText-questions] PdfPTable padding and spacing

2010-06-09 Thread 1T3XT info
fhomasp wrote: After processing, every document has the following properties of importance. Document: pagesize.ury -- 1082.8346 pagesize.urx -- 243.77954 Table: totalheight: 1082.8345 toalwidth: 243.77954 You're experiencing rounding errors caused by

[iText-questions] PdfPTable in PdfPTable border troubles

2010-06-02 Thread fhomasp
Hey, I can't seem to get rid of borders when I use a PdfPTable in a PdfPTable. All cells are set to have no border (cell.setBorder(0)) and this works if I add the cell to a table. But when I add that table to another table it suddenly has, even if all of the tables have their defaultcell set to

Re: [iText-questions] PdfPTable in PdfPTable border troubles

2010-06-02 Thread fhomasp
At any rate... I was using the embedded tables to be able to calculate the height of a cell. Now I created dummy PdfPTables with the same width as the main table, add the cell, get the totalsize from the dummy table and discard it. Now the border problem is also gone. I would however still

Re: [iText-questions] PdfPTable in PdfPTable border troubles

2010-06-02 Thread 1T3XT info
fhomasp wrote: I was using the embedded tables to be able to calculate the height of a cell. Aren't there better ways to do that? Anyway, this is a complex nested table: http://tinyurl.com/2uyopzk That's an example from section 4.2.4 of the second edition (read Nested tables and Complex table

Re: [iText-questions] PdfPTable in PdfPTable border troubles

2010-06-02 Thread fhomasp
Yep, that's true sorry 'bout that. The first method adds PdfPTables (with cells) to a list, the 2nd is a convenience method to create the main and dummy table. The last adds the common params to the PdfPCells. All I know is when I stopped using tables as element in a table that my problem went

Re: [iText-questions] PdfPTable in PdfPTable border troubles

2010-06-02 Thread fhomasp
addition: I need to calculate the length because if the ladder is too small it needs to be cut off at a certain height. And on the other hand, if it is too large I need to make a 2nd pdf which will include the image (header and footer), the textheader and the last subheader and then the

Re: [iText-questions] PdfPTable pushing susbsequent text down when switching between landscape and portait orientation.

2010-05-05 Thread 1T3XT info
Simon Goodfield wrote: Thanks currently running tests but looks good so far. OK, thanks for the feedback. I didn't have the time to run my test battery; but I'll certainly do that before the next release. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ -

[iText-questions] PdfPTable pushing susbsequent text down when switching between landscape and portait orientation.

2010-05-04 Thread Simon Goodfield
Our site is currently running on itext 5.0.1. We occasionally experience a problem when the size of a table being drawn on landscape pushes the text of the following section (which is portait) down the page. Below is some simple code which reproduces the problem. Any help would be

Re: [iText-questions] PdfPTable pushing susbsequent text down when switching between landscape and portait orientation.

2010-05-04 Thread 1T3XT info
Simon Goodfield wrote: Our site is currently running on itext 5.0.1. We occasionally experience a problem when the size of a table being drawn on landscape pushes the text of the following section (which is portait) down the page. Below is some simple code which reproduces the

Re: [iText-questions] PdfPTable pushing susbsequent text down when switching between landscape and portait orientation.

2010-05-04 Thread 1T3XT info
Simon Goodfield wrote: Below is some simple code which reproduces the problem. I identified the problem. The table causes a newPage() which internally triggers initPage(). Then you change the page size. Then you add a chapter causing another newPage(), but as no content has been added since the

Re: [iText-questions] PdfPTable pushing susbsequent text down when switching between landscape and portait orientation.

2010-05-04 Thread 1T3XT info
1T3XT info wrote: For the moment, I haven't found a good fix for this problem. And now I (may) have a fix. This should be tested on other examples though. --- trunk/src/core/com/itextpdf/text/pdf/PdfDocument.java 2010-05-03 23:02:10 UTC (rev 4503) +++

Re: [iText-questions] PdfPTable dynamic column width (XHTML like)

2010-03-30 Thread 1T3XT info
tiiho...@nurfuerspam.de wrote: Hi, I'm using iText 2.1.7. Today I tried to create my first table. Everything looks great except one thing. If I create a table in XHTML with no specific width, the table chooses a good looking width for each column. Is iText able to do the same? PDF

[iText-questions] PdfPTable dynamic column width (XHTML like)

2010-03-29 Thread tiihonen
Hi, I'm using iText 2.1.7. Today I tried to create my first table. Everything looks great except one thing. If I create a table in XHTML with no specific width, the table chooses a good looking width for each column. Is iText able to do the same? For example: A table with 3 columns and one

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-03-24 Thread mistercam
Hello, I just wanted to thank you again for your assistance. I ended up using a work-around approach to get this working. I've attached an example of my code that demonstrates the approach that I took. http://old.nabble.com/file/p28015934/TableRenderFix.java TableRenderFix.java I hope at

Re: [iText-questions] PdfPTable header is overwriting all other text (almost fixed)

2010-02-25 Thread Fox, David
Subject: [iText-questions] PdfPTable header is overwriting all other text Are headers meant to only be used for y-offsets greater than PageSize.Height - Document.TopMargin? The body text of my PDF is being overwritten on each page. I use a helper class inheriting from PdfPageEventHelper

Re: [iText-questions] PdfPTable header is overwriting all other text (almost fixed)

2010-02-25 Thread 1T3XT info
Fox, David wrote: Why do the margins appear different? Because the initial leading is 0. You can change this with setInitialLeading(); see http://itextpdf.com/examples/index.php?page=exampleid=14 -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info

Re: [iText-questions] PdfPTable header is overwriting all other text (almost fixed)

2010-02-25 Thread Fox, David
, February 25, 2010 11:04 AM To: Post all your questions about iText here Subject: Re: [iText-questions] PdfPTable header is overwriting all other text (almost fixed) Fox, David wrote: Why do the margins appear different? Because the initial leading is 0. You can change this with setInitialLeading

Re: [iText-questions] PdfPTable header is overwriting all other text (almost fixed)

2010-02-25 Thread 1T3XT info
Fox, David wrote: Is there a .NET equivalent to PdfWriter.setInitialLeading()? More importantly, is there a separate mailing list and/or API for iTextSharp? I didn't see one at http://sourceforge.net/projects/itextsharp/ The iTextSharp mailing list has been closed down because there are more

Re: [iText-questions] PdfPTable header is overwriting all other text (almost fixed)

2010-02-25 Thread Paulo Soares
Look for the property PdfWriter.InitialLeading. Paulo -Original Message- From: Fox, David [mailto:d...@bmic.com] Sent: Thursday, February 25, 2010 4:45 PM To: Post all your questions about iText here Subject: Re: [iText-questions] PdfPTable header is overwriting all other text

Re: [iText-questions] PdfPTable header is overwriting all other text (fixed)

2010-02-25 Thread Fox, David
] PdfPTable header is overwritingall other text (almost fixed) Look for the property PdfWriter.InitialLeading. Paulo -Original Message- From: Fox, David [mailto:d...@bmic.com] Sent: Thursday, February 25, 2010 4:45 PM To: Post all your questions about iText here Subject: Re: [iText-questions

[iText-questions] PdfPTable header is overwriting all other text

2010-02-24 Thread Fox, David
Are headers meant to only be used for y-offsets greater than PageSize.Height - Document.TopMargin? The body text of my PDF is being overwritten on each page. I use a helper class inheriting from PdfPageEventHelper to construct my header inside OnStartPage-a PdfPTable with database data. At

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-24 Thread mistercam
Thanks a lot for your assistance. I have fallen back to a statically-defined height approach for the time being, but I plan on playing around with this over the coming months. I will be able to upgrade to iText v5 for our next release. I'm hoping after reading up on it there will be some other

[iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread mistercam
Hello, A brief background: What I'm looking to do is alter the height of a cell based on where the bottom of it was rendered. I have a 3x3 PdfPTable that contains PdfPCells or PdfPTables. Based on the remaining space of the page, after rendering one of these PdfPCells, I may want to pad it on

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread 1T3XT info
mistercam wrote: Hello, A brief background: What I'm looking to do is alter the height of a cell based on where the bottom of it was rendered. I have a 3x3 PdfPTable that contains PdfPCells or PdfPTables. Based on the remaining space of the page, after rendering one of these PdfPCells, I

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread mistercam
Hey, I was not familiar with this method. I gave it a try, and it didn't work, which is what I was expecting since I do work with other cells that span pages. Here's a screen cap of the first page of my example PDF: http://old.nabble.com/file/p27689378/pdfspan.png pdfspan.png The orange

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread 1T3XT info
mistercam wrote: What I was looking to do is attach to each orange cell an event that checks the remaining vertical space allotted to it. If it is less than the height of one of the charts (which are always of fixed height in my application,) then I want to pad the orange cell with just enough

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread mistercam
setSplitLate works for most of the orange cells in my example. The problem is I don't always want the orange cells to split across pages. In the example I posted, the orange cell in the 2nd row splits with only three lines of text written to the first page. This does not leave enough space for a

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread 1T3XT info
mistercam wrote: So for one cell in a row, I want it to split, but for another cell in the same row, I don't. This appears to be causing a misalignment issue with where the two cells begin rendering. I don't understand what you mean, but I suggest that you work with different tables instead

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread mistercam
I uploaded a larger image to show part of the second page: http://old.nabble.com/file/p27691079/pdfspan2.png pdfspan2.png The first orange cell begins When we look to the individuals... and the second orange cell begins It has been disputed at what period... The line chart is supposed to

Re: [iText-questions] PdfPTable or PdfPCell Pre-render Firing / Dynamically resizing cells

2010-02-22 Thread 1T3XT info
mistercam wrote: I hope my explanation is a bit more clear. A picture says a thousand words. Now I understand. I fear that PdfPTable is too limited for this kind of requirement, but maybe I have to sleep a night over this problem. If I had to build a solution right here, right now, I'd

Re: [iText-questions] PdfPTable fill the whole page

2009-09-14 Thread marcolf
Anyone? I still have problem. Thanks. -- View this message in context: http://www.nabble.com/PdfPTable-fill-the-whole-page-tp25278056p25439632.html Sent from the iText - General mailing list archive at Nabble.com. --

Re: [iText-questions] PdfPTable fill the whole page

2009-09-14 Thread 1T3XT info
marcolf wrote: Anyone? I still have problem. So? There are many different ways to solve your problem, but apparently nobody has the time to write you an example. (I have paid assignments that have a higher priority.) -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ -

[iText-questions] PdfPTable fill the whole page

2009-09-03 Thread marcolf
Hi, i have to create a PDF that contain a dynamic pdfptable and other object. The pdfptable can fill several pages. When the pdfpTable finished to write its rows, On the last page (that i don't know) I want to fill the whole page and insert a small pdfptable as footer. Example: first page row 1

Re: [iText-questions] PdfPTable Absolute Positioning

2009-07-07 Thread 1T3XT info
tamtam18 wrote: Hello, I am using the following code to place a PdfPTable at an absolute position: float yAbsolutePosition = iTextDoc.bottomMargin() + iTextPdfPTable.getTotalHeight(); iTextPdfPTable.writeSelectedRows(0, -1, iTextDoc.leftMargin(), yAbsolutePosition,

Re: [iText-questions] PdfpTable vs. Table (vs. SimpleTable?)

2009-07-06 Thread 1T3XT info
tamtam18 wrote: Basically, what are the benefits/downsides of separating the code into two sections -- one to create PDF documents, and one to create the same documents in an RTF format, if that was selected? PDF and RTF are very different. They were invented to achieve very different goals.

[iText-questions] PdfPTable KeepTogether and Header

2009-07-06 Thread Jason Berk
I noticed if you create a table with a header row and set KeepTogether true, then if the table is pushed to the next page, the header doesn't print even though the table is the first and only thing written to that page. Is this by design? Notice the missing header on KeepTogetherTrue.pdf page

[iText-questions] PdfPTable Absolute Positioning

2009-07-06 Thread tamtam18
Hello, I am using the following code to place a PdfPTable at an absolute position: float yAbsolutePosition = iTextDoc.bottomMargin() + iTextPdfPTable.getTotalHeight(); iTextPdfPTable.writeSelectedRows(0, -1, iTextDoc.leftMargin(), yAbsolutePosition, pdfWriter.getDirectContent());

  1   2   3   4   5   >