[iText-questions] Images in Header

2006-11-10 Thread Dirk Ulrich
I am now creating a header using onEndPage. I created a Table, convert it to a PdfPTable and display it using the onEndPage method. This works fine but when I add an image (a GIF) to the table it is upscaled so that the rows height takes a third of the whole A4 page. How can I di

Re: [iText-questions] Images in Header

2006-11-10 Thread Dirk Ulrich
BTW:image.scaleToFit(15f, 30f);orimage.scalePercent(1.0f);doesn't work!Dirk Original-Nachricht Datum: Fri, 10 Nov 2006 09:43:14 +0100Von: "Dirk Ulrich" <[EMAIL PROTECTED]>An: itext-questions@lists.sourceforge.netBetreff: [iText-questions] Images in Header

Re: [iText-questions] Images in Header

2006-11-10 Thread Bruno Lowagie (iText)
Dirk Ulrich wrote: > t.setConvert2pdfptable(true); > PdfPTable p = t.createPdfPTable(); There is no reason to create a Table first, and then convert it to a PdfPTable in this case. Create a PdfPTable right away. Then you can tell the cell if it should scale the image or not. Comp

[iText-questions] PDF-Letterhead as background

2006-11-10 Thread Thomas Kuechenthal
I have an existing PDF that contains pure text information. I have a second PDF that I use as a letterhead.(It contains a header, a footer, and a watermark in the middle of the document) With Acrobat 6.0, I can insert the PDF-Letterhead as a background onto the existing Text-PDF. Can I do this w

Re: [iText-questions] PDF-Letterhead as background

2006-11-10 Thread Tim van der Leeuw
Hi Thomas,On 11/10/06, Thomas Kuechenthal <[EMAIL PROTECTED]> wrote: I have an existing PDF that contains pure text information.I have a second PDF that I use as a letterhead.(It contains a header, afooter, and a watermark in the middle of the document)With Acrobat 6.0, I can insert the PDF-Letterh

Re: [iText-questions] PDF-Letterhead as background

2006-11-10 Thread Bruno Lowagie (iText)
Thomas Kuechenthal wrote: > I have an existing PDF that contains pure text information. > > I have a second PDF that I use as a letterhead.(It contains a header, a > footer, and a watermark in the middle of the document) > > With Acrobat 6.0, I can insert the PDF-Letterhead as a background onto >

[iText-questions] Vertical alignment

2006-11-10 Thread Dirk Ulrich
I want to put an image and a text into one PdfPCell of a PdfPTable.The vertical alignment of the text shall be middle to the image (which shall be placed on the left). Between the image and the following text there shall be some space.Using this code, the text after the image is

Re: [iText-questions] Vertical alignment

2006-11-10 Thread Bruno Lowagie (iText)
Dirk Ulrich wrote: I want to put an image and a text into one PdfPCell of a PdfPTable. OK, piece of cake, see attachment. > The vertical alignment of the text shall be middle to the image (which > shall be placed on the left). Between the image and the following text > there shall be some sp

[iText-questions] Doubt about itext like HTML converter

2006-11-10 Thread Ten Waleska
Hi, I'm using itext to convert from html to pdf. I've experienced problems with some html tags like "margin-top" and "margin-left". I'd like to know what tags the parser can interpret. I'm sending you an archive that I use as a model. Waleska Núcleo de Estudos de Software Livre - NESOL Departame

Re: [iText-questions] show/hide new-line mark

2006-11-10 Thread Henry Lu
In RTF, How do we set the space between rows of a table and lines of document? The default space is a littler bit large. Waht we'd like to do is to reduce the space between rows/lines. Any idae? -Henry - Using Tomcat but ne

[iText-questions] set space between rows/lines

2006-11-10 Thread Henry Lu
In RTF, How do we set the space between rows of a table and lines of document? The default space is a littler bit large. Waht we'd like to do is to reduce the space between rows/lines. Any idae? -Henry > > - Using Tomcat

Re: [iText-questions] show/hide new-line mark

2006-11-10 Thread Mark Hall
On Friday 10 November 2006 15:20, Henry Lu wrote: > In RTF, How do we set the space between rows of a table and lines of > document? The default space is a littler bit large. Waht we'd like to do > is to reduce the space between rows/lines. Any idae? Two things: * Use a descriptive e-mail subject.

Re: [iText-questions] Vertical alignment

2006-11-10 Thread Dirk Ulrich
Thank you, Bruno.The example looks pretty.However, I see I have to improve my English!!! ;-)> Oh, you want the image to be in the middle vertically> and still have some text below. That's more difficult.No, I want an image to be placed into a cell and afterwards (on the s

[iText-questions] Sankar Mukherjee/NY/AXA-Financial/Equitable is out of the office.

