You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by lmhelp <lm...@wanadoo.fr> on 2008/09/01 10:17:59 UTC
Unwanted spaces, block, instream-foreign-object
Hi everyone,
Thank you for reading.
Here is my problem.
Just take the following code and put it in a file "essai.xsl" (or
"essai.fo"...).
======================================================================================================
<fo:root xmlns:svg="http://www.w3.org/2000/svg"
xmlns:fo="http://www.w3.org/1999/XSL/Format" >
<fo:layout-master-set>
<fo:simple-page-master master-name="one">
<fo:region-body margin-top="25pt" margin-bottom="25pt"
margin-left="50pt" margin-right="50pt"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="one">
<fo:flow flow-name="xsl-region-body">
<fo:block
border-top-width="1mm" border-top-color="tomato"
border-top-style="solid"
border-bottom-width="1mm" border-bottom-color="tomato"
border-bottom-style="solid"
border-right-width="1mm" border-right-color="tomato"
border-right-style="solid"
border-left-width="1mm" border-left-color="tomato"
border-left-style="solid"
>
<fo:instream-foreign-object
border-top-width="1mm" border-top-color="palegreen"
border-top-style="solid"
border-bottom-width="1mm" border-bottom-color="palegreen"
border-bottom-style="solid"
border-right-width="1mm" border-right-color="palegreen"
border-right-style="solid"
border-left-width="1mm" border-left-color="palegreen"
border-left-style="solid"
>
<svg:svg width="45" height="45">
<svg:rect x="0" y="0" width="45" height="45"/>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
======================================================================================================
Launch the following command:
# fop -fo essai.xsl -pdf essai.pdf
Have a look at "essai.pdf".
So, one can see:
- the "palegreen" border of the "instream-foreign-object"
- and the "tomato" border of the "block" in which we can find find the
"instream-foreign-object".
My question is:
can anyone explain me what are the spaces:
- between the top tomato border and the top palegreen border
- and between the bottom tomato border and the bottom palegreen border.
Notice that they do not have the same height...
Also notice that I have no space between the left tomato border and the left
palegreen border...
How can I suppress the two spaces mentioned above?
Thank you for your help.
--
Lmhelp
--
View this message in context: http://www.nabble.com/Unwanted-spaces%2C-block%2C-instream-foreign-object-tp19250287p19250287.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Unwanted spaces, block, instream-foreign-object
Posted by lmhelp <lm...@wanadoo.fr>.
Thank you for your answer!
So I tried with:
=================================================================================
<fo:root xmlns:svg="http://www.w3.org/2000/svg"
xmlns:fo="http://www.w3.org/1999/XSL/Format" >
<fo:layout-master-set>
<fo:simple-page-master master-name="one">
<fo:region-body margin-top="25pt" margin-bottom="25pt"
margin-left="50pt" margin-right="50pt"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="one">
<fo:flow flow-name="xsl-region-body">
<fo:block
border-top-width="1mm" border-top-color="tomato"
border-top-style="solid"
border-bottom-width="1mm" border-bottom-color="tomato"
border-bottom-style="solid"
border-right-width="1mm" border-right-color="tomato"
border-right-style="solid"
border-left-width="1mm" border-left-color="tomato"
border-left-style="solid"
line-height="0"
>
<fo:instream-foreign-object
border-top-width="1mm" border-top-color="palegreen"
border-top-style="solid"
border-bottom-width="1mm" border-bottom-color="palegreen"
border-bottom-style="solid"
border-right-width="1mm" border-right-color="palegreen"
border-right-style="solid"
border-left-width="1mm" border-left-color="palegreen"
border-left-style="solid"
>
<svg:svg width="45" height="45">
<svg:rect x="0" y="0" width="45" height="45"/>
</svg:svg>
</fo:instream-foreign-object>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
=================================================================================
But, unfortunately, the problem is not solved.
Now, the "instream-foreign-object" over the "block"
and there are still spaces:
- between the top "palegreen" border and the top "tomato" border and
- between the bottom "tomato" border and the bottom "palegreen" border.
Any other idea?
Thanks,
--
Lmhelp
--
View this message in context: http://www.nabble.com/Unwanted-spaces%2C-block%2C-instream-foreign-object-tp19250287p19251489.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: Unwanted spaces, block, instream-foreign-object
Posted by lmhelp <lm...@wanadoo.fr>.
Hi,
Thank you.
It's OK with setting only font-size="0".
Thanks again.
--
Lmhelp
--
View this message in context: http://www.nabble.com/Unwanted-spaces%2C-block%2C-instream-foreign-object-tp19250287p19251929.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org