Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rounded corners in XSL-FO

Tags:

xsl-fo

Our client's request is to have tables in PDF with rounded corner. I only have Apache FOP processor at my disposal and it doesn't support the rounded corner attribute. It also doesn't support floats, so floating rounded images to left and to right cannot be done.

Do you have any suggestions on how to do this?

like image 495
Ariod Avatar asked Oct 16 '09 20:10

Ariod


1 Answers

You can create the table as a Scalable Vector Graphics(SVG) object, and include that as an external-image in your XSL-FO document. SVG supports rounded corners, and FOP supports SVG.

I believe you can also just create a rounded rectangle SVG and use that as a background to your content, and put the table in front of it. I think I did this once, but I cannot seem to locate the code...

like image 71
Spike Williams Avatar answered Oct 22 '22 01:10

Spike Williams