Hi,
I cannot reproduce different behavior when using fo:block instead of
fo:inline with provided material.
You should be more explicit: actual XSL-FO code for both cases, and if
possible actual image file used.
However, I suspect you are using an old FOP version, can you check that?
Note that FOP 0.95 conforms to the spec (see REC §6.6.5 -
fo:external-graphic, at [1]), while FOP 0.2x doesn't:
- actual size of the image is calculated regarding intrinsic image size
and content-* size properties for the fo:e-g
- if not directly available, the intrinsic size is calculated using the
source resolution (see [2])
Usual script should be, assuming a lr-tb writing-mode:
<fo:external-graphic src="my_graphic_url"
inline-progression-dimension="my_viewport_width"
block-progression-dimension="my_viewport_height"
content-width="my_image_width"
content-width="my_image_height"/>
see also, for further details:
REC §7.15.3 block-progression-dimension at [3]
REC §7.15.4 content-height at [4]
REC §7.15.5 content-width at [5]
REC §7.15.7 inline-progression-dimension at [6]
[1] http://www.w3.org/TR/xsl/#fo_external-graphic
[2] http://xmlgraphics.apache.org/fop/0.95/graphics.html#resolution
[3] http://www.w3.org/TR/xsl/#block-progression-dimension
[4] http://www.w3.org/TR/xsl/#content-height
[5] http://www.w3.org/TR/xsl/#content-width
[6] http://www.w3.org/TR/xsl/#inline-progression-dimension
HTH,
Pascal
lexa2009 a écrit :
hello. i want to generate pdf with text and some images inside it.
for example this part of fo
<fo:block>
sometext
<fo:inline>
<fo:external-graphic display-align="center" scaling="uniform"
src="00000001.tif" />
</fo:inline>
some text
<fo:inline>
<fo:external-graphic display-align="center" scaling="uniform"
src="00000001.tif" />
</fo:inline>
some text
<fo:block>
but when there must be a new page or new string fop does not make it and my
image does not display correct in pdf (overflows visible area).
if i use fo:block instead of fo:inline all is good, but i have to use
fo:inline becouse if it is possible image must be displayed on the same
string.
thx:)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]