- This plugin enables any Forrest page to be output as a PDF document. + This plugin (hereafter just called the PDF plugin) enables any + Forrest page to be output as a PDF document.
- To use it simply request a page with the pdf extension
+ To use it simply request a page with the pdf extension.
The PDF plugin can be configured in several ways:
+ +Each of these points will be covered in separate sections below.
+The font family can be specifed in different steps of granularity. As + of version 0.4 of the PDF plugin, all of the configuration can be done + on a per project basis. There is no need to touch the plugin itself, as + it used to be.
+ +If you want to change the actual font family, not only where to use
+ the generic serif, sans-serif and
+ monospace families, then you also need to take these
+ preparatory steps:
$PROJECT_HOME/src/documentation/resources/fonts (you
+ may have to create the fonts folder).&pdf-config-file; in the project entity file. The
+ file is located at:
+ $PROJECT_HOME/src/documentation/resources/schema/symbols-project-v10.ent.
+ The result should look something like:foo on a typical
+ MacOS X system - adapt to your local OS as needed, but the path
+ needs to be absolute)forrest.properties.xml file, as described below.For the easiest type of changing the font family, add the following
+ lines to your forrest.properties.xml file:
and replace the default values above with your preferred font
+ family, e.g. DejaVuSans, etc. Using these properties, you
+ will change the font family of whole classes of text types at once. If
+ you need proper i18n support for your language (more below) in the pdf
+ files, this is usually the easiest way to go - just replace the
+ generic families with your chosen font families.
If you need to override or specify the font family for a certain
+ text type, add one or more of the following properties to your
+ forrest.properties.xml file:
The given values are defaults, and should be replaced with what you
+ want. If you want, you can further specify the font family for
+ variants of the
+ output.pdf.fontFamily.headerFooterFontFamily property
+ using the following properties instead:
It is possible to do further customisations of the pdf rendering by + editing the stylesheets found in ...
+
+ Presentation changes like page size, copyright notes, etc. are presently
+ specified in the skinconfig.xml file. See separate documentation for
+ further info.
+
For some languages, the default font families (serif,
+ sans-serif, monospace) do not render all
+ characters, giving squares, question marks or nothing instead in the
+ rendered pdf document. This is known to be an issue with CJK
+ languages, as well as with lesser used languages such as Sámi. If this
+ is the case for your language(s), please follow the steps above to
+ configure the pdf plugin to use a font family known to contain all
+ characters needed. For many alphabetic languages, the free and open
+ source DejaVu
+ font family nowadays has quite good coverage.
[TO BE WRITTEN]
+