Re: [iText-questions] xml - pdf or html

2005-06-24 Thread Steve Appling
A few suggestions - YMMV: My main use for iText has been in the context of a Web Application. We chose to take our raw data, process it using a SAX parser, and render it into a layout format as XHTML. We can then present the XHTML document to the user in a browser for preview. The

Re: [iText-questions] Tables Question

2005-05-18 Thread Steve Appling
The border on each side of a cell can be turned on or off using setBorder. Individual border sides can even be different widths or colors. All of the border related methods for Cells and PdfPCells are in the base class Rectangle. Constantinos Sofianos wrote: Hi All, I am new to this list,

Re: [iText-questions] SimpleTextColumn that flows to next page

2005-05-17 Thread Steve Appling
Try using MultiColumnText. Isabelle Ulfsdotter wrote: Hello, How can I implement a simple ColumnText that automatically flows to the next page when full? What I am looking to do is similar to the ColumnObjects example with multiple columns and a title at the top, but ensure that the columns

Re: [iText-questions] MultiColumnText balance

2005-05-15 Thread Steve Appling
There isn't a general way to automatically balance the columns if they won't fill up the page. For a particular set of content, however, you can set the height of the Multicolumtext object to make it balance yourself. Dave Bender wrote: I'm new to iText and it looks great. But I hit a snag.

Re: [iText-questions] Iterating a collection problem!

2005-05-02 Thread Steve Appling
Doesn't seem to be an iText question, but I think your problem is that you aren't advancing the iterator i after you make it. You are making a new iterator each time you call lignefactures.iterator().next(); use lignefacture = (Lignefacture)i.next(); instead - Original Message -

Re: [iText-questions] Line drawing

2005-04-30 Thread Steve Appling
See this section in the tutorial: http://itext.sourceforge.net/tutorial/directcontent/graphics/index.html#paths - Original Message - From: leo [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Saturday, April 30, 2005 1:48 PM Subject: [iText-questions] Line drawing Hi,

Re: [iText-questions] Location of MultiColumnText

2005-04-27 Thread Steve Appling
Add something else before it to take up the space - like an empty paragraph with the leading set to the space you want. - Original Message - From: Nandu [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Wednesday, April 27, 2005 2:04 AM Subject: [iText-questions] Location

Re: [iText-questions] PdfTable background and borders

2005-04-04 Thread Steve Appling
This should be handled already. It seems to work fine in my simple tests. Do you have a SIMPLE example of the problem? BTW, it is probably better to use PdfPTable if you can. - Original Message - From: David Perez [EMAIL PROTECTED] To: iText itext-questions@lists.sourceforge.net Sent:

Re: [iText-questions] XML Support for PdfPTable

2005-04-04 Thread Steve Appling
Several people have downloaded the jar with XML support for PdfPTable (from www.appling.org/itext), but I haven't gotten any comments about it. If you've had a chance to try it out, please let me know your comments (good or bad). - Original Message - From: Steve Appling [EMAIL

Re: [iText-questions] PdfTable background and borders

2005-04-04 Thread Steve Appling
created a very small example that illustrates the bug. I know PdfPTable is a lot better, but I mainly use PdfTable because it offers rowspans. Steve Appling schrieb: This should be handled already. It seems to work fine in my simple tests. Do you have a SIMPLE example of the problem? BTW

[iText-questions] XML Support for PdfPTable

2005-03-29 Thread Steve Appling
of XML, please try it out. I still haven't updated the DTD (still hope to find time for that), but attribute/element names should be pretty obvious in ElementTags.java. The code was branched (steve-appling branch under src in CVS) shortly after Paulo's 142 version, so it doesn't have any

Re: [iText-questions] gutters

2005-03-17 Thread Steve Appling
MultiColumnText supports gutters for simple regular columns in PDF. See com.lowagie.text.pdf.MultiColumnText.addRegularColumns() - Original Message - From: Justin Lee [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Thursday, March 17, 2005 11:22 AM Subject:

Re: [iText-questions] gutters

2005-03-17 Thread Steve Appling
Try MultiColumnTextSimple.java and MultiColumnTextIrregular.java in examples-153.zip at itextpdf.sf.net. - Original Message - From: Justin Lee [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Thursday, March 17, 2005 12:00 PM Subject: Re: [iText-questions] gutters Is

Re: [iText-questions] set leading

2005-03-04 Thread Steve Appling
If you are looking for an eaiser way to use ColumnText, MultiColumnText might meet your needs (even if you only use 1 column). - Original Message - From: Nederhof M.J. [EMAIL PROTECTED] To: itext-questions@lists.sourceforge.net Sent: Wednesday, March 02, 2005 7:15 AM Subject: Re:

Re: [iText-questions] Border around a whole PdfPTable

2005-02-08 Thread Steve Appling
Yes, but it is a little bit of a pain. You'll need to implement a PdfPTableEvent handler (see PdfPTable.setTableEvent) and draw the border manually using the sizing information contained in the event callback. Take care it you are using the technique presented in the tutorial to handle large

[iText-questions] Thai examples?

2005-02-08 Thread Steve Appling
Does anyone have an example of using a Thai font with iText? --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start

Re: [iText-questions] multicolumntext

2005-02-03 Thread Steve Appling
If you know what height the columns need to be to fill them evenly, you can specify a height for the MultiColumnText object so it won't occupy the whole page. - Original Message - From: Thomas Kübler [EMAIL PROTECTED] To: iText-questions@lists.sourceforge.net Sent: Thursday, February 03,

Re: [iText-questions] Vertical alignment in a table cell

2005-01-28 Thread Steve Appling
Vertical alignment in table cells was broken in version 1.02b and previous. It should be working in all subsequent versions (including current). If you are having problems with the current version, please post a simple example in Java. - Original Message - From: Bhasker Konakanchi

Re: [iText-questions] Does iText still support XML and do they plan to continue Support

2005-01-26 Thread Steve Appling
I have been working some on updating the XML support. I've added some attributes that were never supported in XML, support for PdfPTable, and updating the DTD. I'll get it checked in eventually. Unfortunately I've been a little distracted by my paying job :) - Original Message - From:

Re: [iText-questions] Table Issue from iText v0.98 to v1.1 to v1.2.1

2005-01-26 Thread Steve Appling
Please see the FAQ entry at http://www.lowagie.com/iText/faq.html#tablespacing The spacing changed for your empty cells because the table cells now use the leading of the content appropriately. You must set the leading of the pEmpty paragraph. I'm was not aware of any problem with wrapping,

Re: [iText-questions] Table.setAutoFillEmptyCells

2005-01-12 Thread Steve Appling
You might want to look at the entry in the FAQ here: http://www.lowagie.com/iText/faq.html#tablespacing I am not aware of any problems with the setAutoFillEmptyCells. If you post a SIMPLE example, then someone may be able to look into that. If you can, it is probably better to migrate your

Re: [iText-questions] Performance Issue on Document.add() function

2005-01-05 Thread Steve Appling
Well - try not to make the table so big :) Seriously, you can get the exact same effect as a big table by using multiple smaller tables with the right options. See the example ExampleLargeTable.java in the bundle examples-147.zip at itextpdf.sf.net. - Original Message - From: Liao,

Re: [iText-questions] setOffset(n) in version iText-1.1

2004-12-23 Thread Steve Appling
To try to be a little clearer - as Bruno said, some things regarding table offsets did changes since 1.01. There are, however, bugs in the table layout in 1.1 that have been corrected (but not in a released version). You will have to use the ant tasks to download the latest and built it to

Re: [iText-questions] cell padding

2004-12-22 Thread Steve Appling
Several suggestions - I can't tell from your code what the vertical alignment is set to. Make sure it isn't ALIGN_TOP :) By default the leading will control the height of your cell. If you set PdfPCell.setUseAscender(true), PdfPCell.setUseDescender(true), and PdfPCell.setUseBorderPadding(true),

Re: [iText-questions] Parsing nbsp

2004-12-22 Thread Steve Appling
Although it is defined in the HTML specificaiotn, the entity nbsp; is not one of the standard entities built into XML, so the parser won't handle it by default. I think you need to add a custom entity resolver to SaxMyHtmlHandler (or derive your own handler from it and override the

Re: [iText-questions] Re: iText1-1.jar

2004-12-17 Thread Steve Appling
Bruno, I also noticed that the content of the two jars (itext-1.1.jar and iText.jar) are very different. I think it was your intent for these to be the same. For what it's worth, I think it is still confusing to have both of these jars to download - I would probably only have one and let

Re: [iText-questions] Inline Images

2004-12-16 Thread Steve Appling
FYI - I think Table will do this now also if you set Cell.setUseAscender(true). - Original Message - From: Paulo Soares [EMAIL PROTECTED] To: Jerry Heinz [EMAIL PROTECTED]; itext-questions [EMAIL PROTECTED] Sent: Thursday, December 16, 2004 7:47 AM Subject: RE: [iText-questions] Inline

Re: [iText-questions] Line Spacing in text files

2004-12-16 Thread Steve Appling
You control the spacing between lines by setting the leading. For the paragraph in your example, that would be something like: Paragraph myParagraph = new Paragraph(12, aSourceString,new Font(Font.COURIER, 10)); I find that about 1.2* the font size is a good leading - I think the default is

[iText-questions] How should document spacing work for Tables?

2004-12-16 Thread Steve Appling
I have been trying to debug some problems with spacing of Tables when rendered to PDF. I think I finally understand some of the differences between 1.02b and 1.1, but I'm not sure what the correct behavior should be. I want to maintain compatibility, but only where the old behavior isn't

Re: [iText-questions] How should document spacing work for Tables?

2004-12-16 Thread Steve Appling
of PdfDocument today or tomorrow. - Original Message - From: Mahler Frank [EMAIL PROTECTED] To: Bruno [EMAIL PROTECTED]; Steve Appling [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 4:13 AM Subject: AW: [iText-questions] How should document spacing work for Tables

Re: [iText-questions] Table.class or PdfPTable.class ?

2004-12-16 Thread Steve Appling
- Original Message - From: Bruno Lowagie [EMAIL PROTECTED] To: Steve Appling [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, December 14, 2004 10:05 AM Subject: Re: [iText-questions] Table.class or PdfPTable.class ? Steve Appling wrote: I think that it is problematic

Re: [iText-questions] Table.class or PdfPTable.class ?

2004-12-16 Thread Steve Appling
Short answer, then longer discussion: If you are only concerned with rendering to PDF, then PdfPTable is more stable and more fully functional. I use PdfPTable in my main application. If, however, you are trying to make something that will render to either RTF, PDF, or XML, then Table may

Re: [iText-questions] Line spacing iText 1.1

2004-12-16 Thread Steve Appling
I am currently looking into a problem that happens only if you are using a cell spacing 0. In that case, the actual location of the cell contents is offset slightly down on each successive line. This is very apparent if you are using borders (because the contents eventually are not inside the

Re: [iText-questions] Re: AW: additional space in table cells - alignment problems

2004-12-16 Thread Steve Appling
- Original Message - From: Bruno Lowagie [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 15, 2004 10:21 AM Subject: [iText-questions] Re: AW: additional space in table cells - alignment problems OK Steve, you can go ahead and upload PdfDocument.java Done - Here is

Re: [iText-questions] Different fonts in the same Paragraph

2004-12-09 Thread Steve Appling
You probably need to be using Phrases (or perhaps Chunks) added to a Paragraph (or perhaps used instead of a Paragraph). See the javadoc for Phrase and Chunk. - Original Message - From: Rengachari, Santhi Booshan (Booshan), ALABS [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday,

Re: [iText-questions] RE: Problem in cell borders on upgrading the iText version

2004-12-07 Thread Steve Appling
. I think it's the same problem Steve Appling mentioned. He said he would fix it this weekend. I don't know if he had the time to do it. br, Bruno --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds

Re: [iText-questions] RE: Problem in cell borders on upgrading the iText version

2004-12-07 Thread Steve Appling
Here is a version of PdfCell that should solve the problem. Please remake your itext.jar (version 1.1) using this file and test your application. Please let me know if this solves your problem. Bruno - should I: check this in to CVS in the branch with my name, check it in to the main

Re: [iText-questions] Problem with empty table cells in PDF

2004-12-03 Thread Steve Appling
That probably is a bug. Since I made changes to border rendering for PdfCell since 1.02b, I'll look into it this weekend. I would recommend, however, that you migrate your code to use PdfPTable if possible. There are still a lot of bugs in Table (particularly with nested tables). Good Luck

Re: [iText-questions] Asian Language Jars

2004-12-02 Thread Steve Appling
what they are and why you might need them. - Original Message - From: Bruno [EMAIL PROTECTED] To: Steve Appling [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, December 02, 2004 5:26 AM Subject: RE: [iText-questions] Asian Language Jars Quoting Paulo Soares [EMAIL PROTECTED

Re: [iText-questions] Asian Language Jars

2004-12-02 Thread Steve Appling
I think that's fine - thanks. By the way, how is the new tutorial/documentation coming? Would you like any community help writing / reviewing it? - Original Message - From: Bruno Lowagie [EMAIL PROTECTED] To: Steve Appling [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday

Re: [iText-questions] Image moves to next page

2004-12-02 Thread Steve Appling
Is there a reason that isn't the default? It is the behaviour I think most people would expect. - Original Message - From: Paulo Soares [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, December 02, 2004 4:01 PM Subject: RE: [iText-questions] Image moves to next

[iText-questions] Asian Language Jars

2004-12-01 Thread Steve Appling
Should the the asian language jars available at Paulo's site be available from the download page on the main site? The old tutorial references only one file (http://itext.sourceforge.net/download/iTextAsian.jar) and that link still works, but I don't think it is the same as the one at

Re: [iText-questions] Asian Language Jars

2004-12-01 Thread Steve Appling
Do you think they should be available from the download page of the main site? I'm not sure it's obvious to someone to look at your site for CJK support. - Original Message - From: Paulo Soares [EMAIL PROTECTED] To: Steve Appling [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday

[iText-questions] iText XML Changes

2004-11-30 Thread Steve Appling
I'm working on bringing iText XML a little more up to date (support for PdfPTable, MultiColumnText, and the changes to Rectangle). Is the current XML format considered to be a stable form that should not be changed for existing elements? I can just extend it, but it might be nice to make a

Re: [iText-questions] Re: ColumnText bug?

2004-11-25 Thread Steve Appling
I think I agree with Paulo on this - don't print anything if there is no content. I handled a situation similar to yours in my application by adding additional text if the table would have had no content - something like this page intentionally left blank or No data found for the requested

[iText-questions] PdfPTable looses alignment if splitRows is true

2004-11-24 Thread Steve Appling
The copy constructor in PdfPTable and PdfPTable.shallowCopy are not copying the horizontalAlignment property. This causes a bug if splitRows is true and your table is longer than one page - the internally copied table reverts to the default value of horizontal alignment. I pulled the

Re: [iText-questions] Query about classpath

2004-11-23 Thread Steve Appling
I'm not sure where you got an iText.jar.zip. You probably want to be using itext-1.1.jar from http://www.lowagie.com/iText/download.html although, it's not very clear from the download page what the downloads from the second mirror are. Perhaps Bruno can clean that up. - Original Message

Re: [iText-questions] Issue with Image into PDF

2004-11-23 Thread Steve Appling
the image to the cell. - Original Message - From: Sudheendra Singh [EMAIL PROTECTED] To: Bart Allen [EMAIL PROTECTED] Cc: Paulo Soares [EMAIL PROTECTED]; ITEXT [EMAIL PROTECTED]; Steve Appling [EMAIL PROTECTED] Sent: Saturday, November 20, 2004 1:43 Subject: RE: [iText-questions] Issue

Re: [iText-questions] Error building iText Site HTML using Ant

2004-11-23 Thread Steve Appling
You need to get the www module using CVS to build the lowagie.com site. There is an ant target in download.xml that can get this (getFromCvs). Unfortunately, anonymous CVS access doesn't seem to be working now. I get errors when using either this ant target (which was working for me before)

Re: [iText-questions] Error building iText Site HTML using Ant

2004-11-23 Thread Steve Appling
I should have checked the sourceforge status first - anonymous CVS access is down now. From their status page: ( 2004-11-23 08:07:38 - Project CVS Service ) On 2004-11-23 a disk failure on the anonymous CVS server for projects starting with the letters: e, h, i, j, o and v is causing

Re: [iText-questions] Re: Additions to XML support

2004-11-20 Thread Steve Appling
- Original Message - From: Paulo Soares [EMAIL PROTECTED] To: Bruno [EMAIL PROTECTED]; Steve Appling [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, November 20, 2004 8:15 AM Subject: Re: [iText-questions] Re: Additions to XML support Steve, make sure that it works in the same

[iText-questions] Additions to XML support

2004-11-19 Thread Steve Appling
I would like to add support for PdfPTable (and friends) to the com.lowagie.text.xml package, but didn't know who to send it to when (and if ) I finish. Paulo doesn't have the xml package in the versions at itextpdf.sf.net and that's where I have been directing bug fixes / new features. Bruno,

[iText-questions] Where are the ant scripts?

2004-11-18 Thread Steve Appling
The main itext site describes a new set of ant scripts, but I can't find them (or the old build.xml) anywhere on the site, in the source downloads, or in browsing CVS. Where are build.xml and friends? --- This SF.Net email is sponsored by:

Re: [iText-questions] (no subject)

2004-11-18 Thread Steve Appling
: Bruno [EMAIL PROTECTED] To: Steve Appling [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, November 18, 2004 10:24 AM Subject: [iText-questions] (no subject) Steve Appling wrote: The main itext site describes a new set of ant scripts, but I can't find them (or the old build.xml

Re: [iText-questions] Issue with Image into PDF

2004-11-18 Thread Steve Appling
I think that the image will not be displayed if it will not fit. Make sure that your scaling doesn't make the image too wide for the column - iText doesn't auto-size the cell widths. - Original Message - From: Sudheendra Singh [EMAIL PROTECTED] To: Paulo Soares [EMAIL PROTECTED] Cc:

[iText-questions] Bug in PdfLine

2004-11-17 Thread Steve Appling
I believe there is a bug in PdfLine.getAscender (added by me unfortunately). The problem is the lines: if (ck.isImage()) ascender = Math.max(ascender, ck.getImageOffsetY()); This was copied from the getDescender code without thinking it through. I think it should be:

[iText-questions] PdfPTable Cells bigger than a page

2004-11-16 Thread Steve Appling
The PdfPTable class javadocs states ...if a row is bigger than the page it is dropped silently to avoid infinite loops. A few comments on this: Since PdfPTable doesn't support rowspans, I am using inner tables to accomplish the same layout. Some inner tables may return results larger than will

Re: [iText-questions] PdfPTable Cells bigger than a page

2004-11-16 Thread Steve Appling
reason behind the default behaviour that I don't understand, but I still think that failing silently is generally a bad idea. - Original Message - From: Paulo Soares [EMAIL PROTECTED] To: Steve Appling [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 5:38 PM Subject: Re

Re: [iText-questions] Table cell with different border

2004-11-15 Thread Steve Appling
Use setBoder to set up a bitwise combination of the border sides you wish enabled on each cell. Ex: cell.setBorder(LEFT | TOP) to have only a top and left side border. Alternatively, you can use the variable border width methods in itext-paulo-141 at itextpdf.sf.net to set differing widths on

Re: [iText-questions] CLARIFICATIONS REGARDING THE HYPHENATION IN ITEXT

2004-11-11 Thread Steve Appling
I think you want to use MultiColumnText to format your content. There are examples in the examples-141.zip at itextpdf.sf.net. See MultiColumnTextSimple.java for an example of column formatting. See hyph_auto_test.java for an example of hyphenation. - Original Message - From: Alert

[iText-questions] ColumnText support for addElement(Phrase)

2004-11-05 Thread Steve Appling
Is there a reason that addElement in ColumnText (and by extension PdfPCell) couldn't support adding a Phrase directly? Right now it throws IllegalArgumentException if you add a Phrase directly that isn't wrapped in a Paragraph. --- This

Re: [iText-questions] leading and alignment in PdfPCell

2004-10-27 Thread Steve Appling
To center exactly use setUseAscender(true), setUseDescender(true), and setUseBorderPadding(true). You then may have to increase padding to get the appropriate spacing from the borders. - Original Message - From: Martin Resch (adaptions GmbH) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [iText-questions] newbie can't do vertical alignment

2004-10-27 Thread Steve Appling
Vertical alignment is broken in Table with the 1.02b version. I believe this has been corrected in the most recent version at itextpdf.sf.net (itext-paulo-139). To center exactly use setUseAscender(true), setUseDescender(true), and setUseBorderPadding(true). There are still problems with Table

Re: [iText-questions] Problems with MultiColumnText

2004-10-21 Thread Steve Appling
That is a bug. I didn't understand the difference between getDirectContentUnder and getDirectContent from the JavaDoc. Will you please change that, Paulo. Thanks for pointing this out. I hope this class will be useful. - Original Message - From: Christian Lauer [EMAIL PROTECTED] To:

Re: [iText-questions] default row height

2004-10-19 Thread Steve Appling
Not exactly what you asked (because it's not the default setting), but if you use setUseAscender(true), setUseBorderPadding(true), and setUseDescender(true), then the row will be max font extent + padding-top + padding-bottom + top border width, + bottom border width max font extent is the

Re: [iText-questions] Re: cellWidths and RowHeights

2004-10-18 Thread Steve Appling
You would probably want to use a different table for each row. iText tables have columns with a fixed width for the entire table. We wanted to do something similar to what you demonstrated and experimented with one other idea, but decided it was too goofy. We had a list of cell widths that

Re: [iText-questions] table PdfWriter setSpacing(1) then border on last page drawn above last line!

2004-10-18 Thread Steve Appling
You are correct that this is a bug. There are actually more problems than this when using cellspacing on Tables longer than one page. The code calculating the new table position for pages after the first one does not take cell spacing into account correctly. You will see other problems with

Re: [iText-questions] html2pdf OutOfMemoryError Help me :((

2004-10-14 Thread Steve Appling
Are you sure you are using itext-paulo-139.jar from itextpdf.sf.net in your classpath? Perhaps you were trying the example with the itext-1.02b.jar - that won't work. - Original Message - From: Ali ÇINAR [EMAIL PROTECTED] To: Steve Appling [EMAIL PROTECTED]; iText [EMAIL PROTECTED

Re: [iText-questions] TABLE BORDERS

2004-10-13 Thread Steve Appling
It's not currently supported by the built in border support for a table cell (but sounds like a good future feature). If you are using PdfPTable, you can accomplish the same thing by adding a custom PdfPTableEvent handler to your table. The event callback has enough information to know the

Re: [iText-questions] html2pdf OutOfMemoryError Help me :((

2004-10-13 Thread Steve Appling
See the ExampleLargeTable.java example in examples-139.zip at http://itextpdf.sf.net. - Original Message - From: Ali ÇINAR [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 12:04 PM Subject: [iText-questions] html2pdf OutOfMemoryError Help me :(( Hi my

Re: [iText-questions] Alignment of text in a Paragraph within a Cell

2004-10-12 Thread Steve Appling
be better off using PdfPTable and the itext-paulo-139 version at itextpdf.sf.net. - Original Message - From: [EMAIL PROTECTED] To: Steve Appling [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, October 12, 2004 9:44 AM Subject: Re: [iText-questions] Alignment of text in a Paragraph

Re: [iText-questions] Alignment of text in a Paragraph within a Cell

2004-10-11 Thread Steve Appling
Use code like this with the current version: Cell cell = new Cell(p); cell.setHorizontalAlignment(Element.ALIGN_RIGHT); aTable.addCell(cell); It works when set from the cell level, but the paragraph alignment does not apply. I think this could be considered a bug. It is easy to fix in the

Re: [iText-questions] Adding Horizontal Line to Table

2004-10-08 Thread Steve Appling
Make sure you are using a PdfContentByte obtained from the current writer. Something like: PdfContentByte cb = writer.getDirectContent(); See the Example Chap1001.java in the tutorial at :http://www.lowagie.com/iText/tutorial/ch10.html#simplegraphics If your trying to have a line below your

Re: [iText-questions] Page numbering problem

2004-10-08 Thread Steve Appling
I had a similar problem where I wanted to do some special handling of the end of a page only when I was rendering a table. I handled it by making a class derived from PdfPageEvent that has a boolean member, inTable. I always set the inTable flag before attaching a table and clear it

[iText-questions] Variable size form XObjects

2004-10-07 Thread Steve Appling
I have a very limited understanding of the PDF specification, so please be patient with me. I would like to output text in the form of This has VARIABLE stuff, where VARIABLE is text content that will not be known until the end of document processing. This would seem to be the place to use a

Re: [iText-questions] Need help

2004-10-05 Thread Steve Appling
PdfDocument.newPage adds a page break. Is this what you are looking for? - Original Message - From: Pankaj Bharambe [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 05, 2004 5:55 AM Subject: [iText-questions] Need help Hello, I uses ur utility for the creating pdf

Re: [iText-questions] RE: ColumnText PdfPCell patch

2004-10-01 Thread Steve Appling
I think I agree with Christian on this. If you must support two modes in ColumnText and can't make the non-rectangular columns work with Elements, then it seems appropriate to throw an exception instead of just throwing away data. I don't think a user of ColumnText would ever want you to

[iText-questions] Suggestions for handling large PdfPTables

2004-09-30 Thread Steve Appling
setSkipFirstHeader worked great for me to render very large tables (thanks Paulo and Christian), but I have a couple of suggestions. First - skipFirstHeader isn't being copied in PdfPTable.shallowCopy. I think this is a bug. add: nt.skipFirstHeader = table.skipFirstHeader; Second - I

Re: [iText-questions] RE: Suggestions for handling large PdfPTables

2004-09-30 Thread Steve Appling
- Original Message - From: Paulo Soares [EMAIL PROTECTED] To: Steve Appling [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, September 30, 2004 10:36 AM Subject: [iText-questions] RE: Suggestions for handling large PdfPTables Why not have a method to remove all the rows except

Re: [iText-questions] large PdfPTables and fitsPage

2004-09-29 Thread Steve Appling
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Appling Sent: Tuesday, September 28, 2004 8:18 PM To: Paulo Soares; [EMAIL PROTECTED] Subject: Re: [iText-questions] large PdfPTables and fitsPage How does skipFirstHeader help me effeciently render a very large

Re: [iText-questions] large PdfPTables and fitsPage

2004-09-29 Thread Steve Appling
have an idea about how to handle this? - Original Message - From: Paulo Soares [EMAIL PROTECTED] To: Steve Appling [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, September 29, 2004 5:39 AM Subject: RE: [iText-questions] large PdfPTables and fitsPage Here's an example: public

[iText-questions] large PdfPTables and fitsPage

2004-09-28 Thread Steve Appling
On 9/23 Christian Lauer wrote about a problem with fitsPage and Paulo responded: I know about that and I don't care. The fitsPage method falls in the same cathegory I have for Table: use something else. I was planning on using the fitsPage method with PdfPTable in a manner similar to the

[iText-questions] ColumnText.addText question

2004-09-24 Thread Steve Appling
Are you supposed to be able to use addText multiple times before calling go? sample snippet: ct.setSimpleColumn(llx, lly, urx, ury); ct.addText(new Phrase(This is a test, font)); ct.addText(new Phrase(This is another, font)); ct.go(); This seems to only show the

[iText-questions] MultiColumnText

2004-09-24 Thread Steve Appling
Ever since Christian Lauer posted some questions about adding ColumnText directly to a document, I've been thinking about how I would want to use it. Last night I made a helper class (MultiColumnText) that is an element and can be added to a document directly. It can handle regular or

Re: [iText-questions] ColumnText

2004-09-22 Thread Steve Appling
Do you think ColumnText should implement Element? Then you could add a form of setSimpleColumn that only sets height and width and the add call in PdfDocument could adjust for horizontal alignment and call the existing setSimpleColumn using the currentHeight and indents (like it does in

Re: [iText-questions] Vertical alignment in PdfPCells

2004-09-21 Thread Steve Appling
- From: Paulo Soares [EMAIL PROTECTED] To: Steve Appling [EMAIL PROTECTED]; iText Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 9:51 AM Subject: RE: [iText-questions] Vertical alignment in PdfPCells Good work. It needs some changes to support composite elements, though

[iText-questions] PdfPTable borders

2004-09-21 Thread Steve Appling
PdfPTable isn't derived from Rectangle like Table is, so it doesn't have borders itself, just on the cells. I'm converting some code to use PdfPTable instead of Table and the lack of table level borders is a bit of a problem. My cells are added in an event driven manner (from a SAX data source)

Re: [iText-questions] Vertical alignment in PdfPCells

2004-09-21 Thread Steve Appling
the bulk of parameter copying in one place. Thanks again for pointing out the problem. - Original Message - From: Paulo Soares [EMAIL PROTECTED] To: Steve Appling [EMAIL PROTECTED]; iText Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 11:38 AM Subject: RE: [iText-questions

Re: [iText-questions] PdfPTable borders

2004-09-21 Thread Steve Appling
to accomodate the variable width border code I am using. I can do that and send you the two updated files. - Original Message - From: Paulo Soares [EMAIL PROTECTED] To: Steve Appling [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 12:40 PM Subject: RE: [iText

[iText-questions] Problems with nested Table in itext-paulo-137

2004-09-16 Thread Steve Appling
When using a Table that has one cell containing both a paragraph and another table (which has only 1 cell with a paragraph), I get an ArrayIndexOutOfBoundsException on line 177 of PdfTable. I think this is caused by the changes to the PdfTable constructor in iText-paulo-137. When I test against

Re: [iText-questions] Problems with nested Table in itext-paulo-137

2004-09-16 Thread Steve Appling
I think that moving table.complete() to earlier in the process does fix this problem. I am still having problems with Table.mergeInsertedTables(), but I don't think it is related. I have attached a version of PdfTable with the table.complete() calls moved. I'll look into the problems with

[iText-questions] XML support in iText-paulo versions

2004-09-15 Thread Steve Appling
Will the XML support be added to the itext-paulo experimental version eventually or has it been intentionally (and permanently) removed? --- This SF.Net email is sponsored by: thawte's Crypto Challenge Vl Crack the code and win a Sony DCRHC40

[iText-questions] Future of iText

2004-09-08 Thread Steve Appling
Could someone (Paulo or Bruno) comment on the expected future path of iText development. I'm not clear about the intent of having the two different versions (itext.sourceforge.net and itextpdf.sourceforge.net). Is it the intent for Paulo's experimental version to become the main version

[iText-questions] Font Descent

2004-09-08 Thread Steve Appling
Given a BaseFont object, how can I determine the font descent (maximum extent below the baseline) in points? The BaseFont class contains a static constant DESCENT member, but I don't see how this can be the real descent for every font regardless of size. It has a value of 3, but I'm not sure

[iText-questions] Re: Font Descent

2004-09-08 Thread Steve Appling
I retract my previous stupid question. I did not see the getFontDescriptor method until after my email. Sorry. --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA

Re: [iText-questions] Vertical Alignment Problems

2004-09-04 Thread Steve Appling
: Paulo Soares To: Steve Appling ; [EMAIL PROTECTED] Sent: Saturday, September 04, 2004 1:29 PM Subject: RE: [iText-questions] Vertical Alignment Problems Use a PdfPTable, Table has problems with vertical alignment and no one is willing to fix it. Best Regards

Re: [iText-questions] Multiple requests to Server from IE for dynamic PDF from iText

2004-01-30 Thread Steve Appling
See http://www.hanselman.com/blog/CommentView.aspx?guid=453 and MS knowledgebase article http://support.microsoft.com/default.aspx?scid=kb;en-us;293792 The fix they suggest in the knowledgebase (using an object tag so the browser doesn't have to determine which plugin to use) seems to work fine.