-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some slight modification to the example document.ftl template were needed to be PDF/A compliant : * added default font (loaded in fop-config-pdfa.xml) * removed doc-subject info * converted from para to h head-level=1
- Loading branch information
Showing
9 changed files
with
80 additions
and
3 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,53 @@ | ||
<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"> | ||
<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> | ||
<!-- | ||
<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