Wiki source code of XMLToPDF
Last modified by Rabie Chettahi on 2022/06/13 13:18
Hide last authors
author | version | line-number | content |
---|---|---|---|
1.1 | 1 | {{box cssClass="floatinginfobox" title="**Contents**"}} | |
2 | {{toc/}} | ||
3 | {{/box}} | ||
4 | |||
1.5 | 5 | = Definition = | |
1.1 | 6 | ||
11.4 | 7 | 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), | |
1.1 | 8 | ||
1.5 | 9 | = Icon = | |
1.1 | 10 | ||
9.2 | 11 | [[image:1622623889352-242.png]] | |
1.1 | 12 | ||
4.1 | 13 | ||
1.5 | 14 | = Configuration = | |
9.2 | 15 | ||
12.2 | 16 | Generally the XmlToPdf Connector is used with an XmlToXml to adjust the xsl-fo elements. | |
9.2 | 17 | ||
18 | [[image:1622624000830-921.png]] | ||
19 | |||
20 | |||
12.2 | 21 | After adding the xsl-fo to the XmlToXml connector we need to add an output file name in XmlToPdf connector | |
22 | |||
23 | [[image:1622629145450-762.png]] | ||
24 | |||
25 | |||
26 | |||
11.3 | 27 | = XSL-FO structure = | |
28 | |||
11.2 | 29 | [[image:1622627940452-633.png]] | |
9.2 | 30 | ||
11.2 | 31 | ||
32 | **-"fo:root" : **Mandatory element for the FO-xsl | ||
33 | |||
34 | -**"fo:layout-master-set" : **for page information like height and width | ||
35 | |||
18.1 | 36 | -**"fo:page-sequence" : **the content of the pdf page | |
11.2 | 37 | ||
38 | -**"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") | ||
39 | |||
18.1 | 40 | -**"fo:flow" : **the Dynamic content of the pdf pages. | |
11.2 | 41 | ||
10.2 | 42 | ||
18.1 | 43 | = Example = | |
10.2 | 44 | ||
18.1 | 45 | Please find in the attachment the xml fo (Order_FO_for_PDF.xml) to generate this following pdf: | |
10.2 | 46 | ||
15.2 | 47 | [[image:1622629719334-533.png]] | |
11.3 | 48 | ||
15.2 | 49 | ||
10.2 | 50 |