Thanks
One more info required:)
I want to add 2 Phrase
and there should some blank space between 2 phrases ..
Here is code
sample
Phrase phrase = new
Phrase(text.toString(), normalFont);
phrase.add(new Phrase(30, new
Chunk("2/12/2005", boldFont)));
Paragraph par = new
Paragraph(phrase);
But in output t phrase are displayed side by side without any spaces. Any idea?
-----Original Message-----
From: Bruno Lowagie [mailto:[EMAIL PROTECTED]]
Sent: Friday,
February 17, 2006 1:16 PM
To: Shailesh Raj (WT01 - HLS)
Cc:
itext-questions@lists.sourceforge.net
Subject: Re: [iText-questions]
Replacing placeholder value in PDF
[EMAIL PROTECTED]
wrote:
> What method I should call to remove border.
>
>
PdfPTable foot = new
PdfPTable(1);
>
foot.getDefaultCell().setBorder(Rectangle.NO_BORDER);
>
Also I have to display header as Image. Here is code for that . But
> here
header is height is very much. I want to make it less. So what is
>
avaible for making header image
smaller.
>
> image.scaleAbsolute(100,
100);
>
This code doesn't seem to correspond with the PDF.
Normally
this scales the image to 100 x 100 pixels.
The image I see in the PDF is
larger.
Maybe a better way to create that table, is to define a fixed height
and to create a PdfPCell with the image and force the cell to scale the
image.
You'll find the correct method to do this in the
Javadocs.
br,
Bruno