DITA - PDF - ANTENNA HOUSE
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 46
- Joined: Mon Aug 22, 2011 3:53 pm
DITA - PDF - ANTENNA HOUSE
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
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
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA - PDF - ANTENNA HOUSE
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
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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 46
- Joined: Mon Aug 22, 2011 3:53 pm
Re: DITA - PDF - ANTENNA HOUSE
Hi Radu,
Thank you for your response.
I made a test file with parsing fo with antenna house: it is ok
But when i use oXygen / Dita OT / Antenna House i obtain :
In stylesheet i used :
In FO file i not found "Merck Sans Serif Pro"
I don't understand why result is with problem
Thank you
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>
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'.
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>
I don't understand why result is with problem
Thank you
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA - PDF - ANTENNA HOUSE
Hi,
Exactly. The link I gave you in the previous reply:
http://www.oxygenxml.com/doc/ug-oxygen/ ... tails.html
said:
and then in the font-mappings.xml you will have to map this alias name to a real physical font name with something like:
Regards,
Radu
Exactly. The link I gave you in the previous reply:
http://www.oxygenxml.com/doc/ug-oxygen/ ... tails.html
said:
So what you are defining in the XSLT script is a logical font name, you can use for example: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.
Code: Select all
<xsl:attribute name="font-family">MERCK_ALIAS</xsl:attribute>
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>
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 46
- Joined: Mon Aug 22, 2011 3:53 pm
Re: DITA - PDF - ANTENNA HOUSE
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:
If you have idea ?
Thank you
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'.
Thank you
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: DITA - PDF - ANTENNA HOUSE
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
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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service