|
4 | 4 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
5 | 5 | xsi:schemaLocation="https://freemarkerdocprocess.fugerit.org https://www.fugerit.org/data/java/doc/xsd/freemarker-doc-process-1-0.xsd" > |
6 | 6 |
|
7 | | - <docHandlerConfig> |
8 | | - <docHandler id="PDFA" info="pdf" type="org.fugerit.java.doc.mod.fop.PdfFopTypeHandler"> |
9 | | - <docHandlerCustomConfig charset="UTF-8" fop-config-mode="classloader" |
10 | | - fop-config-classloader-path="playground-config/fop-config-pdfa.xml" pdf-a-mode="PDF/A-1a"/> |
| 7 | + <docHandlerConfig registerById="true"> |
| 8 | + <docHandler id="PDF/A-1a" info="pdf" type="org.fugerit.java.doc.mod.fop.PdfFopTypeHandler"> |
| 9 | + <docHandlerCustomConfig charset="UTF-8" fop-config-mode="inline" pdf-a-mode="PDF/A-1a"> |
| 10 | + <fop version="1.0"> |
| 11 | + <!-- Strict user configuration --> |
| 12 | + <strict-configuration>true</strict-configuration> |
| 13 | + <!-- Strict FO validation --> |
| 14 | + <strict-validation>true</strict-validation> |
| 15 | + <!-- Base URL for resolving relative URLs --> |
| 16 | + <base>.</base> |
| 17 | + <!-- Font Base URL for resolving relative font URLs --> |
| 18 | + <font-base>.</font-base> |
| 19 | + <!-- |
| 20 | + NOTE: for PDF/A format all fonts, even the basic ones, myst be fully embdedded. |
| 21 | + https://xmlgraphics.apache.org/fop/2.8/pdfa.htm |
| 22 | + --> |
| 23 | + <renderers> |
| 24 | + <renderer mime="application/pdf"> |
| 25 | + <!-- In this configuration the pdf-a-mode has been set via the freemarker-doc-process.xml |
| 26 | + <pdf-a-mode>PDF/A-1a</pdf-a-mode> |
| 27 | + <version>1.4</version> |
| 28 | + --> |
| 29 | + <fonts> |
| 30 | + <font embed-url="classpath://font/TitilliumWeb-Regular.ttf" embedding-mode="full"> |
| 31 | + <font-triplet name="TitilliumWeb" style="normal" weight="normal"/> |
| 32 | + </font> |
| 33 | + <font embed-url="classpath://font/TitilliumWeb-Bold.ttf" embedding-mode="full"> |
| 34 | + <font-triplet name="TitilliumWeb" style="normal" weight="bold"/> |
| 35 | + </font> |
| 36 | + <font embed-url="classpath://font/TitilliumWeb-Italic.ttf" embedding-mode="full"> |
| 37 | + <font-triplet name="TitilliumWeb" style="italic" weight="normal"/> |
| 38 | + </font> |
| 39 | + <font embed-url="classpath://font/TitilliumWeb-BoldItalic.ttf" embedding-mode="full"> |
| 40 | + <font-triplet name="TitilliumWeb" style="italic" weight="bold"/> |
| 41 | + </font> |
| 42 | + </fonts> |
| 43 | + </renderer> |
| 44 | + </renderers> |
| 45 | + <!-- Source resolution in dpi (dots/pixels per inch) for determining the size of pixels in SVG and bitmap images, default: 72dpi --> |
| 46 | + <source-resolution>72</source-resolution> |
| 47 | + <!-- Target resolution in dpi (dots/pixels per inch) for specifying the target resolution for generated bitmaps, default: 72dpi --> |
| 48 | + <target-resolution>72</target-resolution> |
| 49 | + <!-- default page-height and page-width, in case |
| 50 | + value is specified as auto --> |
| 51 | + <default-page-settings height="11in" width="8.26in"/> |
| 52 | + </fop> |
| 53 | + </docHandlerCustomConfig> |
11 | 54 | </docHandler> |
12 | | - <docHandler id="md-ext" info="md" type="org.fugerit.java.doc.base.typehandler.markdown.SimpleMarkdownExtTypeHandler" /> |
13 | | - <docHandler id="xml-doc" info="xml" type="org.fugerit.java.doc.base.config.DocTypeHandlerXMLUTF8" /> |
14 | | - <docHandler id="xls-poi" info="xls" type="org.fugerit.java.doc.mod.poi.XlsPoiTypeHandler" /> |
15 | | - <docHandler id="xlsx-poi" info="xlsx" type="org.fugerit.java.doc.mod.poi.XlsxPoiTypeHandler" /> |
16 | | - <docHandler id="fo-fop" info="fo" type="org.fugerit.java.doc.mod.fop.FreeMarkerFopTypeHandlerUTF8" /> |
17 | | - <docHandler id="pdf-fop" info="pdf" type="org.fugerit.java.doc.mod.fop.PdfFopTypeHandler"/> |
18 | | - <docHandler id="html-fm" info="html" type="org.fugerit.java.doc.freemarker.html.FreeMarkerHtmlTypeHandlerUTF8" /> |
19 | | - <docHandler id="html-fragment-fm" info="fhtml" type="org.fugerit.java.doc.freemarker.html.FreeMarkerHtmlFragmentTypeHandlerUTF8" /> |
| 55 | + <docHandler id="md" info="md" type="org.fugerit.java.doc.base.typehandler.markdown.SimpleMarkdownExtTypeHandlerNoCommentsUTF8" /> |
| 56 | + <docHandler id="xml" info="xml" type="org.fugerit.java.doc.base.config.DocTypeHandlerXMLUTF8" /> |
| 57 | + <docHandler id="xls" info="xls" type="org.fugerit.java.doc.mod.poi.XlsPoiTypeHandler" /> |
| 58 | + <docHandler id="xlsx" info="xlsx" type="org.fugerit.java.doc.mod.poi.XlsxPoiTypeHandler" /> |
| 59 | + <docHandler id="fo" info="fo" type="org.fugerit.java.doc.mod.fop.FreeMarkerFopTypeHandlerUTF8" /> |
| 60 | + <docHandler id="pdf" info="pdf" type="org.fugerit.java.doc.mod.fop.PdfFopTypeHandler"/> |
| 61 | + <docHandler id="html" info="html" type="org.fugerit.java.doc.freemarker.html.FreeMarkerHtmlFragmentTypeHandlerEscapeUTF8" /> |
| 62 | + <docHandler id="csv" info="csv" type="org.fugerit.java.doc.mod.opencsv.OpenCSVTypeHandlerUTF8" /> |
20 | 63 | </docHandlerConfig> |
21 | 64 |
|
22 | 65 | </freemarker-doc-process-config> |
0 commit comments