ravikanth pratti wrote:
> Hi,
> Thank you for your mail.
>  
> i have to generate one pdf which will consists of  header logo,body and 
> footer logo with border.
>  
> Header logo- consists of  polygon image with text in diffrent formats.
> Body - Consists some text with Table
> Footer Logo - Consists some images with text.

As the header logo will be repeated on several pages, you should create 
this using PdfTemplate. If you are familiar with Graphics2D, it may be a 
good idea to use Graphics2D to achieve this.

> For generating images am using graphics2d api

You're talking about images, well, treat them as images.
A PdfTemplate can be wrapped inside an Image object.

> and for text am using paragraphs & chunk api.

OK, so you are creating the document content using document.add().

> Can you please suggest me is it proper way to construct pdf file??

Yes, IF you are using document.add() for the content
AND page events to add the header and footer PdfTemplates.

> i have some other questions also.
>  
> Border- Is there is any method  to draw border to page directly.

Use page events!

> Strict to one page in PDF file - Can we restrict page to only one in 
> genrating of pdf file.

But what if the content doesn't fit on one page?
Instead of using document.add() for the content,
you could use the ColumnText object.

Add the content in simulation mode.
If the ColumnText object tells you everything fits,
then add the content for real.

If the ColumnText object tells you the content doesn't fit,
then change something, for instance: reduce the font size;
and repeat the process till the content fits.

> Thanks in advance.

You really need to read the documentation!
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
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

Reply via email to