Floating image

View: New views
2 Messages — Rating Filter:   Alert me  

Floating image

by jantje :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there,

With Apache Fop, I generate documentation (in .pdf), to documentate my application.

If there is not enough available space on a page (to display an image), the image will be displayed on the next page. This leaves a large whitespace on the  previous page. (If the image is very large, the responding large white-space on the previous page looks very ugly!)

Is there a possibility in "fo" to make the image "floating".. This means:
 - if the image is to large for this page, place it on the next.
 - pull up (one ore more) other blocks (paragraphs of text) to fill the previous page.

In LaTeX, this is possible, hopefully also in fo :-)

Greetings and thanks

Re: Floating image

by Tony Graham-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Fri, Mar 28 2008 14:26:04 +0000, janvanoppen@... wrote:
...
> If there is not enough available space on a page (to display an image), the
> image will be displayed on the next page. This leaves a large whitespace on
> the  previous page. (If the image is very large, the responding large
> white-space on the previous page looks very ugly!)
>
> Is there a possibility in "fo" to make the image "floating".. This means:
>  - if the image is to large for this page, place it on the next.
>  - pull up (one ore more) other blocks (paragraphs of text) to fill the
> previous page.

The XSL spec includes fo:float [1] (and an example [2] of how to use
it), but the FOP compliance page says that FOP doesn't support it [3].

Regards,


Tony Graham                         Tony.Graham@...
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd
XML, XSL & XSLT consulting, programming & training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2

[1] http://www.w3.org/TR/xsl11/#fo_float
[2] http://www.w3.org/TR/xsl11/#d0e14402
[3] http://xmlgraphics.apache.org/fop/compliance.html#fo-object-float