logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

XSL-FO stylesheets for PDF: msg#00046

Subject: XSL-FO stylesheets for PDF
I've been buried in tons of work lately so I haven't had much time to think about CoWiki. But I did complete some XSL-FO stylesheets for the XML documents that CoWiki stores, which I think came out very nicely.
 
I made a few small changes to one or two of the classes too, to be able to extract a complete xml document from CoWiki through http, which I will have to extract later at a convenient time. It's mostly using the XmlPrettyPrinter plugin to produce a "raw" XML document (through a parameter), and having a special "xml" parameter in the global command list.
 
The files are enclosed along with this mail. It's six files, three for A4 and three for letter format; one is "normal" text, one is with an additional header and the last including a cover page which can be adapted to the user's own need.
 
The procedure is quite simple, wget the document you're interested in, run it through Apache FOP or any similar software with the appropriate stylesheet, and bam! you've got a fully-formatted PDF. Don't know if it could be made to work server-side, but for clients it works great.
 
Incidentally, I haven't tested it yet with Apache FOP, just Altova Xml2Pdf. But the spec should be the same. Oh, and I have to fix support for tables! (Doh!) I haven't done that yet.
 
Let me know if you find it interesting.
 
regards
Mats Gefvert
Software Developer, Visionutveckling AB
 

Attachment: xsl-fo.zip
Description: xsl-fo.zip

<Prev in Thread] Current Thread [Next in Thread>