Hide last authors
Outhman Moustaghfir 10.1 1
Outhman Moustaghfir 1.2 2
Outhman Moustaghfir 5.2 3 = Introduction =
Outhman Moustaghfir 1.2 4
Outhman Moustaghfir 5.2 5 This document aims to give a global view on how to create a FacturX, a PDF-based format for electronic invoices, by using the XMLToFacturX connector.
Outhman Moustaghfir 1.2 6
Outhman Moustaghfir 5.2 7 = Parameters =
Outhman Moustaghfir 1.2 8
9 XMLToFacturX requires 3 parameters :
10
11 * **Output FileName** : the folder and the name of the output FacturX, eg: '/out/facturX.pdf' , '/work/newFacturX.pdf' ... 
Outhman Moustaghfir 11.1 12 ** __//NB//:__ putting the output FacturX in the "out" directory, allows to show and download from the exploitation page.
Outhman Moustaghfir 1.2 13 * **Input Charset**: the charset used for the input file. set by default to UTF-8.
14 * **Output Charset: **the charset used for the output file. set by default to UTF-8.
15
16 = Use case =
17
Outhman Moustaghfir 6.2 18 To use the XMLToFacturX correctly, it must be preceded by a gateway (__**inclusive or parallel**__) that links it to another 2, and only 2 connectors, one generates an XML file structure, and the other sends its invoice in PDF format, and that is to ensure having both files before triggering XMLToFacturX connector.
Outhman Moustaghfir 1.2 19
Outhman Moustaghfir 2.1 20 let's take a simple example to understand the functionality of the connector :
21
Outhman Moustaghfir 6.2 22 [[image:2022-03-14_15h45_38.png||height="250" width="571"]] [[image:2022-03-14_15h40_46.png||height="249" width="265"]]
Outhman Moustaghfir 2.1 23
24
Outhman Moustaghfir 6.7 25 Here, we have created a simple scenario that load 2 files using the **LoadFile **connector after starting the process with an AppEventListener :
Outhman Moustaghfir 2.1 26
Outhman Moustaghfir 6.5 27 * __LoadFile1__ loads an XML file named 'facturx.xml'.
28 * __LoadFile2__ loads a PDF File named 'Invoice.pdf'.
Outhman Moustaghfir 2.1 29
Outhman Moustaghfir 6.7 30 As already mentioned, the next connector must be a gateway, in this case, we have called an inclusive gateway. After loading both files successfully, the process can trigger the XMLToFacturX connector.
Outhman Moustaghfir 6.5 31
Outhman Moustaghfir 9.1 32 Now, we can observe the difference by opening the output file on __Adobe Acrobat Reader__, by just clicking on the paperclip symbol to see the embedded XML structure.
Outhman Moustaghfir 6.6 33
Outhman Moustaghfir 6.7 34
Outhman Moustaghfir 9.1 35 [[image:2022-03-14_16h17_40.png||height="436" width="930"]]
Outhman Moustaghfir 6.8 36
Outhman Moustaghfir 9.1 37
38
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian