Op 18/03/2011 1:13, phle...@free.fr schreef:
> Hello,
>
> I would like to have a footer with a logo in the footer of my PDF document.

OK.

> So, if my understanding is right, I need to create an image that contains the 
> logo and some text (like the page number).

That is only one of the many options.
Why would you put the text inside an image?

> So I create a java.awt.image, then this image is read by a itextimage and the 
> endofpage event use a PDF low level action to put it at the end of the PDF 
> page.

Ouch, is there a specific reason why you take the detour creating a 
java.awt.Image?

> So I have a java.awt.BufferImage + Graphics2D and I use drawString() to write 
> String into the image.
>
> My problem is :
> With the high level PDF and the font the text is beautifull, but the text in 
> the footer image is horrible (but has the right size).

That was to be expected.

> Questions :
> - Do I use the right mecanism to have a logo + text in my footer ?

No. I wonder where you've found this mechanism. None of the examples to 
add headers/footers in chapters 5 and 6 of the Second Edition of "iText 
in Action" use this mechanism. Please read those chapters to find out 
better mechanisms to add a footer.

> - Must I use special mechanism to convert my bufferedImage into PDF ? It may 
> be a "scale problem" (DPI ?)

This question is irrelevant, since the answer to the previous question 
was No.

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to