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 
temporary XHTML layout document is then parsed as XML (again using a SAX 
parser) and converted into PDF using iText.


We use XSL extensively in our application, but chose not to in this 
case.  A few cautions.  XSL transform based solutions don't scale well 
to very large documents.  For simple tasks, XSL can be very 
straightforward to write and maintain, but very complicated processing 
tasks are perhaps better handled in a more traditional programming 
language.  If your input is XML and your output is some form of text, 
then XSL can probably be made to do it, but it's not always the best 
solution.


When information in both PDF and in HTML, be aware of some differences 
of intention in the two formats.  PDF is intended to accurately describe 
a page oriented layout.  It expects all decisions about what fits in a 
particular space to have already been made.  HTML is intentionally much 
more forgiving.  An HTML viewer (browser) is expected to handle all of 
the reflow issues encountered when presenting HTML to different sized 
containers.  In PDF, these layout decisions need to be made at the time 
the PDF is generated, not when it is viewed.  If you are trying to have 
HTML and PDF that look exactly alike, then you need to be aware of 
this.  For example - by default, columns in HTML tables will expand if 
you are adding block content that won't fit (even if you have set a 
fixed column size).  Fonts of the same point size may not take up the 
same amount of space in your PDF and HTML versions. Defaults for padding 
and spacing in tables will be different and the way cell borders are 
drawn was different (until we added some features to iText).


We also had to deal with the fact that PDF is laying out content for a 
page at a time.  You don't want to just clip tables at arbitrary points 
when you encounter a page boundary, so you need to be concerned about 
whether a logical chunk of information will fit in a table and how to 
draw borders for the top and bottom of continued pieces of big tables.  
In HTML you don't have to (can't) worry about page boundaries.


It can, be done, though.  I think we ended up with results that look 
very similar (if not exactly identical) in HTML and PDF.


Good luck


Doug James wrote:


* Request for anyone's comments / suggestions / concerns. *
 
There is a chance I could be asked to take a home grown XML document 
and create either html or pdf from it. Any pitfalls to watch out for 
or any suggestions on the best way to do the request?
 
Thanks for any and all comments!
 
Doug James


***
BENEFITFOCUS.COM CONFIDENTIALITY NOTICE: This electronic message is 
intended only for the individual or entity to which it is addressed 
and may contain information that is confidential and protected by law. 
Unauthorized review, use, disclosure, or dissemination of this 
communication or its contents in any way is prohibited and may be 
unlawful. If you are not the intended recipient or a person 
responsible for delivering this message to an intended recipient, 
please notify the original sender immediately by e-mail or telephone, 
return the original message to the original sender or to 
[EMAIL PROTECTED], and destroy all copies or derivations 
of the original message. Thank you. (BFeComNote Rev. 07/29/2003)

***





---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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, but would like to dive in with a new question 
regarding tables:

Is it possible to omit only one portion of a cell border?  For example 
I would like to have a table with 4 rows and two columns.
I only want the outside border  of each column to be visible. Is this 
possible with iText? 
Note to the Developers: my client is prepared to pay for any new 
development even while the new development stays as part of the open 
source project.

Best Regards
Costa


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 continue on the next page if necessary.

 

Regards,
 

Isabelle

---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412alloc_id=16344op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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.  I'm using the 
MultiColumnText object to put a series of articles into a PDF. The 
layout is a headline (added as a paragraph) that stretches across the 
page, followed by the body of the text in three columns using a 
MultiColumnText object.  How can I get the columns to line up across 
the bottom, so the column lengths are equal? 
 
Is there a setting for this somewhere that handles this or do I need 
to delve into how the columns are rendered?
 
Dave
 
 


---
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393alloc_id=16281op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 - 
From: Vincent Cormier [EMAIL PROTECTED]
To: itext-questions@lists.sourceforge.net
Sent: Monday, May 02, 2005 2:38 PM
Subject: [iText-questions] Iterating a collection problem!


While I'm using an iterator to browse a collection, Tomcat gives me an error message out of 
memory. I think my code is ok, I have looked around here and my code seems to be similar as other 
ones that appears to be working.

Someone know what I'm doing wrong? (I'm using dbfw to work with my database)
  [...]
LignefactureQuery lignefactureQuery = LignefactureQueryFactory.getInstance(db);
Collection lignefactures = lignefactureQuery.getCollectionForFacture(facture);
Lignefacture lignefacture = null;
  [...]
int row = 3;
Iterator i = lignefactures.iterator();
while(i.hasNext()){
lignefacture = (Lignefacture)lignefactures.iterator().next();
aTable.addCell(new Cell(new Chunk(lignefacture.getProduit().getNom())), row, 0);
aTable.addCell(new Cell(new Chunk(lignefacture.getQuantite().toString())), row, 
2);
aTable.addCell(new Cell(new Chunk(lignefacture.getPrixvente().toString())), 
row, 3);
row++;
}
  [...]

---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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,
I want to draw lines on the Pdf page. Lines can of any thickness.
Please suggest me the aprropriate class methods for that.
I looked into Graphics calls and wrote something like:
Graphic graphic = new Graphic();
graphic.setHorizontalLine(2,50);
But no line was drawn.
Thanks in advance.

---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 of MultiColumnText


Hi,
How do I position MultiColumnText at a desired location on the page. The code
shown below creates a mct of certain height and has two columns. This code
results in the mct object placed at the beginning of the page. But I want this
mct object to be added a certain location (y-position) on the page.
// Code
float height = ...
MultiColumnText mct = new MultiColumnText(height);
float[] left1 = ...
float[] right1 = ...
mct.addColumn(left1, right1);
float[] left2 = ...
float[] right2 = ...
mct.addColumn(left2, right2);
mct.addElement(...)
document.add(mct);
Thanks,
Nandu

---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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: Monday, April 04, 2005 5:14 AM
Subject: [iText-questions] PdfTable background and borders


Hi all,
I think I have found a bug in PdfTable (iText 1.02 but seems to also
appear in the latest iText 1.2).
I have several cells with a background color and can hide the border of
neighboring cells.
After having reviewed the source code (PdfDocument.java), I find two
solutions:
  1. Paint the background in a different layer (PdfContentByte) than
 the border.  Currently borders and background are painted in a
 separate ContentByte (writer.getDirectContentUnder())
  2. Paint first all the background of the table, then the cell border
 and finally the table border.
What do you think?
Regards,
   David Pérez


---
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 reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 PROTECTED]
To: itext-questions@lists.sourceforge.net
Sent: Tuesday, March 29, 2005 10:38 AM
Subject: [iText-questions] XML Support for PdfPTable


A couple of months ago I added support for PdfPTable and the newer border attributes to the iText 
XML package, but never made it public.  I haven't done much to it since then, but I finally posted 
it on my website at www.appling.org/itext.  If you are interested in getting PdfPTables into/out 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 of the changes since then.  Please post any comments back to this list.


---
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 reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
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 reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] PdfTable background and borders

2005-04-04 Thread Steve Appling
Looking into it a little more, the code that is supposed to handle keeping the border on top will 
only work for cells on the same row. There is also a hack in there to keep the table borders from 
being covered up by backgrounds.  So, you're right - this is a bug.

I'll look into fixing this, but for now a workaround may be to use variable borders and border 
padding.  This should keep the cell spaces from overlapping.  In your example, change each cell to 
use something like:

  Cell c = new Cell(new Phrase(0.0));
  c.setUseVariableBorders(true);
  c.setUseBorderPadding(true);
  c.setBorder(Rectangle.BOX);
  c.setBorderWidth(.2f);
  tbl.addCell(c);
- Original Message - 
From: David Perez [EMAIL PROTECTED]
To: iText itext-questions@lists.sourceforge.net
Sent: Monday, April 04, 2005 10:46 AM
Subject: Re: [iText-questions] PdfTable background and borders


Thanks Steve
I have 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, 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: Monday, April 04, 2005 5:14 AM
Subject: [iText-questions] PdfTable background and borders

Hi all,
I think I have found a bug in PdfTable (iText 1.02 but seems to also
appear in the latest iText 1.2).
I have several cells with a background color and can hide the border of
neighboring cells.
After having reviewed the source code (PdfDocument.java), I find two
solutions:
  1. Paint the background in a different layer (PdfContentByte) than
 the border.  Currently borders and background are painted in a
 separate ContentByte (writer.getDirectContentUnder())
  2. Paint first all the background of the table, then the cell border
 and finally the table border.
What do you think?
Regards,
   David Pérez




---
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 reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[iText-questions] XML Support for PdfPTable

2005-03-29 Thread Steve Appling
A couple of months ago I added support for PdfPTable and the newer border attributes to the iText 
XML package, but never made it public.  I haven't done much to it since then, but I finally posted 
it on my website at www.appling.org/itext.  If you are interested in getting PdfPTables into/out 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 of the changes since then.  Please post any comments back to this list.


---
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 reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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: [iText-questions] gutters


Does iText support the notion of gutters in PDFs?  I need the gutter margin to be 1/4 and the 
outside margins to be 1/2 as well as the footer being aligned against the gutter.  Any ideas?

If it doesn't support that, can I use page events to change the margins for 
certain pages?
--
cheeser  You can find my blog at http://cheeser.blog-city.com
 and on AIM as evan chooly
---
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 reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
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 reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 there an example of that floating around somewhere?
Paulo Soares wrote:
If you are going to manipulate margins it's advisable to use ColumnText
(or MultiColumnText) and do your own layout calculations. It doesn't
take that long and the results will be exactly what you want.

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of Justin Lee
Sent: Thursday, March 17, 2005 4:23 PM
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] gutters

Does iText support the notion of gutters in PDFs?  I need the gutter margin to be 1/4 and the 
outside margins to be 1/2 as well as the footer being aligned against the gutter.  Any ideas?

If it doesn't support that, can I use page events to change the margins for 
certain pages?
--
cheeser  You can find my blog at http://cheeser.blog-city.com
 and on AIM as evan chooly
---
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 reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

---
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 reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
--
cheeser  You can find my blog at http://cheeser.blog-city.com
 and on AIM as evan chooly
---
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 reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
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 reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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: [iText-questions] set leading


My 2 cents. Last week Paulo advised me to use ColumnText, because
setFirstLineIndent wouldn't work otherwise. So, instead of adding Paragraphs
to a document, I now add (addElement) them to a ColumnText. Since then I
noticed that a whole lot of other things started to work that didn't before.
One of those was a change of leading upon images included into text,
using a Chunk created as:
new Chunk(myImage, myOffsetX, myOffsetY, true)
I expect that introducing ColumnText may also solve the problem addressed in
the query below. ColumnText makes the code more complicated though. For me it
required closely reading of the old tutorial, and a lot of trial and error.
By the way, if I remember correctly, I also had to include a line:
myColumnText.setLeading(2, 1);
I cannot say I understand what 2 and 1 mean exactly, or why the choice of 2
and 1 gives good results, but it seems they do.
Regards,
 Mark-Jan
-
Paulo Soares wrote:
That's the way it works. If you need different leadings use more than
one Paragraph.
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On
 Behalf Of Mike Watson
 Sent: Tuesday, March 01, 2005 9:45 PM
 To: itext-questions@lists.sourceforge.net
 Subject: [iText-questions] set leading

 Hi,

 I am having difficulties adding phrases to a paragraph where
 each phrase has a
 different leading. That is, it seems to only obey the
 paragraph leading, and
 not the phrase leadings inside.

 Is this a known problem?  Any workarounds?

 thx
 -m



 ---
 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 reading now.
 http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions
---
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 reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=Click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

---
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 reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
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 reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 
tables (with setSkipFirstHeader).  You will have to coordinate the drawing of top and bottom headers 
to make sure that the concatenated tables don't get horizontal lines in the wrong places.

