Sushma Katragunta wrote:
> I am unable to view the content of pdf in page.
> When i run the .java file seperaltely it's working fine.
> Can you please help me with this.

This has already been answered:
* either change the configuration of your application server so that it 
doesn't treat the output of your JSP code as "plain text". The PDF is 
produced correctly by iText, but corrupted by JSP.
* or (the better solution): throw away your JSP and write a Servlet. If 
you have ever learned how to write JSP files, you should have learned 
that JSP shouldn't be used to create binary data!

> And is there a way to set the image in header rather than hard-coding 
> the position of the image?

Why would you want the application to decide where to add the image, if 
you have the liberty to do that yourself using the information about the 
size of the page that is passed to the onEndPage event?
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to