2006-11-10 Thread Sankar . Mukherjee
I will be out of the office starting 11/10/2006 and will not return until 11/14/2006. I will respond to your message when I return. ** Confidentiality Note: This message and any attachments may contain legally privileged an

Re: [iText-questions] Vertical alignment

2006-11-10 Thread Dirk Ulrich
See the attached GIF to see what I want to achieve (the first cell with the traffic light).Regards,Dirk Original-Nachricht Datum: Fri, 10 Nov:10:23 +0100Von: "Bruno Lowagie (iText)" <[EMAIL PROTECTED]>An: Post all your questions about iText he

Re: [iText-questions] How to either rename pdf fields or add page numbers in existing pdf

2006-11-10 Thread new2pdf
That eliminates one extra step. Thanks Paulo... Paulo Soares wrote: > > PdfReader.getAcroFields() > > Paulo > > - Original Message - > From: "new2pdf" <[EMAIL PROTECTED]> > To: > Sent: Thursday, November 09, 2006 8:12 PM > Subject: Re: [iText-questions] How to either rename pdf fie

Re: [iText-questions] Vertical alignment

2006-11-10 Thread Bruno Lowagie (iText)
Dirk Ulrich wrote: I want to put an image and a text into one PdfPCell of a PdfPTable. The vertical alignment of the text shall be middle to the image (which shall be placed on the left). Between the image and the following text there shall be some space. Et voilà. Klaar is kees ;-) br, Bru

Re: [iText-questions] Vertical alignment

2006-11-10 Thread Bruno Lowagie (iText)
Dirk Ulrich wrote: See the attached GIF to see what I want to achieve (the first cell with the traffic light). Then you shouldn't put the image and the text into separate Paragraph objects. You should put both inside a Phrase. Use the offset passed to the Chunk constructor (along with the ima

Re: [iText-questions] Vertical alignment

2006-11-10 Thread Bruno Lowagie (iText)
Dirk Ulrich wrote: > See the attached GIF to see what I want to achieve (the first cell > with the traffic light). One more thing: now if you add cell.setHorizontalAlignment(Element.ALIGN_CENTER); the image and the text will be aligned in the center as shown in your GIF. That's because now you

[iText-questions] How to convert a normal text field to a multiline text field?

