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 Marcus Andersson <ma...@home.se> on 2003/04/03 20:00:48 UTC
Borders around images
Hello
First of all: I am using FOP-0.20.4 under jdk1.4.1.
I want to draw borders around some images. Have tried some ways but it doesn't just seems to be any borders in the rendered result. The ways I've tried is:
- <fo:external-graphic src="somesrc.png" border-width=".1mm" border-style="solid" border-color="#444444"/>
- <fo:inline border-width=".1mm" border-style="solid" border-color="#444444"><fo:external-graphic src="somesrc.png"/></fo:inline>
- <fo:block border-width=".1mm" border-style="solid" border-color="#444444"><fo:external-graphic src="somesrc.png"/></fo:block> (This way a border is rendered but it doesn't get rendered tightly around the image)
So, how do I render a border tightly around an image?
Thanks in advance
/Marcus
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Borders around images
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Marcus Andersson wrote:
> So, how do I render a border tightly around an image?
You can't. There appears to be a combo of bugs preventing this.
Until now nobody gathered enough persistence, cluefulness and
karma to track them down (you are invited).
The usual workaround is to make the border a part of the image.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Borders around images
Posted by Marcus Andersson <ma...@home.se>.
It almost worked. The result now is that the border-top and border-bottom is rendered 1-2px above and below the image and it looks like the left and right borders are drawn as well but under the image (just 1px in). Strange...
/Marcus
----- Original Message -----
From: "Clay Leeds" <cl...@medata.com>
To: <fo...@xml.apache.org>
Sent: Thursday, April 03, 2003 8:56 PM
Subject: Re: Borders around images
> try adding margin="0pt" to fo:external-graphic and/or padding="0pt" to
> fo:block. That might work.
>
> Marcus Andersson wrote:
> > - <fo:block border-width=".1mm" border-style="solid" border-color="#444444"><fo:external-graphic src="somesrc.png"/></fo:block> (This way a border is rendered but it doesn't get rendered tightly around the image)
> >
> > So, how do I render a border tightly around an image?
>
>
> --
> Clay Leeds - cleeds@medata.com
> Web Developer - Medata, Inc. - http://www.medata.com
> PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: fop-user-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Borders around images
Posted by Clay Leeds <cl...@medata.com>.
try adding margin="0pt" to fo:external-graphic and/or padding="0pt" to
fo:block. That might work.
Marcus Andersson wrote:
> - <fo:block border-width=".1mm" border-style="solid" border-color="#444444"><fo:external-graphic src="somesrc.png"/></fo:block> (This way a border is rendered but it doesn't get rendered tightly around the image)
>
> So, how do I render a border tightly around an image?
--
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org