Is there a way to modify teh layout of the pdf as well ?
I don't think there is right now, I'll send this thread around internally and find out for sure though.
PDF layouts are defined in fo-template.xsl. There are three master pages that are defined in the layout, and all of them are set to 8.5x11in page size. You will have to change the master pages to match A4 page height and width.
The page-height and page-width properties can be specified in CSS units (in, cm, pt, mm), so, use the appropriate ones for A4. Keep in mind that all of the Clearspace layouts were designed to fit approximately on a 8.5x11in page, so changing page size of the template will change the layout of every pdf document generated by Clearspace.
thanks for your answer. Any idea where that I can find the fo-template.xsl file ?
If you have the source code, it is located at source/java/fo-template.xsl
You can also, unjar the clearspace.jar file and update the template in it.
To extract: jar -xf clearspace_version.jar fo-template.xsl
Modify the fo-template.xsl and then update the jar.
To update: jar -uf clearspace_version.jar fo-template.xsl