Hallo list, 

 

I have two requirements regarding the sequencing of images and texts
that appear to be incompatible with iText. 

 

The documents is made up of several com.lowagy.Chapter. Text,  images
... are added to the chapters.

 

1. I want images be automatically moved to the next page if there is not
enough space left. Following elements should fill the remaining gap.

This is easy - just default behavior of PdfWriter.

 

2. Images are part of some kind of illustration block consisting of an
Image and an subtitle / description. Image and subtitle should always be
kept together and should be highlighted with an border. 

Again this alone is not a problem. I solved it by wrapping Image and
Text in a PdfPTable (2 cells) and setting
illustrationTable.setKeepTogether(true);.

 

However, when wrapping the image into a table there may be a large gap
on a page if the image-table will be moved to the next page.  Following
elements will no longer be moved into that gap.

 

Is it possible to get the behavior of strictImageSequence=false for
other pdf elements? Somehow? Indirectly? A dirty hack? Without
reimplementing the layout algorithm. 

 

Thanks a lot for any suggestion

 

Wolf

Aperto freut sich ueber den Deutschen Multimedia Award in Gold in der Kategorie 
"Interactive Campaigns" fuer Studieren in Fernost. www.aperto.de
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
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