Please post the original image and the code you used to create the PDF
so that we can reproduce the situation. By code I mean a standalone
program with a main() method.

Paulo

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Elangainathan, Deepa (CT)
> Sent: Tuesday, April 24, 2007 3:42 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Graphic for header
> 
> Hi Paulo,
> 
> Thank you for the link. I actually already read through the 
> link many times and unable to understand why the graphic 
> created is not displaying the same when I run them through 
> both this functions below. Graphics are 72 dpi and 720 
> pixels. I plan to have the header displayed in Landscape. I 
> have tried many sizes and upto 300 dpi. Same results.  The 
> jpg graphic is scaled to Absolute. Please see graphic 
> attached where I circled in red. The right side of the 
> graphic where it curves, is blur compared to the original 
> graphic itself. Why is this happening?  Can you help?
> 
> Image jpg = Image.getInstance(path);
> jpg.setAlignment(Image.MIDDLE);
> jpg.scaleAbsolute(width,height );
> 
>  Image jpg = Image.getInstance(path);
>  jpg.setAlignment(Image.MIDDLE);
> jpg.scalePercent(scale);
> 
> Regards,
> 
> Deepa 
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Paulo Soares
> Sent: Tuesday, April 24, 2007 9:53 AM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Graphic for header
> 
> 
> See
> http://itextdocs.lowagie.com/tutorial/objects/images/index.htm
> l#transfor
> mations.
> 
> Paulo
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] 
> > [mailto:[EMAIL PROTECTED] On 
> > Behalf Of Elangainathan, Deepa (CT)
> > Sent: Tuesday, April 24, 2007 2:50 PM
> > To: Post all your questions about iText here
> > Subject: Re: [iText-questions] Graphic for header
> > 
> > Hi,
> > 
> > How does assign pixel or units in iText compared with DPI?  Also how
> > does it determines the width and height when you create image in
> > Photoshop so it won't blurry in PDF through iText.
> > 
> > Regards,
> > 
> > Deepa 
> > 
> > 
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of
> > Paulo Soares
> > Sent: Monday, April 23, 2007 5:28 PM
> > To: Post all your questions about iText here
> > Subject: Re: [iText-questions] Graphic for header
> > 
> > 
> > If you stretch the image it will look blurred. Your 
> original question
> > really 
> > can't be answered, it all depends on the final resolution, in DPI,
> > needed.
> > 
> > Paulo
> > 
> > ----- Original Message ----- 
> > From: "Elangainathan, Deepa (CT)" <[EMAIL PROTECTED]>
> > To: "Post all your questions about iText here" 
> > <itext-questions@lists.sourceforge.net>
> > Sent: Monday, April 23, 2007 10:05 PM
> > Subject: Re: [iText-questions] Graphic for header
> > 
> > 
> > > Basically I used 2 functions.
> > > 1)
> > > Image jpg = Image.getInstance(path);
> > > jpg.setAlignment(Image.MIDDLE);
> > > jpg.scaleAbsolute(width,height );
> > >
> > > 2)
> > > Image jpg = Image.getInstance(path);
> > > jpg.setAlignment(Image.MIDDLE);
> > > jpg.scalePercent(scale);
> > >
> > > Regards,
> > >
> > > Deepa
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On 
> Behalf Of
> > > Paulo Soares
> > > Sent: Monday, April 23, 2007 5:00 PM
> > > To: Post all your questions about iText here
> > > Subject: Re: [iText-questions] Graphic for header
> > >
> > >
> > > I'm sure you know what you are talking about but without 
> > code and the
> > > PDF it
> > > will remain your secret.
> > >
> > > Paulo
> > >
> > > ----- Original Message ----- 
> > > From: "Elangainathan, Deepa (CT)" <[EMAIL PROTECTED]>
> > > To: <itext-questions@lists.sourceforge.net>
> > > Sent: Monday, April 23, 2007 9:55 PM
> > > Subject: [iText-questions] Graphic for header
> > >
> > >
> > > I would like to insert headers and footers as graphic. I 
> am creating
> > it
> > > 10 inches width but it doesn't look as sharp as the 
> original graphic
> > > created, especially (very noticeable) the right hand side 
> is blurry.
> > >
> > > My question is, if I want to have a header which expands 
> across the
> > page
> > > in landscape, what should the width of my banner be? My 
> guess is, my
> > > graphic is too big. 3000 pixels at the moment.
> > >
> > > Regards,
> > >
> > > Deepa


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to