Re: [XSL-FO] Blocks with rounded corners
- pmdgexinc wrote:
> Hi,Barring a proprietary extension (which would actually be pretty easy to
> I was wondering if there's any way to create a block with a border
> that has rounded corners. I searched the archives and did find
> something about using an svg image but I need to dynamically size the
> box containing the text. Any help would be appreciated.
implement, at least for PostScript/PDF output), you must use graphics. I
believe all of XSL Formatter, XEP, and FOP will support using either
inline SVG or external EPS graphics for this. XSL Formatter also
supports using inline EPS graphics (which I requested for exactly this
By using a block container and scaling on the graphic, you should be
able to have the rounded-corner graphic scale. The only fly may be that
you may not want the radius of the corners to scale linearly with the
size of the block.
Here is the EPS code needed to create a black rounded box. To make it an
unfilled box, delete "fill" line.
--- cut --
%%BoundingBox: 0 0 43 43
%%Creator: W. Eliot Kimber
%%Title: Black rounded box
%%CreationDate: 10 Feb 2003
%%Page: 1 1
0 5 moveto
0 43 43 43 5 arct
43 43 43 0 5 arct
43 0 0 0 5 arct
0 0 0 43 5 arct
--- cut ---
W. Eliot Kimber, eliot@...
Consultant, ISOGEN International
1016 La Posada Dr., Suite 240
Austin, TX 78752 Phone: 512.656.4139