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