I have a piece of software that creates an XSL-FO
description from a text file and converts it into a PDF document. Each line in the text file is converted to fo:block
to FO, which sounds wrong, but I canβt change it right now. My document contains from 1 to 3 A4 pages.
Now I need to add graphics about 8 cm wide below the existing text. It should be aligned to the left. Next to him I want to place a block of text with a long description.
I looked through several documents for FO and came up with the following:
<fo:block intrusion-displace="block" margin-top="20mm"> <fo:float float="right"> <fo:block margin-left="20mm"> Bacon ipsum dolor sit amet laborum proident... </fo:block> </fo:float> <fo:external-graphic src="image.png"/> </fo:block>
This seemed like what I wanted (after some tweaking, of course), but unfortunately FOP does not support fo:float
,
There is also a way to create multiple columns (without a table), but I was not able to figure out how this works. It seems like a new page is needed for this, but I need to use the current page if there is free space (which I don't need to care, I think).
So my question is: Is there any other way to build this without using fo:float
?
source share