Don't draw your text into an image.  Draw it separately.
com.itextpdf.text.pdf.ColumnText can help.

--Mark Storer
  Senior Software Engineer
  Cardiff.com
 
import legalese.Disclaimer;
Disclaimer<Cardiff> DisCard = null;
 
 

> -----Original Message-----
> From: [email protected] [mailto:[email protected]] 
> Sent: Thursday, March 17, 2011 5:13 PM
> To: [email protected]
> Subject: [iText-questions] horrible drawString in a footer image
> 
> Hello, 
> 
> I would like to have a footer with a logo in the footer of my 
> PDF document.
> So, if my understanding is right, I need to create an image 
> that contains the logo and some text (like the page number). 
> 
> 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. 
> 
> 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). 
> 
> Questions : 
> - Do I use the right mecanism to have a logo + text in my footer ? 
> - Must I use special mechanism to convert my bufferedImage 
> into PDF ? It may be a "scale problem" (DPI ?)
> 
> Thanks 
> 
> 
> --------------------------------------------------------------
> ----------------
> 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
> [email protected]
> 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
> 
> 

------------------------------------------------------------------------------
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
[email protected]
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