Skip to content

PDF Mediator is a custom WSO2 ESB mediator for exporting payload to PDF file.

License

Notifications You must be signed in to change notification settings

Unikie/wso2-esb-pdf-mediator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wso2-esb-pdf-mediator

Build status

What is WSO2 ESB?

WSO2 ESB is an open source Enterprise Service Bus that enables interoperability among various heterogeneous systems and business applications.

Features

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.

Usage

1. Install the mediator

Copy the wso2-esb-pdf-mediator-x.y.jar to $WSO2_ESB_HOME/repository/components/dropins/.

2. Use it

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>

Example

<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>

Technical Requirements

Usage

  • Oracle Java 7 or higher
  • WSO2 ESB
    • Pdf Mediator has been tested with WSO2 ESB versions 4.8.1

Development

  • All above + Maven 3.0.X

Contributors

Copyright © 2016 Mystes Oy. Licensed under the Apache 2.0 License.

About

PDF Mediator is a custom WSO2 ESB mediator for exporting payload to PDF file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published