2006-11-10 Thread new2pdf
I have an existing pdf document with text fields in it. I am populating these fields at runtime using PdfStamper. Some of these fields do not have enough display area (width) to accomodate the user input data and as a result only a portion of the actual data is being displayed on the pdf (with the

Re: [iText-questions] set space between rows/lines

2006-11-10 Thread Swaminathan Ranganathan
To reduce space between lines, try this Document doc = new document() Paragraph p = new Paragraph("Para with reduced lines spaces"); p.setLeading(8.0f); // you can change the double for ur requirement document.add(p); HTH. regards Swami On Fri, 10 Nov 2006 Henry Lu wrote : >In RTF, How

Re: [iText-questions] How to convert a normal text field to a multiline text field?

2006-11-10 Thread Bruno Lowagie (iText)
new2pdf wrote: > Is there anyway I can convert these fields to accept multi lines? > (Multi-line fields does automatically reduce its font size to accomodate its > content, right?). Thanks in advance for any help. Setting the font to zero reduces the font size if the content doesn't fit. form.set

Re: [iText-questions] set space between rows/lines

2006-11-10 Thread Swaminathan Ranganathan
OOPS!! Sorry about that, i was thinking its for PDF.  On Fri, 10 Nov 2006 Henry Lu wrote : >In RTF, How do we set the space between rows of a table and lines of >document? The default space is a littler bit large. Waht we'd like to do >is to reduce the space between rows/lines. Any idae? > >-H

Re: [iText-questions] How to convert a normal text field to a multiline text field?

2006-11-10 Thread new2pdf
Thanks Bruno! What will be the default font size if I set it to zero? I would like to set Arial 9f as the default font for all fields. How can I do that? Bruno Lowagie (iText) wrote: > > new2pdf wrote: > >> Is there anyway I can convert these fields to accept multi lines? >> (Multi-line field

[iText-questions] space between lines/rows

2006-11-10 Thread Henry Lu
I tried the followings in the RTF t.setCellpadding(0.1F); t.setCellspacing(0.1F); And there is no difference at all. -Henry Mark Hall wrote: >On Friday 10 November 2006 15:20, Henry Lu wrote: > > >>In RTF, How do we set the space between rows of a table and lines of >

Re: [iText-questions] How to convert a normal text field to a multiline text field?

2006-11-10 Thread Bruno Lowagie (iText)
new2pdf wrote: > Thanks Bruno! > What will be the default font size if I set it to zero? I would like to set > Arial 9f as the default font for all fields. How can I do that? That's not possible (not that I know of). I think the default font is 12pt, but I should look it up (if it's documented so

Re: [iText-questions] Table of Contents creating using itext.jar

2006-11-10 Thread Bruno Lowagie (iText)
This bounced. Sorry if it was already posted. Bis repetitia placent ;-) Bruno Lowagie (iText) wrote: > Khan, Aziz wrote: >> Hi all, > > The question was sent to the mailing list owner, > not to the mailing list. It is hereby forwarded. > >> How do I print table-of-contents like format? >> >> Int

Re: [iText-questions] space between lines/rows

2006-11-10 Thread Mark Hall
Ok. What space between which elements do you wish to reduce. Perhaps some example code of what you are doing and maybe an example of the incorrect document could be provided. Otherwise I'm just guessing. Greetings, Mark On Friday 10 November 2006 16:46, Henry Lu wrote: > I tried the followings

Re: [iText-questions] How to convert a normal text field to a multiline text field?

2006-11-10 Thread new2pdf
Thanks Bruno... Bruno Lowagie (iText) wrote: > > new2pdf wrote: >> Thanks Bruno! >> What will be the default font size if I set it to zero? I would like to >> set >> Arial 9f as the default font for all fields. How can I do that? > > That's not possible (not that I know of). > I think the def

[iText-questions] Sankar Mukherjee/NY/AXA-Financial/Equitable is out of the office.

2006-11-10 Thread Sankar . Mukherjee
I will be out of the office starting 11/10/2006 and will not return until 11/14/2006. I will respond to your message when I return. ** Confidentiality Note: This message and any attachments may contain legally privileged an

[iText-questions] How to create oracle.sql.BLOB PDF from incoming String[]

2006-11-10 Thread Patrick O. Thurman
Good Morning, I have a oracle.sql.ARRAY as input param and I would like to create PDF document from this array and return to plsql a oracle.sql.BLOB object. I have been tring the code below, but it does not work. I get ORA-29532: Java call terminated by uncaught Java exception: java.lang.

[iText-questions] Sankar Mukherjee/NY/AXA-Financial/Equitable is out of the office.

2006-11-10 Thread Sankar . Mukherjee
I will be out of the office starting 11/10/2006 and will not return until 11/14/2006. I will respond to your message when I return. ** Confidentiality Note: This message and any attachments may contain legally privileged an

[iText-questions] iText in Action: eBook

2006-11-10 Thread Bruno Lowagie
Hello all, I have just received the final eBook version of 'iText in Action'. This means all those who have bought the book from the Manning site ( http://www.manning.com/affiliate/idevaffiliate.php?id=223_53 ) should also receive it soon (certainly next week). Those who haven't bought it yet: now

Re: [iText-questions] space between lines/rows

2006-11-10 Thread Henry Lu
Here is my code: n = list.size(); t = new Table(4, n); t.setCellpadding(0.1F); t.setCellspacing(0.1F); //t.setSpacing(-2.0F); //t.setSpaceBetweenCells(-2.0F); //t.setSpaceInsideCell(-2.0F); //t.setDefau

[iText-questions] what causes the NullPointerException

2006-11-10 Thread Patrick O. Thurman
What causes the NullPointerException and why does it happen in the following code? What are some solutions? import com.lowagie.text.Document; import com.lowagie.text.DocumentException; import com.lowagie.text.Paragraph; import com.lowagie.text.pdf.*; import java.sql.SQLException; import oracle.s

Re: [iText-questions] what causes the NullPointerException

2006-11-10 Thread Paulo Soares
The variable blob is never assigned a value. Paulo - Original Message - From: "Patrick O. Thurman" <[EMAIL PROTECTED]> To: "'Post all your questions about iText here'" Sent: Friday, November 10, 2006 8:33 PM Subject: [iText-questions] what causes the NullPointerException > What cause

Re: [iText-questions] what causes the NullPointerException

2006-11-10 Thread Patrick O. Thurman
I thought that the statement PdfWriter.getInstance(document, blob.getBinaryOutputStream()); Would populate the blob object with the generated pdf data. What would be the required changes? Pat >The variable blob is never assigned a value. Paulo > What causes the NullPointerException and why

Re: [iText-questions] space between lines/rows

2006-11-10 Thread Mark Hall
On Friday 10 November 2006 20:29, Henry Lu wrote: > What I'd see is to reduce the space between rows in a table. What you are seeing is not space between the rows of the table, but the height of each table cell and this is influenced by the height of the contents. Use the setLeading method of the

Re: [iText-questions] what causes the NullPointerException

2006-11-10 Thread Paulo Soares
- Original Message - From: "Patrick O. Thurman" <[EMAIL PROTECTED]> To: "'Post all your questions about iText here'" Sent: Friday, November 10, 2006 8:58 PM Subject: Re: [iText-questions] what causes the NullPointerException >I thought that the statement > PdfWriter.getInstance(docum