WSO2 ESB is an open source Enterprise Service Bus that enables interoperability among various heterogeneous systems and business applications.
PDF Mediator is a custom WSO2 ESB mediator for exporting payload to PDF file. First mediator converts XML payload into HTML (document type HTML 5) using given XSL and CSS file and then it exports the result to PDF file.
Copy the wso2-esb-pdf-mediator-x.y.jar
to $WSO2_ESB_HOME/repository/components/dropins/
.
Mediator can be used as other WSO2 ESB mediator.
<pdf>
<pdfFilePath (value="literal" | expression="xpath")/>
<cssFilePath (value="literal" | expression="xpath")/>
<xslFilePath (value="literal" | expression="xpath")/>
</pdf>
<pdf>
<pdfFilePath expression="concat('/path/to/save/to/dir/',$ctx:timestamp,'_export.pdf')"/>
<cssFilePath value="/path/to/file.css"/>
<xslFilePath value="/path/to/file.xsl"/>
</pdf>
- Oracle Java 7 or higher
- WSO2 ESB
- Pdf Mediator has been tested with WSO2 ESB versions 4.8.1
- All above + Maven 3.0.X
Copyright © 2016 Mystes Oy. Licensed under the Apache 2.0 License.