Hi,
What is your problem and what you want to achieve is not entirely clear
to me.
IIUC, you are not happy with the fact that the content is being rendered
on only one line and is being cut off at the page’s right margin? You
would like it to be broken into several lines, but images should be kept
with the preceding (or following?) text if possible.
I think you can get rid of fo:inline altogether:
<fo:block>sometext1
<fo:external-graphic src="00000011.tif" display-align="center"
scaling="uniform" content-width="80mm"/>
st2
<fo:external-graphic src="00000011.tif" display-align="center"
scaling="uniform" content-width="80mm"/>
<fo:external-graphic src="00000011.tif" display-align="center"
scaling="uniform" content-width="80mm"/>
<fo:external-graphic src="00000011.tif" display-align="center"
scaling="uniform" content-width="80mm"/>
sometext2</fo:block>
If you want the image to be on the same line as the preceding text, just
remove blanks between the two:
<fo:block>sometext1<fo:external-graphic ...
(Although I’m not sure that this is correct behaviour. I think a break
should still be allowed to occur between the text and the image.)
If you want no space between the preceding text and the image, yet the
image to be put on the next line if there is not enough space on the
current one, just insert a zero-width space:
<fo:block>sometext1​<fo:external-graphic ...
And likewise for text following images, or between images.
HTH,
Vincent
lexa2009 wrote:
> thx for help.
> here is my fo ( i cut it to show the problem):
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:m="http://www.w3.org/1998/Math/MathML">
> <xsl:template match="/">
> <fo:root xmlns:m="http://www.w3.org/1998/Math/MathML"
> xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <fo:layout-master-set>
> <fo:simple-page-master master-name="my-page"
> page-height="29.7cm"
> page-width="21cm" margin-top="0cm" margin-bottom="0cm" margin-left="0cm"
> margin-right="0cm">
> <fo:region-body column-count="2"
> margin-top="1.5cm"
> margin-bottom="1.5cm" margin-left="1.5cm" margin-right="1.5cm" />
>
> </fo:simple-page-master>
>
> </fo:layout-master-set>
>
> <fo:page-sequence master-reference="my-page">
> <fo:flow
> flow-name="xsl-region-body">
> <fo:block>
>
> sometext1<fo:inline><fo:external-graphic src="00000011.tif"
> display-align="center" scaling="uniform" content-width="80mm">
> </fo:external-graphic></fo:inline>st2<fo:inline><fo:external-graphic
> src="00000011.tif" display-align="center" scaling="uniform"
> content-width="80mm">
> </fo:external-graphic></fo:inline><fo:inline><fo:external-graphic
> src="00000011.tif" display-align="center" scaling="uniform"
> content-width="80mm">
> </fo:external-graphic></fo:inline><fo:inline><fo:external-graphic
> src="00000011.tif" display-align="center" scaling="uniform"
> content-width="80mm"> </fo:external-graphic></fo:inline>sometext2
> </fo:block>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
> </xsl:template>
> </xsl:stylesheet>
> i use fop 0.95 but with fix of tiff. ( my theme
> http://old.nabble.com/error-in-pdf-with-tiff-image-inside-which-was-created-by-fop-td26509340.html
> )
> i want to see all my images. yes, if i use fo:block all will be ok, but i
> need image on one string with text if possible.
> http://old.nabble.com/file/p27109532/name.pdf name.pdf
> http://old.nabble.com/file/p27109532/00000011.tif 00000011.tif
> here pdf and image that i use.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]