> >  image.scaleToFit(PageSize.A4.getWidth(),
> PageSize.A4.getHeight());
> 
> That's not correct: you didn't take into account
> the page margins,
> you didn't take into account the space taken by the
> image title.

You are right, when I reduced scale to 400, 400, image and its title appeared 
in one page. However the problem is if I increase it little bit the image 
appeared in a new page and texts supposed to appear after image, are appeared 
before image. Hence it was totally messed.

Hence can it possible
- Always ensure that even if the image appears in a new page, but the texts 
should appear properly i.e. texts that are supposed to appear after image, are 
appearing after image page.

- How can I know whether Image can be fit current page or not, so that I can 
make sure that image is appearing in a new page.

Appreciate your help on this.

- RB


      

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to