Good luck.
- Original Message - 
From: Denham, Martin [EMAIL PROTECTED]
To: itext-questions@lists.sourceforge.net
Sent: Tuesday, February 08, 2005 8:39 AM
Subject: [iText-questions] Border around a whole PdfPTable

Can I display a border around the outer edge of a PdfPTable but not around 
each cell?
***
EDF Energy plc internet e-mail disclaimer
This e-mail and any files transmitted with it are confidential and may be protected by legal 
privilege.
If you are not the intended recipient, please notify the sender and delete the e-mail from your 
system.
This e-mail has been scanned for malicious content but the internet is inherently insecure and EDF
Energy plc cannot accept any liability for the integrity of this message or its attachments. No 
employee
or agent of EDF Energy plc or any related company is authorised to conclude any binding agreement on
behalf of EDF Energy plc or any related company by e-mail. All e-mails sent and received by EDF 
Energy
plc are monitored to ensure compliance with the company's information security policy.
***


---
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 reading now.
http://ads.osdn.com/?ad_ide95alloc_id396op=ick
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

---
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 reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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 reading now.
http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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, 2005 2:23 AM
Subject: [iText-questions] multicolumntext

hallo,
what are the benefit to use the multicolumntext instead of the columntext.
the problem that i have is, that if i have two ore more columns on one
page and
there is not enough text to fill, that i wan't, that the filling of the
columns
is balanced. can i reach this with multicolumntext?
with regards
thomas
--
Thomas Kübler
Alt-Marienfelde 25
12277 Berlin
Telefon 030.723.23.183
Fax 030.723.23.185
www.variex.de

---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 [EMAIL PROTECTED]
To: itext-questions@lists.sourceforge.net
Sent: Thursday, January 27, 2005 12:57 PM
Subject: [iText-questions] Vertical alignment in a table cell

Hi,
I am using iText with CFMX. For this I have wrapped some of the frequently
used iText API inside cfc.

I am trying to add a simple text element to a cell and set the vertical
alignment of the cell to the middle. It does not look like it is working for
me. The text sticks to the bottom of the cell. When I tried to set the
leading of the text element to 0 (not shown in the sample code) the text
element aligned it self to the the top of the cell.  Am I missing some thing
here?

My code looks like this:


table = createObject(component, PDF.table);
table.init(columns=4);
table.setWidth(width=100);

temp2 = arrayNew(1);
temp2[1] = 10; temp2[2] = 25;
temp2[3] = 25; temp2[4] = 40;
table.setWidths(iWidths=temp2); // passing an integer array

// setting up cell, paragraph  and font object instances
cell = createObject(component, PDF.cell);
fontFactory = createObject(component, PDF.fontFactory);
font = createObject(component, PDF.font);
normalFont = fontFactory.getFont(fontName=font.TIMES_ROMAN, size=12);
para = createObject(component, PDF.paragraph);

para.init(stringTxt=test, font=normalFont); // constructing a paragraph
cell.init(element=para); // constructing a cell
cell.setVerticalAlignment(value=cell.align_middle);  // setting the vertical
alignment - BUT DOES NOT WORK
table.addCell(aCell=cell);


Thanks in advance,
Bhasker


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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: Isaac Goldstein [EMAIL PROTECTED]
To: itext-questions@lists.sourceforge.net
Sent: Tuesday, January 25, 2005 2:28 PM
Subject: [iText-questions] Does iText still support XML and do they plan to continue Support


Hi.  We've been using iText's XML to generate pdf files.  We've noticed that
the new web site does not contain documentation on this subject.  Does iText
intend to drop the XML portion?  We've really enjoyed using this as an
alternative to FO.

---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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, but I'll look into it when I get a chance.

- Original Message - 
From: Domenick Lacertosa [EMAIL PROTECTED]
To: itext-questions@lists.sourceforge.net
Sent: Tuesday, January 25, 2005 10:42 AM
Subject: [iText-questions] Table Issue from iText v0.98 to v1.1 to v1.2.1

I am having problems with Tables since upgrading from iText v0.98.  The
results are the attached pdf files (if they are not available, let me
know and I will post a url to get the files), and the code used to
create those files is below.
   try {
   Document document = new Document();
   FileOutputStream fos = new FileOutputStream(pathForIO + 
\\testPDF.pdf);
   PdfWriter pdfWriter = PdfWriter.getInstance(document, fos);
   document.open();
   Table t = new Table(2);
   t.setBorder(0);
   t.setBorderWidth(0);
   t.setPadding(3f);
   Paragraph p = new Paragraph(Here is some long text that
should wrap.  Here is some long text that should wrap.);
   Paragraph pEmpty = new Paragraph();
   Cell c = new Cell(p);
   c.setBorderWidth(1f);
   c.setBorderColor(Color.GRAY);
   c.setNoWrap(false);
   Cell emptyCell = new Cell(pEmpty);
   c.setBorderWidth(1f);
   c.setBorderColor(Color.GRAY);
   t.addCell(c);
   t.addCell(c);
   t.addCell(emptyCell);
   t.addCell(emptyCell);
   t.addCell(c);
   t.addCell(c);
   document.add(t);
   document.close();
   } catch (Exception e) {
   e.printStackTrace();
   }
For some reason, from 0.98 to 1.1 the empty cell's borders are lost,
height of the empty cells have been cut in half, and wrapping is lost on
the cells with long text.
In v1.2.1 the empty cell borders are restored, the height is still off,
and the wrapping is lost on the other cells.  What am I doing wrong in
the above code?  Thanks in advance.
- Dom

---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag--drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 code to use PdfPTables 
instead.
- Original Message - 
From: Volland, Heiko [EMAIL PROTECTED]
To: itext-questions@lists.sourceforge.net
Sent: Wednesday, January 12, 2005 4:47 AM
Subject: [iText-questions] Table.setAutoFillEmptyCells

Hello together,
first of all I want to say thanks to Bruno and Paulo... I'm using iText
quite a while for many different purposes in the company I'm working for
(one of the three largest insurance companies in Germany, called Talanx,
formerly HDI) and me and my colleagues are enthused about the many
requirements we can satisfy with this library.
Now my question: because of changing the Acrobat Reader-Version from 6.0
to 7.0 we had to switch to the newest iText-version 1.2 (formerly we
used 1.02). The result was, that the height of tablerows got higher  and
that the option Table.setAutoFillEmptyCells seemed not to work any more
(rows with empty cells disappeared). I have to mention, that we just
changed the jar-file we use in our deployed application.
With kind regards
Heiko Volland
---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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, Shangshin [EMAIL PROTECTED]
To: itext-questions@lists.sourceforge.net
Cc: Liao, Shangshin [EMAIL PROTECTED]
Sent: Tuesday, January 04, 2005 6:37 PM
Subject: [iText-questions] Performance Issue on Document.add() function

Hi,
The function in question takes at least 10 seconds if the size
of bigTable is more than 1 mega.( plz see sample code below)
com.lowagie.text.Document pdfDocument = new
com.lowagie.text.Document(PageSize.LETTER.rotate());
PdfPTable bigTable = new PdfPTable(10);
pdfDocument.add ( bigTable );
My computer has a 3G cpu and 1G memory.
I am wondering if there is a way for optimization.
Thanks
Shangshin Liao
[EMAIL PROTECTED]
--
This message is intended only for the personal and confidential use of the designated recipient(s) 
named above.  If you are not the intended recipient of this message you are hereby notified that any 
review, dissemination, distribution or copying of this message is strictly prohibited.  This 
communication is for information purposes only and should not be regarded as an offer to sell or as 
a solicitation of an offer to buy any financial product, an official confirmation of any 
transaction, or as an official statement of Lehman Brothers.  Email transmission cannot be 
guaranteed to be secure or error-free.  Therefore, we do not represent that this information is 
complete or accurate and it should not be relied upon as such.  All information is subject to change 
without notice.


---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 get
all the fixes.  If you feel there is still a bug - after reading the mentioned 
discussion and trying
your application with the current build, then feel free to send another message 
to the list.

Bruno - I noticed that the entry about this didn't get added to the FAQ.  Just 
wanted to make sure
you didn't forget :)
- Original Message - 
From: Bruno [EMAIL PROTECTED]
To: Larisa Isenko [EMAIL PROTECTED]
Cc: itext-questions@lists.sourceforge.net
Sent: Thursday, December 23, 2004 4:47 AM
Subject: Re: [iText-questions] setOffset(n) in version iText-1.1


 Quoting Larisa Isenko [EMAIL PROTECTED]:

  Hi,
 
  I have a problem with table.setOffset(n) in version iText-1.1. In
  my document I have three tables, placed next to.
  Table.setOffset(n) does not work, although with version 1.01 is
  all Ok.

 This is a known feature.
 It was discussed on the mailinglist and fixed as described
 in Steve Applings answer:

http://www.mail-archive.com/cgi-bin/htsearch?method=andformat=shortconfig=itext-questions_lists_sourceforge_netrestrict=exclude=words=How+should+document+spacing+work+for+Tables
 br,
 Bruno


 ---
 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 reading now.
 http://productguide.itmanagersjournal.com/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions




---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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), then the edge of the borders should exactly 
touch the top and
bottom of the text - assuming your text goes all the way to the font extents.  
There will still be
space at the bottom to accomodate characters like y that drop down into the 
space below the
baseline.  If you use the settings shown above, you will probably find that you 
do need a little bit
of padding.  That is a little too tight to look good.
- Original Message - 
From: [EMAIL PROTECTED]
To: itext-questions@lists.sourceforge.net
Sent: Wednesday, December 22, 2004 6:09 AM
Subject: [iText-questions] cell padding


hi,

i've got a problem with cell padding. even if i set cellpadding to zero, a 
space under my text
remains.
see attached image.
cells are produced through:

