Tim B. wrote:
Now, in my configuration, I have set up a FOP.conf file as attached and
included that in a directory called fop in my top level server installation
directory. At specifies a series of fonts; the font files exist at the
specified locations.
In the .fo file - I specify fonts like this:
<fo:block border-bottom="0.5px solid black" font-family="Amiri"
margin-left=“1.75cm”>
But in the output PDF file, as attached, the font specification is being
ignored : and the I belief just a Times or Serif font is being used.
Do I have to tell xslsrv to look for my fop.conf file in some way? I cant find
any such information in any documentation.
Method #1: Restart your XMLmind XSL Server after passing the
XXE_FOP_CONFIG system property to the Java runtime used to run the server.
-DXXE_FOP_CONFIG=URL_OR_ABSOLUTE_FILE_PATH_OF_fop.conf
(examples:
-DXXE_FOP_CONFIG=file:/C:/xslsrv/extra/fop.conf
-DXXE_FOP_CONFIG=C:\xslsrv\extra\fop.conf
)
Method #2: Add parameter "configuration" pointing to your fop.conf to
the conversion specifications you use. This method lets you use
different fop.conf files depending on the conversion you execute. More
info in
https://www.xmlmind.com/foconverter/_distrib/xslutil/doc/help/fop_params.html
Example: convert XSL-FO to PDF using FOP:
---
<conversion name="foToPDF"
description="Convert to PDF using Apache FOP"
icon="icon:acroread"
category="XSL-FO"
categoryIcon="icon:magenta_xml_file"
outputExtension="pdf">
<processFO processor="FOP">
<parameter name="renderer">pdf</parameter>
<parameter name="strict-validation">false</parameter>
<parameter
name="configuration">file:/C:/xslsrv/extra/fop.conf</parameter>
</processFO>
</conversion>
---
See also "Apache™ FOP: Configuration"
https://xmlgraphics.apache.org/fop/2.3/configuration.html
We'll better document (and re-test!) these two methods in next version
of XMLmind XSL-FO Converter (v6.2).
--
XMLmind FO Converter Support List
[email protected]
https://www.xmlmind.com/mailman/listinfo/xfc-support