Dear Wiki user, You have subscribed to a wiki page or wiki category on "Cocoon Wiki" for change notification.
The following page has been changed by MichaelWirz: http://wiki.apache.org/cocoon/AntennahouseSerializer ------------------------------------------------------------------------------ PDF creation out of a cocoon pipline is a powerful and easy way to convert your html pages into printable form. Standard cocoon embeds fop using the FOPSerializer. When speed comes into account one might be interested in alternatives to fop. There are differnet commercial xml-fo-renderers available. XEP comes with a cocoon serializer, Antennahouse Formatter does not. - In the scenario (cocoon 1.8) I am currently working with we use Antennahouse by writing documents to harddisc, calling the commandline script and loading the pdf from harddisc. + In the scenario (cocoon 1.8) I am currently working with we use Antennahouse in the following way: write documents to harddisc, call the commandline script and then load the pdf from harddisc. While migrating to cocoon 2.1 I rendered this scheme to the serializer-notation, i.e. streaming the xml into the serializer and a pdf out of it. I did not get any JAVA-API or the like - for Antennahouse so the Serializer relies on a valid Antennahouse installation and the shell-script. + from Antennahouse so the Serializer relies on the shell-script and a valid Antennahouse installation. - The given solution will work with any serialization process that is able to get its input from stdin and stream its output to stdout. + The given solution will work with any (other) serialization process that is able to get its input from stdin and stream its output to stdout. - You can use it like this: + You use it like this: Serializer definition (the shell command is given as cmd-tag inside the defintion): @@ -28, +28 @@ </map:match> }}} - Serializer code is attahced to this page attachment:AntennaHouseSerializer.java + The Serializer code is here: attachment:AntennaHouseSerializer.java - The code does not include any licensed code from the Antennahouse Inc. but you will need a valid license to test or use the Serializer. + The code does not include any licensed code from the Antennahouse Inc. but you will have to have a valid license to test or use the Serializer. I hope to hear from you if you like the idea, how you like the code and whether it works for you or not. Concerning speed we have to take into account that with this shell script based version, parsing the xml-fo is necessary since no sax stream but the actual xml byte stream has to be piped into the serialization process. Also there are buffers involved.