PdfPCell c = new PdfPCell(new Phrase(cleanFromHtml((String) row.get(k)), 
FontFactory
.getFont(formatCellFont(element), 
formatCellFontSize(element),
formatCellFontFace(element),
 
formatCellFontColor(element;

c.setHorizontalAlignment(formatCellHorizentallAlignment(element));

c.setVerticalAlignment(formatCellVerticalAlignment(element));
c.setBackgroundColor(formatCellbgColor(element));
c.setPaddingBottom(0);
datatable.addCell(c);

as you can see, padding for left/right/top is working, when i set 
c.setPadding(0), the text ist
exactly
close to the border.
inside of the string, there is no linebreak.

whats wrong ??

thanks in advance.

sincerly,
Andreas Steffens







---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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
resolveEntity method defined in the base class DefaultHandler).  If you have 
control over the HTML
that is being generated you can use the numeric character entity version of the 
non-breaking space
as #160; and then you won't have to make your own resolver.

This should eventually be added to the real SaxMyHtmlHandler, I'll try to look 
at it sometime next
week.

Good luck!
- Original Message - 
From: Amit Chawla [EMAIL PROTECTED]
To: itext-questions@lists.sourceforge.net
Sent: Wednesday, December 22, 2004 11:49 AM
Subject: [iText-questions] Parsing nbsp


 Hey here i am again..

 html document has nbsp example pnbsp/p.
 or tdnbsp/td

 SaxMyHtmlHandler is not parsing and is not generating PDF.

 I feel it is taking it as element .


 Can anyone suggest how to handle nbsp while parsing .

 Thanks
 regards
 amit chwla
 Disclaimer: 'This email and any files transmitted with it are confidential
 and intended solely for the use of the individual or entity to whom they are
 addressed. If you have received this email in error please notify the system
 manager. Please note that any views or opinions presented in this email are
 solely those of the author and do not necessarily represent those of the
 company. Finally, the recipient should check this email and any attachments
 for the presence of viruses. The company accepts no liability for any damage
 caused by any virus transmitted by this email.'


 ---
 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 reading now.
 http://productguide.itmanagersjournal.com/
 ___
 iText-questions mailing list
 iText-questions@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/itext-questions




---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions


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
someone rename it if they didn't like the version number in the name.  Then you 
don't have to worry
about keeping them in synch :)

- Original Message - 
From: Victor Nkonga [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 17, 2004 10:57 AM
Subject: [iText-questions] Re: iText1-1.jar




 Bruno bruno at lowagie.com writes:

 
  Quoting Victor Nkonga vnkong at milwaukee.gov:
 
   I download the new release of itext and I wasn't able to run the examples
 you
   have in the tutorial. When compiled example Chap0106.java I got these
   error:
 
  In the new tutorial (still only 1 chapter available)
  I have build.xml files for all the examples.
  If you use these build.xml files with ANT,
  you always have the correct CLASSPATH.
  Could you try the RTF examples with the 1.1 jar?
  http://itext.sourceforge.net/tutorial/
 
  Sorry, I didn't have the time yet to document on
  the structure you need to run the build.xml files...
 
  br,
  Bruno
 
 
  ---
  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 reading now.
  http://productguide.itmanagersjournal.com/
 

 Thank you Bruno for responding to my difficulties with itext.jar.
 I want to point out that after download the compile file I wasn't able to use
 it because all classes I called in the jar file were not found. I am very sure
 that I setup correctly the classpath in my two IDEs (Oracle JDeveloper 9.0.4
 and Eclipse 3.0). To solve this problem I have to download the source code
 instead compliled it and created my own jar file. I replaced the jar file I
 download in your site with my own I was able to run the codes posted in the
 new and old tutorial.
 Please could check the jar file you posted in site. it seams that it is not
 working. If you want I can send you the my own jar file I created.

 Thank you for creating these wonderful classes. They helped me to solve many
 of my difficulties creating pdf file.

 Victor






 ---
 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 reading now.
 http://productguide.itmanagersjournal.com/
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions





---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 Images


Only ColumnText and PdfPTable can do auto leading. 

 -Original Message-
 From: Jerry Heinz [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, December 15, 2004 10:23 PM
 To: Paulo Soares; itext-questions
 Subject: RE: [iText-questions] Inline Images
 
 Is there any workaround to achieve this effect when using straight
 paragraphs? Thanks!
 
 Jerry
 
 -Original Message-
 From: Paulo Soares [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, December 15, 2004 5:18 PM
 To: Jerry Heinz; itext-questions
 Subject: Re: [iText-questions] Inline Images
 
 
 It only works in ColumnText with auto leading.
 
 - Original Message - 
 From: Jerry Heinz [EMAIL PROTECTED]
 To: itext-questions [EMAIL PROTECTED]
 Sent: Wednesday, December 15, 2004 9:51 PM
 Subject: [iText-questions] Inline Images
 
 
 I have a paragraph in which I'm including an inline image 
 using the code
 below. There are some cases, however, where the image height is larger
 than the line spacing. From the JavaDoc, it appears that the 
 constructor
 Chunk(Image image, float offsetX, float offsetY, boolean 
 changeLeading)
 would handle this, however as you can see from the attached pdf, the
 line spacing is not adjusted. 
 
 Can someone please tell me what I'm doing wrong? As always, thanks for
 your help!
 
 Jerry
 
 import java.io.*;
 import com.lowagie.text.*;
 import com.lowagie.text.pdf.*;
 
 public class imageTest {   
 
 public static void main(String[] args) {
 Document document = new Document(PageSize.A4, 50, 50, 50, 50);
 try {
 PdfWriter writer = PdfWriter.getInstance(document, new
 FileOutputStream(c:\\image_leading.pdf));
 String myString = itextp/p/itext;
 document.open();
 
 Paragraph p = new Paragraph();
 p.add(new Chunk(Here is some text and an image 
 will appear
 inline with the test test here ... blah blah blah blah));
 Image img = Image.getInstance(C:/myimage.gif);
 p.add(new Chunk(img,0,0, true));
 p.add(new Chunk(blah blah blah blah blah blah blah));
 
 document.add(p);
 
 document.close();
 System.out.println(Finished.);
 }
 catch (Exception de) {
 de.printStackTrace();
 }
 }
 }
 
 


---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions



---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 
1.5 * font size.

Good luck!
- Original Message - 
From: Scott Tyriver [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 16, 2004 4:26 PM
Subject: [iText-questions] Line Spacing in text files


 We are using iText 1.1.

 When we convert text documents to pdf we are seeing in
 the converted pdf slightly larger line spacing than in
 the original document. Here is an example of a
 original and converted document and the code snippet
 we are using to perform the conversion. Is there any
 way to tighten up the line spacing in the converted
 document?

 Document myDocument = new
 Document(PageSize.A4,5.0f,5.0f,40.0f,40.0f);
 PdfWriter myPdfWriter =
 PdfWriter.getInstance(myDocument, aOutputStream);
 myDocument.open();
 Paragraph myParagraph = new
 Paragraph(aSourceString,new Font(Font.COURIER, 10));
 myDocument.add(myParagraph);
 myDocument.close();

 Thanks for any help



 __
 Do you Yahoo!?
 Yahoo! Mail - now with 250MB free storage. Learn more.
 http://info.mail.yahoo.com/mail_250





  
 
 *** TEST CREDIT REPORT ***

DATE ORDERED:12/01/04 ACCOUNT #: 9FNMA ORDER #: 
 500448
REPORT PRICE: $00.00   REQUESTED BY:
   PREPARED FOR: FANNIE MAE TESTING - 
 BUREAU SIMUL
LOAN #:
 WASHINGTON, DC 20016

BORROWER:  HOMEOWNER,JOHN  SSN: 
 300405000
PRESENT ADDRESS:  175 13TH STREET
  WASHINGTON, DC 20013
SPOUSE:   HOMEOWNER,MARY  SSN: 
 500222000
   
 --

  AMTPYMT
   DATE   HIGH   DATECURTERM/ PAST   HISTCURRENT
ECOA   OPENCRVER BALPYMT  DUE  30-60-90  STATUS
   
 --

1)  CHASE
58652333
 U   05/01 12547   07/045000 60/257.440,0,0 I-1
2)  SALLIE MAE
950254520
 S   09/94  5000   07/042500180/49.24 0,0,0 I-1
3)  SALLIE MAE
950752340
 U   09/95  2500   07/041100180/24.63 0,0,0 I-1
4)  TOYOTA CREDIT
3210989098
 S   05/02 24371   07/04   15838 60/500.030,0,0 I-1
5)  UNIVERSAL VISA
6011785239
 I   04/91 1   07/04 950   /25.00 0,0,0 R-1

**  PUBLIC RECORDS  
 **

THE FOLLOWING ARE PUBLIC RECORDS OBTAINED FROM THE REPOSITORY SOURCES
FOUND BELOW:

***  END OF PUBLIC RECORDS  
 **


INQUIRIES FOR THE PAST  12 MONTHS:


  
  *   CREDIT BUREAU SCORES   *

BEACON Score for JOHN EQUIFAX 00760
BEACON Score for MARY EQUIFAX 00783
EMPIRICA Score for JOHN  TU 00779
EMPIRICA Score for MARY  TU 00768
FICO II Score for JOHNEXPERIAN 00785
FICO II Score for MARYEXPERIAN 00771


 ERROR/WARNINGS REPORTED BY REPOSITORIES AND/OR CREDIT AGENCY 
 

*** END OF ERROR/WARNINGS 
 

 *

 NOTE:  THIS CREDIT REPORT IS PROVIDED FOR TRAINING
 PURPOSES ONLY IN CONJUNCTION WITH DESKTOP ORIGINATOR
 AND DESKTOP UNDERWRITER.  IT IS NOT A RESIDENTIAL
 MORTGAGE CREDIT REPORT BUT IS A REPLICATION OF A
 3-IN-FILE MERGED REPORT.  IT MAY NOT MEET THE
 STANDARDS SET FORTH BY FANNIE MAE, FHA, OR VA  FOR
 REAL ESTATE TRANSACTIONS AND IT MAY NOT
 REPRESENT THE MINIMUM REQUIREMENTS FOR AN
 IN-FILE CREDIT REPORT.

 THE BORROWERS USED FOR DU TESTING AND TRAINING
 PURPOSES ARE FICTITIOUS AND DO NOT RELATE TO
 REAL PEOPLE.  THE NAMES, ADDRESSES AND SOCIAL
 SECURITY NUMBERS WERE CREATED AT RANDOM, AND
 ANY SIMILARITY WITH REAL INDIVIDUALS IS UNINTENTIONAL.

 *






[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
considered a bug.

Some background -
In 1.02b, there is a value called heightCorrection which is set at 6 (pts) and 
used in several
calculations.  The placement of the tables also depends on the current leading 
in the document.
This is set to 0 and is only set to a value if another element that has a 
leading is added before
the table is.  Assume a paragraph then two tables are added.  A slightly 
simplified view of the
positioning is:

Paragraph
   heightCorrection + para leading
Table 1
   para leading + heightCorrection + para leading
Table 2

So given an initial paragraph with a 10pt leading, the result will be: 
Paragraph, 16 pt space, Table
1, 26 pt space, Table 2.  If you don't add the initial paragraph it would be: 
Table 1, 6 pt space,
Table 2.

You can't actually get the tables closer than 6 pts to each other without 
setting a negative table
offset (this has been done in some of the samples people sent to me) - this 
seems wrong.

The use of the current document leading seems a little goofy, but I am willing 
to live with it.  I
don't like the extra 6 pts of heightCorrection or the fact that the leading is 
added on both sides
of the table.  The javadoc for setOffset mentions that a newline is added 
before the table, but
nothing in javadoc mentions the extra line after the table.  I think the one 
after the table should
be removed.  This would make it:

Paragraph
   para leading
Table 1
   para leading
Table 2

What does everyone think about this?




---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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

2004-12-16 Thread Steve Appling
I believe that I have already fixed the problem you sent in.  The text content 
of the tables now
stays where it should (inside the borders).  I discovered problems with the 
spacing between the
tables while working on this and would like to solve both of them.  I think I 
will have a new
version 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?


 Hi folks :-)

 Your explanations sounds good to me since it seems to explain
 the difficulties I experienced with the Table object.

 Steve: Do you have any timeframe when your patch is available?
 Will the problem with cellspacing be solved as well? This would
 be great, since I don't have to put in an (ugly) workaround in my
 code...

 Thanks in advance,

 Frank




---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 (or at best just very awkward) for iText to 
 continue in this
state.
 
 
 Problem is: I have some applications generating tables in PDF and HTML
 using the same Document object.
 I can't throw away Table unless I have an alternative.
 ...

I agree - that is why it seems weird to have an alternative class.  How will 
you explain this?
Use PdfPTable if you only want PDF, but if you want multiple output formats, 
use Table (unless you
run into one of the many bugs, then you're out of luck).


 It has been going on for longer. Geert Poels once needed some special
 features and the code became really complex after that.
 ...

It is lack of knowledge of what some of these special features are that has 
kept me out of many
parts of the Table code.  I need some good test cases that exercise these 
features before I would
feel comfortable messing with some of the worst parts of the code (like 
Table.mergeInsertedTables).
Perhaps if we can get some test cases exercising some of this, then some brave 
soul may have a
chance at fixing it without breaking everything else :)

 Without a good set of unit or functional tests it is hard for anyone to fix 
 a bug without causing
 another one.
 
 Enough of my ranting.  On a more positive note - if anyone is interested in 
 discussing / working
on
 some type of testing framework for iText then I would be willing to 
 contribute.  I think this
could
 do a great deal for the long term stability of the project.
 
 Once I am ready to write the chapter on Tables, I could make some small
 examples.
 But for the moment I have other priorities.
 ...

I understand - the documentation should come first.  I have a start at a 
testing framework that I
have been using to test my changes to iText.  I would be glad to contribute it 
if you are
interested.  I only have a handful of test cases currently (mostly around Table 
and PdfPTable), but
it's a start.  If you are interested in added a separate package for testing, 
then I'll start
another discussion thread describing what I have and where it might be improved.




---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 still be useful.  I 
am currently working
on adding XML support for PdfPTable, but it is complicated since it wasn't 
designed to be able to
extract the contents for this purpose.

I think that it is problematic (or at best just very awkward) for iText to 
continue in this state.
I think that Table should be either fixed or deprecated.  It is confusing for 
someone new to this
library to understand the differences or which one to use.  The current 
documentation doesn't help
here - it mainly discusses Table.  Also, since Paulo has developed PdfPTable 
(which he has done a
very good job of maintaining) he hasn't had much concern for Table and has been 
willing to commit
whatever someone sends in.  I think this has made Table grow less and less 
stable over the last 6
months.  It now has things like System.out.println statements with someone's 
debugging code in it
(I'll remove these today).  People have a desire to fix their problem of the 
moment, but without a
cleaner architecture, these fixes seem to often break functionality elsewhere.  
In fairness to these
people, the current code in Table is quite a mess and would be hard for anyone 
to understand.
Without a good set of unit or functional tests it is hard for anyone to fix a 
bug without causing
another one.

Enough of my ranting.  On a more positive note - if anyone is interested in 
discussing / working on
some type of testing framework for iText then I would be willing to contribute. 
 I think this could
do a great deal for the long term stability of the project.

- Original Message - 
From: Andrea Schwob [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 14, 2004 8:19 AM
Subject: [iText-questions] Table.class or PdfPTable.class ?


 Hi
 I am confused about the use of tables in iText. In some threads I can
 read as it isn't a good way to work with the Table class anymore because
 it has some strange code in it (e.g. this story about the cellpadding or
 the line spacing in the version 1.1). Otherwise I see there are a lot of
 people using Table and not PdfPTable. What is the right solution? Should
 I only develop my PDF's with PdfPTable or with Table or with both of
 them? I would appreciate to get your opinions.

 Thanks to all
 Andrea


 ---
 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 reading now.
 http://productguide.itmanagersjournal.com/
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions





---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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
borders).  I'm not sure if this is your problem.  One other change is that some 
types of content now
use their own leading instead of the default leading for the cell.  See if 
setting the leading on
the content before adding it helps.  If not, please post some SIMPLE sample 
code demonstrating the
problem.

Good Luck.
- Original Message - 
From: Andrea Schwob [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, December 13, 2004 2:38 AM
Subject: [iText-questions] Line spacing iText 1.1


 Hi
 I've created a PDF with iText-1.02b, and it looked as I wanted. Now I
 updated my Library to iText-1.1 and the line spacing is much bigger as
 before (see attachments). I used iText-Tables to create this PDF, is
 there any change in the iText-Table that could be responsable for this?

 Thanks for your help
 Andrea





---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 the FAQ entry you asked for:
Why did the spacing for my Table change from what was in version 1.0*?

Some bugs were fixed related to the Table class that have changed how some 
spacing was calculated.
Outside of the table, extra spacing is added based on the table offset 
(Table.setOffset) or the
current leading if the table offset is not set.  The current leading is the 
leading of the last
content added to the document (0 if the table is the first thing in the 
document).
In version 1.02b, spacing outside the table worked like:

Previous Content
   blank line with height = table offset + 6pt
Table
   blank line with height = table offset

Starting with version 1.1.2, spacing outside the table works like:

Previous Content
   blank line with height = table offset
Table

Some spacing has changed inside the Table also.  Inside Cells, the spacing of 
lines used to be based
only on the Cell leading (Cell.setLeading).  This caused problems if the 
content of the cell had
different leading than the Cell.  As of version 1.1, the Cell content uses the 
leading of the
content for all content derived from Phrase.  There is another handy feature of 
Cell (added in 1.1)
that may let you generally ignore leading and have the height automatically set 
- use
Cell.setUseAscender(true) and Cell.setUseDescender(true).




---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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, December 09, 2004 1:57 PM
Subject: [iText-questions] Different fonts in the same Paragraph


Hello List,

I am new to this group. I am creating a Paragraph in different fonts, but when 
I do this, it breaks
the paragraph into new lines. I mean every font text is displayed in new line.
Can someone please help to create a Paragraph with different fonts.

Thanks in advance
Booshan.


---
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 reading now.
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions




---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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

2004-12-07 Thread Steve Appling
I have had a brief email discussion with Chris Laforet (who reported this 
problem on 12/3) and asked
for a simple sample causing the problem.  He just sent me one this morning.  I 
will look into it
today.

- Original Message - 
From: Bruno [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, December 07, 2004 4:12 AM
Subject: [iText-questions] RE: Problem in cell borders on upgrading the iText 
version


 Quoting Pulin Bhorania [EMAIL PROTECTED]:

  I would appreciate it if you can notify me with the estimated time for
  getting the solution of my problem.

 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 of IT Products from real users.
 Discover which products truly live up to the hype. Start reading now.
 http://productguide.itmanagersjournal.com/
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions





---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 branch (don't know if I have permissions), or
  just let Paulo put it in his version?
- Original Message - 
From: Pulin Bhorania [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, December 07, 2004 3:54 AM
Subject: [iText-questions] RE: Problem in cell borders on upgrading the iText 
version


Hi Bruno,

This in response to the problem of cell borders not appearing properly in
pdf files on upgrading the iText version.
I have already sent you the 2 example PDF files and the version of iText
used for each of them last week.

I would appreciate it if you can notify me with the estimated time for
getting the solution of my problem.
This is in order to facilitate myself in planning my future tasks
accordingly.

Thanks in advance,
-Pulin


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.802 / Virus Database: 545 - Release Date: 11/26/2004



PdfCell.java
Description: java/


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
- Original Message - 
From: Chris Laforet [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, December 03, 2004 1:39 PM
Subject: [iText-questions] Problem with empty table cells in PDF


 Hello there:

 I have an application that generates a form with multiple columns and rows
 as a PDF.  I previously used iText 1.02b and had no problems.  iText 1.1 and
 even the current 143 early-access all have the same problem with empty
 cells.  They are completely suppressed (no borders are printed).  This is
 disconcerting since the customer requires the cells to show up even if they
 are empty.

 Is this a bug in the newer releases?  I need to move from 1.02 because that
 version has other issues that the newer versions have fixed.

 What do I have to do to get empty cells to print??

 --- Sample code -

 table = new Table(columns + 1);
 table.setBorderColor(new Color(0,0,0));
 table.setBorderWidth(1);
 table.setBorder(Rectangle.TOP | Rectangle.BOTTOM | Rectangle.LEFT |
 Rectangle.RIGHT);
 table.setCellpadding(0);
 table.setCellspacing(1);
 table.setCellsFitPage(true);
 table.setTableFitsPage(false);
 table.setDefaultCellBorder(Rectangle.TOP | Rectangle.BOTTOM | Rectangle.LEFT
 | Rectangle.RIGHT);
 table.setDefaultCellBorderWidth(1);
 table.setDefaultCellBorderColor(new Color(0,0,0));
 table.setDefaultColspan(1);
 table.setDefaultRowspan(1);
 table.setWidth(100);
 table.setWidths(widths);

 --- (deleted) headers are dropped in here --

 -- now to output data into the form proper
 Cell dataCell;
 Iterator offenseIt = offenseList.iterator();
 while (offenseIt.hasNext())
   {
   OffenseRecord offenseRecord = (OffenseRecord)offenseIt.next();

   // this cell prints fine...it contains data
   dataCell = new Cell(new Phrase(offenseRecord.getCode() + .  +
 offenseRecord.getDescription(),dataFont));
   dataCell.setHorizontalAlignment(Element.ALIGN_LEFT);
   dataCell.setBorder(Rectangle.TOP | Rectangle.BOTTOM | Rectangle.LEFT |
 Rectangle.RIGHT);
   dataCell.setColspan(1);
   table.addCell(dataCell);

   Iterator raceIt = raceList.iterator();
   while (raceIt.hasNext())
 {
 RaceRecord raceRecord = (RaceRecord)raceIt.next();

 String countString =  ;  // changed to SPACE and TAB and same behavior
 like it is being trimmed
 int total =
 schoolData.getSuspensions(raceRecord.getID(),offenseRecord.getID());
 if (total  0)
countString =  + total;
 dataCell = new Cell(new Phrase(countString,dataFont));
 dataCell = new Cell(new Phrase(countString,dataFont));
 dataCell.setHorizontalAlignment(Element.ALIGN_RIGHT);
 dataCell.setColspan(1);

 -- added these two lines to see if the would do the trick
 dataCell.setBorder(Rectangle.TOP | Rectangle.BOTTOM | Rectangle.LEFT |
 Rectangle.RIGHT);
 dataCell.setBorderWidth(1);

 -- only time a cell appears with borders is if there is number in it...
 -- otherwise there is total blank space!!!

 table.addCell(dataCell);
 }

 --- End sample code -



 ---
 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 reading now.
 http://productguide.itmanagersjournal.com/
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions





---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Asian Language Jars

2004-12-02 Thread Steve Appling
I was talking about making links to them on the 
http://www.lowagie.com/iText/download.html page.
I'm wasn't sure that anyone would know to go to  
http://itext.sourceforge.net/downloads/ to get
them.  It would be nice for the site to supply links to the different jars you 
might need and
explain 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]:

  That's up to Bruno but the main site already has iTextAsian.jar. The other
  jar is very specialized and will always need some guidance.

 What jars are you talking about?
 I thought I had them both on the downloadsite:
 http://itext.sourceforge.net/downloads/

 iTextAsian.jar  03-Oct-2003 07:48   322k
 iTextAsianCmaps.jar 03-Oct-2003 07:50   1.6M

 br,
 Bruno





---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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, December 02, 2004 8:13 AM
Subject: Re: [iText-questions] Asian Language Jars


 Steve Appling wrote:

 I was talking about making links to them on the 
 http://www.lowagie.com/iText/download.html page.
 I'm wasn't sure that anyone would know to go to  
 http://itext.sourceforge.net/downloads/ to get
 them.  It would be nice for the site to supply links to the different jars 
 you might need and
 explain what they are and why you might need them.
 
 
 I just updated my FAQ: http://www.lowagie.com/iText/faq.html#asianfonts
 If I put links on the downloadpage, wouldn't that be overkill for most
 of the users?
 br,
 Bruno


 ---
 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 reading now.
 http://productguide.itmanagersjournal.com/
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions





---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 page


PdfWriter.setStrictImageSequence(true)



From: [EMAIL PROTECTED] on behalf of [EMAIL PROTECTED]
Sent: Thu 02-Dec-04 14:05
To: [EMAIL PROTECTED]
Subject: [iText-questions] Image moves to next page



Paulo,
I create a pdf that consist of: text | an image | text. The image does not fit 
on the current page
after the initial text was added. What happens now is that the text that should 
follow the image is
then printed on the current page and the image is moved to the next page. Is 
there a way to avoid
this by behaviour and leave a blank space on the current page and then move the 
image to the next
page followed by the rest of the text.

I know this question was posted before but I do not understood the suggested 
solution then.

Thanks a lot!
Giovanni





---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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 itextpdf.sf.net (they are different sizes).  There 
is also an
additional iTextAsianCmaps.jar at paulo's site that isn't mentioned in the 
tutorial or available at
the main site.




---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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, December 01, 2004 10:40 AM
Subject: RE: [iText-questions] Asian Language Jars






From: [EMAIL PROTECTED] on behalf of Steve Appling
Sent: Wed 01-Dec-04 15:16
To: [EMAIL PROTECTED]
Subject: [iText-questions] Asian Language Jars



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 itextpdf.sf.net (they are different sizes).  There 
is also an

It's the same with different compression.


additional iTextAsianCmaps.jar at paulo's site that isn't mentioned in the 
tutorial or available at
the main site.


Those are the cmaps for direct CID addressing, needed for accessing the HK and 
Taiwan extensions.



---
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 reading now.
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions






---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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 few
changes.  In particular, colors are represented with three attributes for each 
type of color - i.e.:
cell red=128 green=100 blue=128 bgred=30 bggreen=40 bgblue=50 .../

Since rectangles now support different color borders on each side, I really 
didn't want to add 12
more attributes.  I would prefer to handle this with a single attribute for 
each side color using an
HTML like syntax: cell border-left-color=#FF ... /  I think it would be 
nice to change all
the other uses of color attributes to a similar syntax.  The somewhat dated 
itext.dtd seemed to
indicate this approach was at least considered once since it specifies 
bordercolor and
backgroundcolor attributes that don't seem to be used now.

Any thoughts?




---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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
search.  This also helps a user know that it is not an error that the table is 
empty.

- Original Message - 
From: Cary Sweet [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 11:35 AM
Subject: [iText-questions] Re: ColumnText bug?


 Paulo Soares psoares at consiste.pt writes:

 
 
  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.
 

 On a report that has a Title, header line and content, I would expect the 
 title
 and header line to be displayed even though there is no content.  Otherwise,
 the report shows just the Title, which makes the page conspicuously empty.  
 The
 reports that I have seen from other report writers ALWAYS display the table
 header even if there is no content.  In this respect, the header line IS
 concidered content in its own right.

 Cary



 ---
 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 reading now.
 http://productguide.itmanagersjournal.com/
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions





---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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
duplicated code from the copy constructor and shallowCopy out into a helper 
function so there is
only one place to add new properties.  I've attached the fixed PdfPTable.java - 
changed from
itext-paulo-142.


PdfPTable.java
Description: java/


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 - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 1:01 AM
Subject: [iText-questions] Query about classpath


Which .jar file should I put in the CLASSPATH.

The zipped jar file iText.jar.zip does not have any .jar files when
unzipped.




Thanks and Regards

Aditya Nirmal Dasgupta

Associate-Consultant

ITSDe-solutions

PrimeSourcing(tm) The Global IT Services business from i-flex Add
Value, Reduce Risk

www.iflexsolutions.com/services/services.asp
blocked::http://www.iflexsolutions.com/services/services.asp

Tel.Office: +91-80-5759-6633

e-mail: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]






DISCLAIMER:
This message contains privileged and confidential information and is intended 
only for the
individual named.If you are not the intended recipient you should not
disseminate,distribute,store,print, copy or deliver this message.Please notify 
the sender
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your
system.E-mail transmission cannot be guaranteed to be secure or error-free as 
information could be
intercepted,corrupted,lost,destroyed,arrive late or incomplete or contain 
viruses.The sender
therefore does not accept liability for any errors or omissions in the contents 
of this message
which arise as a result of e-mail transmission. If verification is required 
please request a
hard-copy version.




---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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

2004-11-23 Thread Steve Appling
I still think that dropping rows silently like this only causes problems.  I 
can't imagine an
application where I would want that behavior.  Would you consider changing the 
default for splitRows
to be true (or maybe throw a DocumentException if the content wouldn't fit)?

- Original Message - 
From: Paulo Soares [EMAIL PROTECTED]
To: Sudheendra Singh [EMAIL PROTECTED]
Cc: ITEXT [EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 5:07 AM
Subject: RE: [iText-questions] Issue with Image into PDF


The image is too tall and the row is dropped. Use:

pdfPTable.setSplitRows(true);

You must use the latest iText version.




From: Sudheendra Singh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 12:06 AM
To: Paulo Soares
Cc: ITEXT
Subject: RE: [iText-questions] Issue with Image into PDF



Hi Paulo,
  Please find attached the sample class file and the jpg I am
using. I get the following error.

Exception in thread main ExceptionConverter:
java.io.IOException: The document has no pages
at com.lowagie.text.pdf.PdfPages.writePageTree(Unknown
Source)
at com.lowagie.text.pdf.PdfWriter.close(Unknown Source)
at com.lowagie.text.pdf.PdfDocument.close(Unknown
Source)
at com.lowagie.text.Document.close(Unknown Source)
at PdfSample.main(PdfSample.java:52)


Regards,
Sudheendra.N.Singh
Caritor Inc., CA
Cell : 415-760-1805
Work : 415-243-6903
Home : 510-675-0630

Pick battles big enough to matter not small enough to win.


-Paulo Soares [EMAIL PROTECTED] wrote: -

To: Sudheendra Singh [EMAIL PROTECTED]
From: Paulo Soares [EMAIL PROTECTED]
Date: 11/22/2004 09:34AM
cc: ITEXT [EMAIL PROTECTED]
Subject: RE: [iText-questions] Issue with Image into PDF


We are not getting anywhere this way. Post the image and a small
test program so that we can reproduce the problem.




From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Sudheendra Singh
Sent: Monday, November 22, 2004 5:17 PM
To: Paulo Soares
Cc: ITEXT
Subject: Re: [iText-questions] Issue with Image into PDF



Hi Paulo,
   This worked with horizontal images (width  height)
but when I tried vertical images, blank was displayed.

Regards,
Sudheendra.N.Singh
Caritor Inc., CA
Cell : 415-760-1805
Work : 415-243-6903
Home : 510-675-0630

Pick battles big enough to matter not small enough to
win.


-Paulo Soares [EMAIL PROTECTED] wrote: -

To: Sudheendra Singh [EMAIL PROTECTED]
From: Paulo Soares [EMAIL PROTECTED]
Date: 11/20/2004 05:00AM
cc: ITEXT [EMAIL PROTECTED]
Subject: Re: [iText-questions] Issue with Image into PDF

PdfPCell pdfPCell = new PdfPCell(img, true);

Will fit 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 with Image into PDF


Hi,
The formula does not work as the cell height and width
is always 0.
Here is what I am doing
Image img = Image.getInstance(xyz.jpg);

PdfPCell pdfPCell = new PdfPCell(img);

img.scalePercent(24);

This works for any value 24 and below. Values 25 and
above give a blank
cell. This happens for images whose width is greater
than height.

In case of images whose height is greater than width, it
can scale to 100%.

Any idea why it isupto 24% only.



Regards,
Sudheendra.N.Singh
Caritor Inc., CA
Cell : 415-760-1805
Work : 415-243-6903
Home : 510-675-0630

Pick battles big enough to matter not small enough to
win.



-Bart Allen [EMAIL PROTECTED] wrote: -

To: Sudheendra Singh [EMAIL PROTECTED]
From: Bart Allen [EMAIL PROTECTED]
Date: 11/19/2004 06:49AM
cc: Paulo Soares [EMAIL PROTECTED], ITEXT
[EMAIL PROTECTED]
Subject: RE: [iText-questions] Issue with Image into PDF

I use this to make it so the image always fits properly,
regardless of
height width ratio.

if((cellHeight/imageHeight)  (cellWidth/imageWidth)){
   adjHeight = cellHeight;
adjWidth = imageWidth*(cellHeight/imageHeight);
}
else{
   adjHeight = imageHeight*(cellWidth/imageWidth);
adjWidth = cellWidth;
}
image.scaleAbsolute(adjWidth, adjHeight);


On Thu, 2004-11-18 at 15:31, Sudheendra Singh wrote:
I am using PDFPCell and the issue seems to have
resolved. But for an image
whose width is greater than height, I need to use the
method
Image.scalePercent with a maximum value of 24 for the
image to be displayed
in the PDFPCell of the PDFPTable.

If I give any value above 24 (including 25), the image
is not displaed on
the PDF.

Is this value of 24 a agreed upon set value or is it a
limitation ?

Regards,
Sudheendra.N.Singh
Caritor Inc., CA
Cell : 415-760-1805
Work : 415-243-6903
Home : 510-675-0630

Pick battles big enough to matter not small enough to
win.


-Paulo Soares [EMAIL PROTECTED] wrote: -

To: Sudheendra Singh [EMAIL PROTECTED],
[EMAIL PROTECTED]
From: Paulo Soares

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) or
when I just try using command line CVS directly with
cvs -z3 -d:pserver:[EMAIL PROTECTED]:/cvsroot/itext export -D now www.  The 
error is
cvs [export aborted]: unrecognized auth response from cvs.sourceforge.net: M
PserverBackend::PserverBackend() Connect (Connection refused).  I think this 
is a problem at
sourceforge - perhaps Bruno can look into it.

I have gotten the content of the www module using a non anonymous login and it 
seems to build
correctly.

- Original Message - 
From: Wagle, Shriniwas [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 12:10 PM
Subject: [iText-questions] Error building iText Site HTML using Ant


I was following the steps provided here:
http://www.lowagie.com/iText/ant.html

Under the section Creating HTML, it says I can build the pages for the
site using the target ant -f site.xml lowagie.com.  This failed with
the following error:
C:\itext-dev\www\antant -f site.xml lowagie.com
Buildfile: site.xml

lowagie.com:
[mkdir] Created dir: C:\itext-dev\build\release\lowagie

BUILD FAILED
C:\itext-dev\www\ant\site.xml:30: Warning: Could not find file
C:\itext-dev\www\xml\lowagie\style.css to copy.

Total time: 0 seconds


Looking at site.xml, not sure how/when the www\xml\... directory and
contents would be created.  It didn't happen as part of the 'Downloading
iText' section.

I was able to successfully 'compile and jar' iText.  Did I miss some
step or some step is not documented to create the site pages?

Thanks





---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 
anonymous CVS, ViewCVS
and tarballs for these projects to be unavailable. We are currently working on 
this issue and do not
have an ETA for resolution.




---
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 reading now. 
http://productguide.itmanagersjournal.com/
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 line as Table, that is, it can be
 compiled without all the xml baggage.


My intent is to only make changes to the com.lowagie.text.xml package.  I 
shouldn't make any changes
to files in com.lowagie.text.pdf if that is what you mean.




---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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, do you have provisions for accepting changes without posting them to the 
stable version?
Is there some other place I should put this?  Is anyone else interested in this 
(or willing to
help)?




---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] (no subject)

2004-11-18 Thread Steve Appling
Since you have a release, shouldn't you release (with the source) the scripts 
used to build that
release?  I would think that changes to the scripts after the release should be 
in the next release?
Is there a reason that build.xml isn't in the source zip?

- Original Message - 
From: 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)
  anywhere on the site, in the source downloads, or in browsing CVS.  Where 
  are
 build.xml and friends?

 They are still changing almost every day:
 http://cvs.sourceforge.net/viewcvs.py/itext/www/ant/
 I'll update this page soon: http://www.lowagie.com/iText/ant.html
 br,
 Bruno



 ---
 This SF.Net email is sponsored by: InterSystems CACHE
 FREE OODBMS DOWNLOAD - A multidimensional database that combines
 robust object and relational technologies, making it a perfect match
 for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions





---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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: [EMAIL PROTECTED]
Sent: Thursday, November 18, 2004 4:31 PM
Subject: RE: [iText-questions] Issue with Image into PDF


I am using PDFPCell and the issue seems to have resolved. But for an image 
whose width is greater
than height, I need to use the method Image.scalePercent with a maximum value 
of 24 for the image to
be displayed in the PDFPCell of the PDFPTable.

If I give any value above 24 (including 25), the image is not displaed on the 
PDF.

Is this value of 24 a agreed upon set value or is it a limitation ?


Regards,
Sudheendra.N.Singh
Caritor Inc., CA
Cell : 415-760-1805
Work : 415-243-6903
Home : 510-675-0630

Pick battles big enough to matter not small enough to win.



-Paulo Soares [EMAIL PROTECTED] wrote: -

To: Sudheendra Singh [EMAIL PROTECTED], 
[EMAIL PROTECTED]
From: Paulo Soares [EMAIL PROTECTED]
Date: 11/18/2004 02:49AM
Subject: RE: [iText-questions] Issue with Image into PDF


That's a Table bug. Use PdfPTable.



--
  From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sudheendra Singh
  Sent: Wednesday, November 17, 2004 11:16 PM
  To: [EMAIL PROTECTED]
  Subject: [iText-questions] Issue with Image into PDF


  Hi All,
 I am working on a module where we insert images into a PDF. It was working 
fine but with one
particular image (width-732 and height-1714) is going into an infinite loop. I 
am using Table and
Cell classes to achieve this.
  Is there any restriction on the dimensions of the image that can be rendered?

  Regards,
  Sudheendra.N.Singh
  Caritor Inc., CA
  Cell : 415-760-1805
  Work : 415-243-6903
  Home : 510-675-0630

  Pick battles big enough to matter not small enough to win.

  --- This SF.Net email is 
sponsored by:
InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that 
combines robust object
and relational technologies, making it a perfect match for Java, C++,COM, XML, 
ODBC and JDBC.
www.intersystems.com/match8 ___ 
iText-questions mailing
list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
--- This SF.Net email is 
sponsored by:
InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that 
combines robust object
and relational technologies, making it a perfect match for Java, C++,COM, XML, 
ODBC and JDBC.
www.intersystems.com/match8 ___ 
iText-questions mailing
list [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions




---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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:
   if (ck.isImage())
   ascender = Math.max(ascender, ck.getImage().scaledHeight() + 
ck.getImageOffsetY());

Since images contained in chunks are rendered with the bottom of the image on 
the baseline, I think
the scaledHeight should serve as the Ascender height (if there are no offsets).

The current bug will cause a problem in a PdfPCell if the cell has 
setUseAscender(true) and only an
image in the cell.  Currently the image will not display at all (cell ends up 
with 0 height).

Paulo, could you please add this to your next version.
Bruno, I don't know how often you make minor bug fixes like this to the main 
release - I wouldn't
want someone else to waste a day like I just did trying to track down why my 
images aren't showing
up :(




---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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 fit on one page.  They 
are being dropped
silently as documented, but I'm not sure that is appropriate.  It seems more 
appropriate to throw an
exception if the contents can't be renedered.  I've been running tests on this 
application for a
while without noticing the data missing from the middle of the report.

To make my application actually work, however, I would like to be able to 
handle inner tables that
are larger than a page.  Paulo, can you comment on what infinite loop is being 
avoided by dropping
these rows?  I am willing to work on adding support for this, but would 
appreciate any pointers on
where to start or problems that you anticipate with supporting this.  This is 
one area where
PdfTable seems to actually work better than PdfPTable, but I would much rather 
help improve
PdfPTable that fix all the other bugs in PDfTable.




---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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

2004-11-16 Thread Steve Appling
Thanks, Paulo - that's exactly what I needed - should have read a little more 
in the javadoc :)

Not to excuse my lack of reading the rest of the file, but it might be helpful 
to have a little more
explanation about this behaviour in the class level javadoc comment.
Also, there might be some 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: [iText-questions] PdfPTable Cells bigger than a page


 (Someone that reads the javadocs, what a novelty.)
 That's old news. It's the default behavior but there's setSplitRows() and
 even setSpliLate() to choose when to split.

 Best Regards,
 Paulo Soares

 - Original Message - 
 From: Steve Appling [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, November 16, 2004 21:42
 Subject: [iText-questions] PdfPTable Cells bigger than a page


  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 fit on one page.
 They are being dropped
  silently as documented, but I'm not sure that is appropriate.  It seems
 more appropriate to throw an
  exception if the contents can't be renedered.  I've been running tests on
 this application for a
  while without noticing the data missing from the middle of the report.
 
  To make my application actually work, however, I would like to be able to
 handle inner tables that
  are larger than a page.  Paulo, can you comment on what infinite loop is
 being avoided by dropping
  these rows?  I am willing to work on adding support for this, but would
 appreciate any pointers on
  where to start or problems that you anticipate with supporting this.  This
 is one area where
  PdfTable seems to actually work better than PdfPTable, but I would much
 rather help improve
  PdfPTable that fix all the other bugs in PDfTable.
 
 
 
 
  ---
  This SF.Net email is sponsored by: InterSystems CACHE
  FREE OODBMS DOWNLOAD - A multidimensional database that combines
  robust object and relational technologies, making it a perfect match
  for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
  ___
  iText-questions mailing list
  [EMAIL PROTECTED]
  https://lists.sourceforge.net/lists/listinfo/itext-questions





---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 each side (including 0 width).

- Original Message - 
From: Huelsemann, Gerlinde [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 15, 2004 5:17 AM
Subject: [iText-questions] Table cell with different border


 I'm new to i-text.
 Do you have an example for a table with following layout.

 +---+-+
 | 1.1   | 1.2 |
 | 2.1   | |
 +---+---+ |
 | 3.1   | 3.2   | |
 | 4.1   | 4.2   | |
 +-+-+-+-+-+
 | 5.1 | 5.2 | 5.3 | 5.4 | 5.5 |
 +-+-+-+-+-+


 I have problems with border in cells. Cell 1.1 has a border on top, but no
 border down. Cell 2.1 has no top-border, but a down-border. How can I
 realize this table?



 ---
 This SF.Net email is sponsored by: InterSystems CACHE
 FREE OODBMS DOWNLOAD - A multidimensional database that combines
 robust object and relational technologies, making it a perfect match
 for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions





---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 Management Consultants P Ltd., [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 11, 2004 5:50 AM
Subject: [iText-questions] CLARIFICATIONS REGARDING THE HYPHENATION IN ITEXT


 Respected sir/madam,

 Here is my question.

 I want to display the text from the file.txt like the paragraph in the 
 newspaper(i.e in the
rectangular shape) can you please tell me which function i should use and also 
send me the example
code and sample pdf report created using this code.The text in (file.txt) is 
continuously written.

 For your example;

 file.txt contains:
 this is the clarifications regarding the itext code.Iam vadivelan from 
 chennai.

 I want these string to be put in pdf file as

 this is the clarifi-
 cations regardin
 g the itext code.
 Iam vadivelan fr-
 om chennai.


 Awaiting for your example code and sample pdf report.



 Thanks,
 Vadivelan
 ( [EMAIL PROTECTED])






---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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 SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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: Wednesday, October 27, 2004 4:22 AM
Subject: [iText-questions] leading and alignment in PdfPCell


 Hello,

 I've a PdfPTable with a PdfPCell (with absolute height, no padding)
 inside. In the cell there is a Phrase. The Phrase is aligned with
 PdfPCell.setVerticalAlignment(). Everything is all right as long as there
 isn't a leading.
 After calling the function PdfPCell.setLeading(x, 0) with alignment
 middle or top the text isn't in the middle/top but there is an additional
 space above the text.
 Why is this so and how is the space calculated? My goal is to place
 the text with leading in the middle and the first line directly on top
 respectively.
 ...




---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 for several cases of nested tables.  PdfPTable is 
more reliable.

- Original Message - 
From: Dean Hoover [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 26, 2004 5:55 PM
Subject: [iText-questions] newbie can't do vertical alignment


 Hi, newbie here trying to create a simple table with
 vertical alignment in the cells. The vertical alignment
 appears to be doing nothing. Do you see anything wrong
 here?





---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588alloc_id=12065op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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: itext-questions [EMAIL PROTECTED]
Sent: Thursday, October 21, 2004 9:34 AM
Subject: [iText-questions] Problems with MultiColumnText


 Hi Steve, Hi Paulo,

 I've tried to replace the usage of ColumnText by MultiColumnText, which
 behaves like my attempt of using the ColumnText feature. The only
 problem I've encountered so far, is that the MultiColumnText is rendered
 in the background, so I'm not able to use background images in
 combination with MultiColumnText. Is this really necessary to use
 getDirectContentUnder? If not, please change it to:

 case Element.MULTI_COLUMN_TEXT: {
 ensureNewLine();
 flushLines();
 MultiColumnText multiText = (MultiColumnText)
 element;
 float height =
 multiText.write(writer.getDirectContent(), this, indentTop() -
 currentHeight);
 currentHeight += height;
 text.moveText(0, -1f* height);
 pageEmpty = false;
 break;
 }

 Best regards,
 Christian



 ---
 This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
 Use IT products in your business? Tell us what you think of them. Give us
 Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
 http://productguide.itmanagersjournal.com/guidepromo.tmpl
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 total of the largest ascender and descender on the line.

In this case, with no padding, the top of the tallest letter will exactly touch the 
inside edge of
the top border and the bottom of the lowest possible letter will touch the inside edge 
of the bottom
border.

I like using these settings with some padding because vertical alignment will work 
better than just
using leading.

BTW, these are only available in the itext-paulo-139 version.
- Original Message - 
From: Mayank Mishra [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 19, 2004 3:28 PM
Subject: [iText-questions] default row height


 Assuming a row with just one cell containing one word of text ,what will be
 the height of the row by default in terms of other variables?

 eg:row-height = font-sz + padding-top + padding-bottom + 





---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 needed to total 100%, but 
individual
cell widths could vary on different rows.  We defined a large number of narrow columns 
(like 100
columns) and used column-span to set the widths (span 34 columns for 34% width).  This 
works but is
very inefficient.  We now just break into multiple concatenated tables when we need 
differing cell
widths.

Good luck
- Original Message - 
From: Mayank Mishra [EMAIL PROTECTED]
To: Paulo Soares [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, October 18, 2004 1:45 PM
Subject: Re: [iText-questions] Re: cellWidths and RowHeights


 How do I create a Table structure like the one in attached pdf file
 from iText?I am using PdfPXXX components but I dont know how to change
 cell sizes for each row .

 Thanks
 Mayank






---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 text longer than one line.  Unfortunately no one seems to claim ownership of the 
Table class
now - it seems to be an orphan.  You are probably better off using PdfPTable (but you 
will have a
little harder time drawing your borders around the whole table - you'll have to use a
PdfPTableEvent).

I was able to reproduce your problem with your example and in one of my test drivers.  
I am not the
original author of this class, but I will look into supplying a fix when I have some 
time - perhaps
this weekend.

Good luck!
- Original Message - 
From: h4 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 14, 2004 7:34 AM
Subject: [iText-questions] table PdfWriter setSpacing(1) then border on last page 
drawn above last
line!


 Hello,

 I would like to submit following experience:

 If i run this program with setSpacing(0), a tableborder is drawn
 correctly on all pages.

 If i run this program with setSpacing(1) , the tableborder on the last
 page is drawn above the last line.

 This problem also occurs when using itext-1.02b.jar.

 Thanks for this product.
 Thanks for the time anyone would spend on this.

 Herman Vierendeels
 Ternat
 Belgium




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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]
Sent: Thursday, October 14, 2004 4:09 AM
Subject: Re: [iText-questions] html2pdf OutOfMemoryError Help me :((


 EnLarge table.java in
 the import import com.lowagie.text.pdf.MultiColumnText; cannot be resolved
 i'm source code attached file.

 import com.lowagie.text.*;

 import com.lowagie.text.Font;

 import com.lowagie.text.pdf.PdfWriter;

 import com.lowagie.text.pdf.MultiColumnText;

 import com.lowagie.text.pdf.PdfPTable;

 import com.lowagie.text.pdf.PdfPCell;

 import java.io.OutputStream;

 import java.io.FileOutputStream;

 import java.io.FileNotFoundException;

 import java.awt.*;

 .

 .

 .





 Steve Appling [EMAIL PROTECTED] wrote: See the ExampleLargeTable.java example in
examples-139.zip
 at http://itextpdf.sf.net.

 - Original Message - 
 From: Ali ÇINAR
 To:
 Sent: Wednesday, October 13, 2004 12:04 PM
 Subject: [iText-questions] html2pdf OutOfMemoryError Help me :((


  Hi my application program is itext;
  the large table error page.For example 6000 sheets pdf page big report.
  Not view page.Only small page opens.Big pdf why view?
  Help me.
  thanks.
 
 
 
  JspFactoryImpl: Exception initializing page context: java.lang.OutOfMemoryError
 
 
  -
  Do you Yahoo!?
  Yahoo! Mail Address AutoComplete - You start. We finish.




 ---
 This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
 Use IT products in your business? Tell us what you think of them. Give us
 Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
 http://productguide.itmanagersjournal.com/guidepromo.tmpl
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions





 -
 Do you Yahoo!?
 vote.yahoo.com - Register online to vote today!




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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
location of every row.  You can draw a dashed line by hand from inside the handler.  I 
have used
this technique to draw a border around my entire table (since PdfPTable doesn't have 
borders of its
own, only the cells do).

Good luck.
- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 13, 2004 1:20 PM
Subject: [iText-questions] TABLE BORDERS


 I would like to set a bottom border for a row on a table with a dashed
 line.  How can I go about doing this?

 Is there a way to set the border for the row or should I do it for each
 cell.  again I would like to have the row underlined with a dashed line.

 Thank you

 Paula




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 application program is itext;
 the large table error page.For example 6000 sheets pdf page big report.
 Not view page.Only small page opens.Big pdf why view?
 Help me.
 thanks.



 JspFactoryImpl: Exception initializing page context: java.lang.OutOfMemoryError


 -
 Do you Yahoo!?
 Yahoo! Mail Address AutoComplete - You start. We finish.




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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

2004-10-12 Thread Steve Appling
If you need multiple paragraphs in a single cell with different alignments, then I 
think you will
have to use a nested inner table and set the alignment on the individual cells in the 
inner table.
Also, be aware that there are known problems with nested tables inside Table.  You 
would probably 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 within a Cell






 Steve,

   Thanks for ur reply. This code works.

   I have the another requirement where i need to add the following rich
 text to the cell.

   String htmlText = P align=leftLeft aligment/PP
 align=centercenter alignment/PP align=rightRight alignment/P;

   I am using the SAXiTextHandler.java as the handler to parse the
 richtext.  I defined a class TextElementArrayWriter which implements the
 DocListener and using this object during creation of the handler object.
 Here i am attaching the TextElementArrayWriter.java class

   The htmlText String contains 3 paragraphs with different alignments.
 So please let me know how to keep the alignment for that cell with many
 paragraphs.





---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 constructor for Cell(Paragraph), but if you use the default 
constructor for
Cell or PdfPCell, it is a little messier.
You would need to probably keep another alignment state that works like ALIGN_LEFT, 
but indicates
that current alignment had been set explicitly.  Then Cell.addElement or 
PdfPCell.addElement would
have to override the default alignment if it hadn't been set explicitly yet.  Seems 
messy.

Paulo, are you interested in supporting this?  I'll add it if you think it should work 
this way.

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 11, 2004 1:07 PM
Subject: [iText-questions] Alignment of text in a Paragraph within a Cell






 Hi,

   I am trying to align the text in a paragraph with a cell using the
 following code. It works fine in RTF. But it is not working in PDF.

   In PDF it is displaying all the text as Left aligned.

   Please let me know the fix for this.

 Document document = new Document(PageSize.A4);
 PdfWriter.getInstance(document, new
 FileOutputStream(c:\\alogs\\Orientation.pdf));
 document.open();
 Paragraph p = new Paragraph(Left Alignment);
 p.setAlignment(left);
 Table aTable = new Table(2,2);
 aTable.addCell(new Cell(p));
 p = new Paragraph(Right Alignment);
 p.setAlignment(right);
 aTable.addCell(new Cell(p));
 p = new Paragraph(Center Alignment);
 p.setAlignment(center);
 aTable.addCell(new Cell(p));
 aTable.addCell(new Cell(new Phrase(col22: ,
 IReportConstants.FONT_TABLE_COLUMN)));
 document.add(aTable);
 document.close();

 Thanks
 Srinivasulu Vempuluru




 ---
 This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
 Use IT products in your business? Tell us what you think of them. Give us
 Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
 http://productguide.itmanagersjournal.com/guidepromo.tmpl
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions





---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 header, you would probably be better off just 
setting the
bottom border on the header cells.

Good luck.
- Original Message - 
From: Kim, Glen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 08, 2004 10:13 AM
Subject: [iText-questions] Adding Horizontal Line to Table


 Apologies if this was asked and answered before.

 I am trying to add a horizonal line to a table as a delimiter for my table
 header.

 Here is the code snippet that I used but is not working for me:

 Graphic grx = new Graphic();
  grx.setHorizontalLine(100,100);
  Cell lineCell = new Cell(grx);
  lineCell.setColspan(16);
  lineCell.setBorderWidth(15);
 aTable.addCell(lineCell,new Point(3,0));
 aTable.endHeaders();

 Any help or alternative suggestions would be greatly appreciated.






---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 afterwards.  In 
the onEndPage
method of the event handler, I check the flag and do some special work (drawing 
borders) if it is
set.

The technique for handling Page X of Y is documented in the examples (see 
Chap1004.java).

Good luck.




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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 PdfTemplate (generating a form XObject), but I'm not sure that the examples I've 
seen can handle a
template of variable width.  The examples I have seen are of the form Page X of Y 
where Y is the
template part and it's length really doesn't matter.  I don't know how to place my 
text down such
that the word stuff would adjust position to handle the width of the VARIABLE part.

It looked like perhaps a Free Text Annotation could do this from the discussion of 
Variable Text
on page 617 of the PDF Reference (version 1.5), but I have not figured out how to make 
use of this
yet.  I saw PdfAnnotation.createFreeText, but am not sure how to use it to form 
Variable Text as
discussed in the reference.

Does anyone have an example of something like this?  Any help would be appreciated.




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 document in jsp. It is a good utility by which 
pdf file is
created.
I need one help in that i want a page brek in between the page. Can it be possible 
in this
utility then please tell me that, or how should i achive that.

Thanks  waiting for reply.

Pankaj S. Bharambe




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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 throw
away data, that should always indicate that the user of the API made a programming 
mistake.
Regardless of how well it is documented in the javadoc, I think it will help people 
catch their
mistakes and avoid emails with more idiotic questions.

- Original Message - 
From: Paulo Soares [EMAIL PROTECTED]
To: Christian Lauer [EMAIL PROTECTED]
Cc: iText Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 30, 2004 7:01 PM
Subject: Re: [iText-questions] RE: ColumnText  PdfPCell patch


 An exception is too radical. The behavior is described in the javadocs and
 that should be enough. Those that don't read the javadocs will always find
 some excuse to post this or other idiotic question.

 Best Regards,
 Paulo Soares




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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 found it awkward to use this technique on tables with headers because of my 
design.
After the headers were initially added, the information to re-create them was lost.  I 
added the
following method to PdfPTable which I think may be useful to others.

/**
 * Creates a copy of this table for use in concatenating
 * multiple tables together to simulate one large table.
 * The new table will copy all parameters and headers from
 * the old table, but no other rows.  The new table will
 * have [EMAIL PROTECTED] #setSkipFirstHeader setSkipFirstHeader(true)}.
 * @return the new table
 */
public PdfPTable generateFollowingTable() {
PdfPTable newTable = PdfPTable.shallowCopy(this);
newTable.totalHeight = 0;
for (int i = 0; i  headerRows; i++) {
if (size()  i) {
PdfPRow headerRow = getRow(i);
for (int j = 0; j  headerRow.cells.length; j++) {
newTable.addCell(headerRow.cells[j]);
}
}
}
newTable.setSkipFirstHeader(true);
return newTable;
}

This allows you to generate large tables in the following manner:
PdfPTable table = new PdfPTable(2);
for (int row=1; row = 2000; row++)
{
if (row % FRAGMENT_SIZE == FRAGMENT_SIZE-1 )
{
document.add(table);
table = table.generateFollowingTable();
}
makeNewRow(table, row, font);
}
document.add(table);

I have attached a simple example generating a large table using fragments in this 
manner.  If you
decide to add the generateFollowingText method to PdfPTable, then you may want to use 
this in the
set of examples.  I think this method of handling large tables should replace the 
example described
in Chap0513.



ExampleLargeTable.java
Description: java/


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 the headers and
reuse the same table?

Best Regards,
Paulo Soares

Good idea - here's a very simple replacement and an example that uses it to handle 
large tables.

/**
 * Removes all of the rows except headers
 */
public void deleteBodyRows() {
// walk backwards - more efficient for ArrayList.remove
for (int i = rows.size() -1; i = headerRows; i--) {
deleteRow(i);
}
}



ExampleLargeTable.java
Description: java/


Re: [iText-questions] large PdfPTables and fitsPage

2004-09-29 Thread Steve Appling
Thanks for the suggestions, but after looking into it more, I think I like Paulo's 
idea.  I didn't
originally understand what setSkipFirstHeader was doing.  I'm going to try to make an 
example to
exercise this later this afternoon.  I want to test this with borders, it seems like 
you will get a
double border width when the additional tables are added (unless PdfPTable takes this 
into account,
which it may).  If this technique works for me, I'll post the example.  I think that 
people should
be encouraged to use this instead of the Chap0513 way.  I always thought that pulling 
out the last
row and re-adding it was a little goofy.
- Original Message - 
From: Wellman, Daniel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, September 29, 2004 9:26 AM
Subject: RE: [iText-questions] large PdfPTables and fitsPage



Hi Steve,

I'm not entirely sure what's wrong with PdfDocument.fitsPage(), but from
what the source looks like, it seems that you could get the existing
height of a table after adding a row and do the same kind of math
calculations to see if your table total height (plus margins) has
wrapped beyond the total height of your page.

Christian, can you comment on this bug fix that you made?  This might
clear up the issue.

From what I could see, PdfDocument.fitsPage() also resets the total
width of the PdfPTable which is passed to the method - I wasn't sure why
this was happening.  Maybe that's the problem?

I also learned this technique from the website tutorial Chap0513.java.
One problem with this example is that it doesn't work if you are drawing
table data that is not read from inside a for() loop (for example, a
row-spanning label dividing sections of your PdfPTable).  If you're in a
for loop, Chap0513's example works great because you can just delete the
last row, then roll back the loop counter to re-draw the row on a new
page.  But if you're not in a for loop, and you've drawn one too many
rows, you can't get back the row from the table and re-add it.

Now I use PdfPTable.writeSelectedRows() to control which rows in my
table to flush to a page.  If the last row I wrote actually wrapped to
the next page, I can write the first n rows of the table to the page,
make a new page, write the overflow row to the new page, then create a
new table for writing.  Doing this means you need to keep track of the
height of the page manually, since your new page now has table data from
the last page as well as your new table as well.

You may also want to see these mailing list messages:
http://sourceforge.net/mailarchive/message.php?msg_id=9337203
http://sourceforge.net/mailarchive/message.php?msg_id=9597664



Daniel Wellman

-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 table?
I don't see how it is an
alternative to fitsPage.

- Original Message -
From: Paulo Soares [EMAIL PROTECTED]
To: Steve Appling [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Tuesday, September 28, 2004 5:46 PM
Subject: RE: [iText-questions] large PdfPTables and fitsPage


I still don't care but Christian Lauer fixed fitsPage and it will be
available in the next release.
Another option is to use skipFirstHeader.

Best Regards,
Paulo Soares






-

The message contains confidential and/or legally privileged

information and is intended for use by the indicated addressee.



If you are not the intended addressee: (a) any disclosure,

reproduction, distribution or action you take because of it is

strictly prohibited; (b) please return the complete message to the

sender; and (c) this message is not a solicitation for purchase or

sale or an agreement of any kind whatsoever that binds the sender.

-


---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https

Re: [iText-questions] large PdfPTables and fitsPage

2004-09-29 Thread Steve Appling
This technique is generally working great and is much cleaner than what I originally 
envisioned.  I
am, however, having one problem.

I am using the PdfPTableEvent handler to draw a border around the entire table (since 
PdfPTable
doesn't derive from Rectangle like Table does).  This works fine with a single large 
table, but is
problematic when breaking tables up into small chunks - I can't tell the difference 
between an event
triggered by the end of a page and the event triggered by the end of my smaller table 
chunk.  In the
latter case, I don't want to draw the border.

Does anyone 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 PdfPTable getMoreRows() {
// This returns more rows, say 50.
// The result should be a table with an header and 50 rows.
// At the end it returns null.
}

public void main() {
// some code
boolean skipHeader = false;
PdfPTable table = null;
while ((table = getMoreRows()) != null) {
table.setSkipFirstHeader(skipHeader);
skipHeader = true;
document.add(table);
}
document.close();
}

Best Regards,
Paulo Soares




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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 
Chap0513.java
example (which uses Table).  I have some very big PDFs to generate and don't want to 
build up the
PdfPTable in memory.

Is there some better approach than using fitsPage to handle very large tables?  What 
else should we
use?




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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 second phrase.  If this is how addText is
supposed to work, then what is the difference between addText and setText?

I have a list of Paragraphs which I would like to add to an irregular
column.  I can't use addElement with an irregular column, but was hoping to
be able to add them using addText(Phrase) (since a Paragraph is derived from
Phrase).  Perhaps I am just out of luck :)




---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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 irregular columns and can either have a fixed height or flow to fill each page 
until all of its
content is rendered.  ColumnText is doing all the hard work underneath.

To test it I made a random iText poem generator.  This snippet shows how 
MultiColumnText is used:
   // param is height, AUTOMATIC fills full pages until out of content
   MultiColumnText mct = new MultiColumnText(MultiColumnText.AUTOMATIC);

   // params are left edge, right edge, gutter width, number of columns
   mct.addRegularColumns(document.left(), document.right(), 10f, 3);

   for (int i=0; i30; i++) {
  mct.addElement(newPara(randomWord(noun), Element.ALIGN_MIDDLE, 
Font.BOLDITALIC));
  for (int j=0; j4; j++ ) {
 mct.addElement(newPara(poemLine(), Element.ALIGN_LEFT, Font.NORMAL));
  }
  mct.addElement(newPara(randomWord(adverb), Element.ALIGN_LEFT, Font.NORMAL));
  mct.addElement(newPara(\n\n, Element.ALIGN_LEFT, Font.NORMAL));
   }

   document.add(mct);


Would anyone be interested in something like this?  I'll be glad to contribute 
MultiColumnText or
enhance it if anyone thinks it is useful.  I have attached the resulting iText poems 
for your
amusement (I'm apparently easily amused).  I liked the line drunken PdfPTable halts 
finally (no
offense intended Paulo).


itext-poetry.pdf
Description: Adobe PDF document


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
addPTable).

- Original Message - 
From: Christian Lauer [EMAIL PROTECTED]
To: iText Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 22, 2004 2:44 AM
Subject: [iText-questions] ColumnText


 Hi Paulo,

 I'd like to enhance the support of ColumnText in UJAC. For that I'd like
 to add a column text seamlessly to the document like other elements like
 tables, paragraphs or lists do. To make that happen I need to know the
 current page position. To get this, I tried the following workaround,
 which works, but adds a huge spacing between the current text and the
 column text.


   public float getVerticalPosition() throws DocumentHandlerException {
 try {
   Table tab = new Table(1);
   return ((PdfWriter) documentWriter).getTableBottom(tab);
 } catch (BadElementException ex) {
   throw new DocumentHandlerException(locator(), ex.getMessage(),
 ex);
 }
   }


 Is there a better solution?

 Best regards,
 Christian



 ---
 This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
 Project Admins to receive an Apple iPod Mini FREE for your judgement on
 who ports your project to Linux PPC the best. Sponsored by IBM.
 Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions





---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Vertical alignment in PdfPCells

2004-09-21 Thread Steve Appling
I'll be glad to try fix any problems with this, but I'm not sure exactly
what you mean by composite elements (which is probably why I didn't handle
it right originally :).  If you can describe the problem condition enough
for me to make a test case, I'll work on it.

 - Original Message - 
 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.

 Best Regards,
 Paulo Soares




---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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) so I can't tell that I'm on the last row until after I have added
the final row of cells.  I can't force a bottom border on the last row.

How would everyone (particularly Paulo) feel about making PdfPTable derived
from Rectangle?  Was there a particular reason that PdfPTable does this
differently than Table?




---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Vertical alignment in PdfPCells

2004-09-21 Thread Steve Appling
Thanks for catching that bug, Paulo.  Here is a revised version of
ColumnText that handles composite elements correctly (I think :).  At least
I have a simple test case that failed before and now works.  I also changed
ColumnText.duplicate to use setACopy (just avoiding a small amount of code
duplication).

I added the code to copy the useAscender flag directly to the goComposite
method since that is how everything else is copied.  Would it be better to
use setACopy to copy all of the ColumnText fields, then override a few with
parameters from the added Element?  It would be nice to have 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] Vertical alignment in PdfPCells


A composite element is an element added with ColumntText.addElement(),
it's the same with PdfPCell. The processing is done in
ColumnText.goComposite(). If firstPass == true and it's a Paragraph or a
List you'll have to pass to the constructed ColumnText the Ascent flag.

Best Regards,
Paulo Soares

 -Original Message-
 From: Steve Appling [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 21, 2004 3:51 PM
 To: Paulo Soares; iText Mailing List
 Subject: Re: [iText-questions] Vertical alignment in PdfPCells

 I'll be glad to try fix any problems with this, but I'm not
 sure exactly
 what you mean by composite elements (which is probably why I
 didn't handle
 it right originally :).  If you can describe the problem
 condition enough
 for me to make a test case, I'll work on it.

  - Original Message - 
  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.
 
  Best Regards,
  Paulo Soares





ColumnText.java
Description: java/


Re: [iText-questions] PdfPTable borders

2004-09-21 Thread Steve Appling
Perhaps I don't understand the use of PdfPTableEvent well enough.  If my
table spans multiple pages, how can I use the information in the
PdfPTableEvent to determine the appropriate borders?  Can I use the canvas
to write across previous pages?  If so, then perhaps this would be better,
although the changes to allow PdfPTable to have a border also seem fairly
simple.  Here is what I did to evaluate this:

In PdfPTable.writeSelectedRows(int colStart, int colEnd, int rowStart, int
rowEnd, float xPos, float yPos, PdfContentByte[] canvases), I added  the
following at the very end:
setLeft(xPos);
setRight(xPos + getTotalWidth());
setTop(yPosStart);
setBottom(yPos);
Rectangle borderRect = new Rectangle(this);
if (hasPreviousSubtables) {
   borderRect.disableBorderSide(Rectangle.TOP);
}
if (hasMoreSubtables) {
   borderRect.disableBorderSide(Rectangle.BOTTOM);
}
canvases[LINECANVAS].rectangle(borderRect);

Note the new members hasPreviousSubtables and hasMoreSubtables (names
debateable).  Other small changes to make sure new Rectangle properties are
copied appropriately.

In ColumnText (starting at line 1279 of my version) I added:
if (listIdx  0) {
   nt.hasPreviousSubtables = true;
}
if (k  table.size()) {
   nt.hasMoreSubtables = true;
}

this is right before the line:
nt.writeSelectedRows(0, -1, x1, yLineWrite, canvas);

This seems fairly straightforward, but I don't quite follow all of the
ColumnText code, so I may be missing something important.

If this is something you would like to pursue, then I need to make some
small changes 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-questions] PdfPTable borders


 You have PdfPTableEvent that it's a lot more flexible. How would you
 implement the new border model?

Best Regards,
Paulo Soares




---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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 the 1.02b version, it works fine.

I think the root of the problem is that PdfTable.columns is set early in the
constructor before updateRowAdditionsInternal() is called.  This ends up
calling table.complete() which merges the inner table and changes the number
of columns.  Then, when looping over the columns back in the constructor,
you get an ArrayIndexOutOfBoundsException.  I tried adding table.complete()
earlier in the constructor, but that seemed to cause other problems.  I will
continue to look into this, but would appreciate any help I can get.

I'm also not convinced that table.mergeInsertedTables() is working
correctly - I end up with a 3 row x 3 column table in this case.  That
doesn't seem correct, but I don't quite follow what mergeInsertedTables is
doing.

Here is a fragment of the test code I am using that causes the problem:

public void testSimpleNesting() throws DocumentException
{
Font tableFont = FontFactory.getFont(Helvetica, 8, Font.BOLD,
Color.BLACK);
Table outerTable = new Table(1);
Paragraph p = new Paragraph(test, tableFont);

Table innerTable= new Table(1);
innerTable.addCell(makeCell(new Element[] {p }, Element.ALIGN_LEFT,
Element.ALIGN_TOP, new Rectangle(100,100)));

outerTable.addCell(makeCell(new Element[] {p, innerTable},
Element.ALIGN_LEFT, Element.ALIGN_TOP, new Rectangle(100,100)));
document.add(outerTable);
}


Cell makeCell(Element[] elements, int vAlignment, int hAlignment,
Rectangle borders) {
Cell cell = new Cell();
if (elements != null) {
for (int i = 0; i  elements.length; i++) {
Element el = elements[i];
cell.add(el);
}
}
cell.setVerticalAlignment(vAlignment);
cell.setHorizontalAlignment(hAlignment);
return cell;
}





---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


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
Table.mergeInsertedTables this weekend and post a simple example that
triggers the problem if I can't resolve it.


PdfTable.java
Description: java/


[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 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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
eventually?  Are bugfixes or new features pursued on both branches or is the
one at itext.sourceforge.net frozen?  Who has commit rights for each of
these source trees and how are bug fixes typically submitted?  I poked
around both of these SourceForge sites and didn't seem much information on
this.

Thanks




---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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
what unit that is in.

The PdfContentByte.setTextMatrix seems to appropriately position text
relative to the baseline, but I can't figure out how to position a
subsequent line so that (for an arbitrary font and size) it will be directly
under the text (containing characters like y).




---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


[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 WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions


Re: [iText-questions] Vertical Alignment Problems

2004-09-04 Thread Steve Appling
Title: [iText-questions] Vertical Alignment Problems




I think I have a fix for this only modifying 
PdfCell. I will test it some more this weekend and send it in. 
Should I just send the file to this list? Would you rather have a 
diffwith whatis in CVS?

  - Original Message - 
  From: 
  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,
  Paulo Soares
  
  
  From: [EMAIL PROTECTED] 
  on behalf of Steve ApplingSent: Fri 03-Sep-04 19:10To: 
  [EMAIL PROTECTED]Subject: 
  [iText-questions] Vertical Alignment Problems
  
  Vertical alignment in a cell does not seem to be working 
  correctly for me. Iam attaching a PDF demonstrating the problem and the 
  sample web applicationI used to generate it (look at itest.jsp in the war 
  file for the source).The code in the constructor for PdfCell that 
  seems to be handling verticalalignment does not appear to take the actual 
  size of the text or the widthof the border into account. Am I missing 
  something here, or is this just anarea that needs some 
  improvement?


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.

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 28, 2004 5:06 PM
Subject: [iText-questions] Multiple requests to Server from IE for dynamic
PDF from iText



 Hi,

 I am using iText PDF library to generate dynamic PDF using Java Stored
 Procedure which called by
 Java Script. The browser I am using is IE 6.0. I found that for every
 single request, I get minimum 2 requests
 always to my server.This is resulting in lot of performance overhead, to
 end user i.e. user is waiting twice the time for
 every request. I tried setting content length but did not help.

 Any one has some clues/solution to fix it ?

 Thank much
 Surendra




 ---
 The SF.Net email is sponsored by EclipseCon 2004
 Premiere Conference on Open Tools Development and Integration
 See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
 http://www.eclipsecon.org/osdn
 ___
 iText-questions mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/itext-questions



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions