-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfreemarker-doc-process.xml
113 lines (106 loc) · 6.17 KB
/
freemarker-doc-process.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" encoding="utf-8"?>
<freemarker-doc-process-config
xmlns="https://freemarkerdocprocess.fugerit.org"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://freemarkerdocprocess.fugerit.org https://www.fugerit.org/data/java/doc/xsd/freemarker-doc-process-1-0.xsd" >
<docHandlerConfig registerById="true">
<docHandler id="pdf-fop" info="pdf-fop" type="org.fugerit.java.doc.mod.fop.PdfFopTypeHandler">
<docHandlerCustomConfig charset="UTF-8" fop-config-mode="classloader" fop-config-classloader-path="fj-doc-demo-config/fop-config.xml" fop-suppress-events="1"/>
</docHandler>
<docHandler id="pdf-fop-pool" info="pdf-fop-pool" type="org.fugerit.java.doc.mod.fop.PdfFopTypeHandler">
<docHandlerCustomConfig charset="UTF-8" fop-config-mode="classloader" fop-config-classloader-path="fj-doc-demo-config/fop-config.xml" fop-suppress-events="1" fop-pool-min="20" fop-pool-max="40"/>
</docHandler>
<docHandler id="pdf-ua-fop" info="pdf" type="org.fugerit.java.doc.mod.fop.PdfFopTypeHandler" >
<docHandlerCustomConfig charset="UTF-8" fop-config-mode="classloader" fop-config-classloader-path="fj-doc-demo-config/fop-config-pdfua.xml" pdf-ua-mode="PDF/UA-1" fop-pool="20"/>
</docHandler>
<docHandler id="pdf-a-fop" info="pdf" type="org.fugerit.java.doc.mod.fop.PdfFopTypeHandler">
<docHandlerCustomConfig charset="UTF-8" fop-config-mode="inline" pdf-a-mode="PDF/A-1b" fop-pool="20">
<fop version="1.0">
<!-- Strict user configuration -->
<strict-configuration>true</strict-configuration>
<!-- Strict FO validation -->
<strict-validation>true</strict-validation>
<!-- Base URL for resolving relative URLs -->
<base>.</base>
<!-- Font Base URL for resolving relative font URLs -->
<font-base>.</font-base>
<!--
NOTE: for PDF/A format all fonts, even the basic ones, myst be fully embdedded.
https://xmlgraphics.apache.org/fop/2.8/pdfa.htm
-->
<renderers>
<renderer mime="application/pdf">
<!--
It seems setting both PDF/A and PDF/UA profile leads to this error on PDF/A validation :
"XMP property pdfuaid:part not defined in current schema."
Where PDF/UA validation succeds
<pdf-ua-mode>PDF/UA-1</pdf-ua-mode>
PDF/A checked with : https://avepdf.com/en/pdfa-validation ( and Adobe )
PDF/UA checked with : https://check.axes4.com/en/
-->
<pdf-a-mode>PDF/A-1b</pdf-a-mode>
<version>1.4</version>
<fonts>
<font embed-url="classpath://font/TitilliumWeb-Regular.ttf" embedding-mode="full">
<font-triplet name="TitilliumWeb" style="normal" weight="normal"/>
</font>
<font embed-url="classpath://font/TitilliumWeb-Bold.ttf" embedding-mode="full">
<font-triplet name="TitilliumWeb" style="normal" weight="bold"/>
</font>
<font embed-url="classpath://font/TitilliumWeb-Italic.ttf" embedding-mode="full">
<font-triplet name="TitilliumWeb" style="italic" weight="normal"/>
</font>
<font embed-url="classpath://font/TitilliumWeb-BoldItalic.ttf" embedding-mode="full">
<font-triplet name="TitilliumWeb" style="italic" weight="bold"/>
</font>
</fonts>
</renderer>
</renderers>
<!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi -->
<source-resolution>72</source-resolution>
<!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi -->
<target-resolution>72</target-resolution>
<!-- default page-height and page-width, in case
value is specified as auto -->
<default-page-settings height="11in" width="8.26in"/>
</fop>
</docHandlerCustomConfig>
</docHandler>
<docHandler id="md-ext" info="md" type="org.fugerit.java.doc.base.typehandler.markdown.SimpleMarkdownExtTypeHandler" />
<docHandler id="xml-doc" info="xml" type="org.fugerit.java.doc.base.config.DocTypeHandlerXMLUTF8" />
<docHandler id="xls-poi" info="xls" type="org.fugerit.java.doc.mod.poi.XlsPoiTypeHandler" />
<docHandler id="xlsx-poi" info="xlsx" type="org.fugerit.java.doc.mod.poi.XlsxPoiTypeHandler" />
<docHandler id="fo-fop" info="fo" type="org.fugerit.java.doc.mod.fop.FreeMarkerFopTypeHandlerUTF8" />
<docHandler id="html-fm" info="html" type="org.fugerit.java.doc.freemarker.html.FreeMarkerHtmlTypeHandlerEscapeUTF8" />
<docHandler id="html-fragment-fm" info="fhtml" type="org.fugerit.java.doc.freemarker.html.FreeMarkerHtmlFragmentTypeHandlerEscapeUTF8" />
<docHandler id="csv-opencsv" info="csv" type="org.fugerit.java.doc.mod.opencsv.OpenCSVTypeHandler"/>
<!-- open pdf / rtf -->
<docHandler id="openpdf" info="openpdf" type="org.fugerit.java.doc.mod.openpdf.ext.PdfTypeHandler">
<docHandlerCustomConfig charset="UTF-8">
<font name="TitilliumWeb" path="font/TitilliumWeb-Regular.ttf"/>
</docHandlerCustomConfig>
</docHandler>
<docHandler id="openrtf" info="openrtf" type="org.fugerit.java.doc.mod.openrtf.ext.RtfTypeHandler">
<docHandlerCustomConfig charset="UTF-8">
</docHandlerCustomConfig>
</docHandler>
</docHandlerConfig>
<docChain id="shared">
<chainStep stepType="config">
<config id="FJ_DOC_QUARKUS_DEMO" version="2.3.31" class="org.fugerit.java.demo.facade.DocFacade" path="/fj-doc-demo-config/template/"/>
</chainStep>
<chainStep stepType="function">
<function name="messageFormat" value="org.fugerit.java.doc.freemarker.fun.SimpleMessageFun"/>
<function name="sumLong" value="org.fugerit.java.doc.freemarker.fun.SimpleSumLongFun"/>
</chainStep>
</docChain>
<docChain id="simple-test-01" parent="shared">
<chainStep stepType="complex" template-path="${chainId}.ftl"/>
</docChain>
<docChain id="simple-test-02" parent="shared">
<chainStep stepType="complex" template-path="${chainId}.ftl"/>
</docChain>
<docChain id="simple-test-03" parent="shared">
<chainStep stepType="complex" template-path="${chainId}.ftl"/>
</docChain>
</freemarker-doc-process-config>