cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert XML to PDF in PI without using a custom module in the receiver channel?

Former Member
0 Kudos

Hi All,

I would like to ask if there is any way for PI to convert a source XML file to a PDF file when it is sent to the receiver without using a custom module in the receiver channel?

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

manoj_khavatkopp
Active Contributor
0 Kudos

Bryan,

Using iText Library in java mapping you can achieve this :

CODE - Create a PDF File via the iText Library - Process Integration - SCN Wiki

or You can use RFC lookup where you pass input as XML and the ABAP'er  can use this and convert into pdf and send back the response in Base64 xstring format , once u recive the RFC response convert it back to pdf and send it to target system.

Br,

Manoj

former_member190293
Active Contributor
0 Kudos

In Addition to Manoj's answer: since iText library must be licensed for use with closed-source applications, I could suggest Apache PDFBox.

Apache PDFBox | A Java PDF Library

Another option is to use Apache FOP:

XI: Generate PDF file out of file adapter | SCN

Regards, Evgeniy.