How to convert XML to PDF

Опубликовано: 14 Октябрь 2024
на канале: Figaf Aps
30,030
43

There is a workable solution for SAP CPI    • SAP CPI convert XML to PDF (Microserv...  

It is a common use case to convert an XML to PDF to display to users. I have in other projects used Apache FOP that will allow you to convert an XML to a PDF. The structure you will need to create the pdf document from XML is pretty complex. So it is probably a good idea to use an XSL(T) to transform the normal XML into a fo formatted XML. Then you want to run the fob to PDF either in a message mapping or better to use an adapter module for it.
You can read more about the object at
https://xmlgraphics.apache.org/fop/