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
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
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
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
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
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
>
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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
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
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
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
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
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.
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
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
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
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
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
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
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
- 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
39 matches
Mail list logo