Page 1 of 1
DITA - PDF - ANTENNA HOUSE
Posted: Fri Aug 23, 2013 3:01 pm
by ESTRADE
Hello,
I just install a font on my computer. I use this font in a style sheet. I use Antenna House to generate the PDF. Antenna House displays WARNING and the police is not taken into account.
If I test out oXygen and DITA OT using a 'fo' file (using the policy) and Antenna House it works.
Thank you for help
Bonjour,
Je viens d'installer une police sur mon poste. J'utilise cette police dans une feuille de style. J'utilise Antenna House pour générer le PDF. Antenna House affiche des WARNING et la police n'est pas prise en compte.
Par contre, si je fais un test hors oXygen et DITA OT en utilisant un fichier fo (faisant appel à cette police) et Antenna House ça fonctionne.
Merci pour l'aide
Re: DITA - PDF - ANTENNA HOUSE
Posted: Fri Aug 23, 2013 4:33 pm
by Radu
Hi,
If you edit the transformation scenario you are using you can set the
clean.temp parameter to
no and the
retain.topic.fo parameter to yes. Run the transformation, go to the temporary directory of the transformation, open the topic.fo file and you can check if the proper
font-family is used in it.
If the proper font-family is not used in the topic.fo, here's a small topic which explains how font mapping works with the DITA OT PDF transformation:
http://www.oxygenxml.com/doc/ug-oxygen/ ... tails.html
Regards,
Radu
Re: DITA - PDF - ANTENNA HOUSE
Posted: Mon Aug 26, 2013 9:37 am
by ESTRADE
Hi Radu,
Thank you for your response.
I made a test file with parsing fo with antenna house: it is ok
Code: Select all
<?xml version="1.0" encoding="UTF-16"?>
<fo:root font-size="12pt" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:axf="http://www.antennahouse.com/names/XSL/Extensions" xmlns:m="http://www.w3.org/1998/Math/MathML">
<fo:layout-master-set>
<fo:simple-page-master page-width="8.5in" page-height="11in" master-name="main">
<fo:region-body region-name="body" margin-top="1in" margin-bottom="1in" margin-left=".75in" margin-right=".75in" />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="main">
<fo:flow flow-name="body">
<fo:block font-family="Merck Sans Serif Pro">this is a test of font Merck Sans Serif Pro</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
But when i use oXygen / Dita OT / Antenna House i obtain :
Code: Select all
[xslt] Loading stylesheet D:\produits\Oxygen XML Editor 14.2\frameworks\dita\DITA-OT\plugins\org.dita.pdf2\xsl\fo\i18n-postprocess.xsl
[xslt] [PDFX008W][WARN]: Font definition not found for the logical name or alias 'Merck Sans Serif Pro'.
[xslt] [PDFX008W][WARN]: Font definition not found for the logical name or alias 'Merck Sans Serif Pro'.
[xslt] [PDFX008W][WARN]: Font definition not found for the logical name or alias 'Merck Sans Serif Pro'.
In stylesheet i used :
Code: Select all
<xsl:attribute-set name="__frontmatter__title" use-attribute-sets="common.title">
<xsl:attribute name="space-before">50mm</xsl:attribute>
<xsl:attribute name="space-before.conditionality">retain</xsl:attribute>
<xsl:attribute name="margin-left">10mm</xsl:attribute>
<xsl:attribute name="font-size">22pt</xsl:attribute>
<!-- Dark Blue -->
<xsl:attribute name="color">#003399</xsl:attribute>
<xsl:attribute name="font-family">Merck Sans Serif Pro</xsl:attribute>
<xsl:attribute name="font-weight">bold</xsl:attribute>
<xsl:attribute name="line-height">140%</xsl:attribute>
</xsl:attribute-set>
In FO file i not found "Merck Sans Serif Pro"
I don't understand why result is with problem
Thank you
Re: DITA - PDF - ANTENNA HOUSE
Posted: Mon Aug 26, 2013 11:17 am
by Radu
Hi,
Exactly. The link I gave you in the previous reply:
http://www.oxygenxml.com/doc/ug-oxygen/ ... tails.html
said:
font-mappings.xml maps logical fonts used in the XSLT stylesheets to physical fonts which will be used by the FO processor to generate the PDF output.
So what you are defining in the XSLT script is a logical font name, you can use for example:
Code: Select all
<xsl:attribute name="font-family">MERCK_ALIAS</xsl:attribute>
and then in the
font-mappings.xml you will have to map this alias name to a real physical font name with something like:
Code: Select all
...
<alias name="MERCK_ALIAS">MERCK</alias>
....
<logical-font name="MERCK">
<physical-font char-set="default">
<font-face>Merck Sans Serif Pro</font-face>
</physical-font>
............
</logical-font>
Regards,
Radu
Re: DITA - PDF - ANTENNA HOUSE
Posted: Mon Aug 26, 2013 2:42 pm
by ESTRADE
Radu,
Now following your advice is OK.
The problem I have is the following:
I use ALFRESCO / Componize / OXYGEN
When I use the customization (which works out to Alfresco) I have the error:
Code: Select all
classpath:/com/componize/dita-ot/1.7.5/plugins/org.dita.pdf2/xsl/fo/i18n-postprocess.xsl
[PDFX008W][WARN]: Font definition not found for the logical name or alias 'MERCK_ALIAS'.
[PDFX008W][WARN]: Font definition not found for the logical name or alias 'MERCK_ALIAS'.
[PDFX008W][WARN]: Font definition not found for the logical name or alias 'MERCK_ALIAS'.
If you have idea ?
Thank you
Re: DITA - PDF - ANTENNA HOUSE
Posted: Mon Aug 26, 2013 3:14 pm
by Radu
Hi,
The error probably means that the font-mappings.xml used in Alfresco's own used DITA OT installation does not contain a mapping for MERCK_ALIAS. So you probably also need to make modifications to Componize's used DITA OT resources.
Regards,
Radu
Re: DITA - PDF - ANTENNA HOUSE
Posted: Wed Aug 28, 2013 10:11 am
by ESTRADE
Thank you