-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added PDFA output format in playground
- Loading branch information
Showing
12 changed files
with
102 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+52.6 KB
fj-doc-playground-quarkus/src/main/resources/font/TitilliumWeb-Bold.ttf
Binary file not shown.
Binary file added
BIN
+61.4 KB
fj-doc-playground-quarkus/src/main/resources/font/TitilliumWeb-BoldItalic.ttf
Binary file not shown.
Binary file added
BIN
+63.8 KB
fj-doc-playground-quarkus/src/main/resources/font/TitilliumWeb-Italic.ttf
Binary file not shown.
Binary file added
BIN
+56 KB
fj-doc-playground-quarkus/src/main/resources/font/TitilliumWeb-Regular.ttf
Binary file not shown.
22 changes: 22 additions & 0 deletions
22
fj-doc-playground-quarkus/src/main/resources/playground-config/fm-playground-doc-process.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?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> | ||
<docHandler id="PDFA" info="pdf" type="org.fugerit.java.doc.mod.fop.PdfFopTypeHandler"> | ||
<docHandlerCustomConfig charset="UTF-8" fop-config-mode="classloader" | ||
fop-config-classloader-path="playground-config/fop-config-pdfa.xml" pdf-a-mode="PDF/A-1a"/> | ||
</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="pdf-fop" info="pdf" type="org.fugerit.java.doc.mod.fop.PdfFopTypeHandler"/> | ||
<docHandler id="html-fm" info="html" type="org.fugerit.java.doc.freemarker.html.FreeMarkerHtmlTypeHandlerUTF8" /> | ||
<docHandler id="html-fragment-fm" info="fhtml" type="org.fugerit.java.doc.freemarker.html.FreeMarkerHtmlFragmentTypeHandlerUTF8" /> | ||
</docHandlerConfig> | ||
|
||
</freemarker-doc-process-config> |
55 changes: 55 additions & 0 deletions
55
fj-doc-playground-quarkus/src/main/resources/playground-config/fop-config-pdfa.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<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"> | ||
<!-- In this configuration the pdf-a-mode has been set via the freemarker-doc-process.xml | ||
<pdf-a-mode>PDF/A-1a</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> | ||
<!-- | ||
<auto-detect/> | ||
--> | ||
</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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters