2. Scenario - XMLToPDF 

Page / - last modified by Rabie Chettahi on 2022/06/13 13:18 

XMLToPDF 
last modified by Rabie Chettahi
on 2022/06/13 13:18

Table of Contents
Definition
Icon
Configuration
XSL-FO structure
Example

Contents
•	Definition
•	Icon
•	Configuration
•	XSL-FO structure
•	Example
Definition
XmlToPdf connector is to transform data from xml to pdf format, this connector has a specific xsl format called xsl-fo (eXtensible Stylesheet Language - Formatting Objects), 
Icon

Configuration
Generally the XmlToPdf Connector is used with an XmlToXml to adjust the xsl-fo elements. 

After adding the xsl-fo to the XmlToXml connector we need to add an output file name in XmlToPdf connector

XSL-FO structure

-"fo:root"  :  Mandatory element for the FO-xsl
-"fo:layout-master-set"  :  for page information like height and width
-"fo:page-sequence"  :   the content of the pdf page
-"fo:static-content"  : for a static content as like in the beginning ( flow-name="xsl-region-before" ) or the footer of the page (flow-name="xsl-region-after")
-"fo:flow" :   the Dynamic content of the pdf pages.
Example
Please find in the attachment the xml fo (Order_FO_for_PDF.xml) to generate this following pdf: