Installing Antenna House Formatter on Componize for Alfresco

The Antenna House AMP provided by Componize can be used with any supported version of Antenna House Formatter.

  1. Install the Antenna House Formatter software by following the installation instructions in the Antenna House Formatter documentation.
  2. Install the componize-alfresco-ah-formatter-2.2.1.amp in your Alfresco WAR file.
  3. The Antenna House lib/XfoJavaCtl.jar JAR file needs to be on your classpath.
    • Either copy the lib/XfoJavaCtl.jar JAR file from your Antenna House installation folder to your $TOMCAT_HOME/shared/lib/ folder.
    • Or, if you are building your WAR file with Maven, include the following dependency:
      <dependency>
        <groupId>jp.co.antenna</groupId>
        <artifactId>ah-formatter</artifactId>
        <version>7.0-MR1</version>
      </dependency>
      Note: The version must correspond to the version of Antenna House you are using.
  4. Define the following Antenna House environment variables so they are available to your running Tomcat instance. The list can be found in the run.sh or run.bat file in your Antenna House installation directory.
    AHF70_64_HOME="<INSTALLDIR>"
    export AHF70_64_HOME
    
    AHF70_64_LIB_FOLDER=${AHF70_64_HOME}/lib
    AHF70_64_BIN_FOLDER=${AHF70_64_HOME}/bin
    AHF70_64_ETC_FOLDER=${AHF70_64_HOME}/etc
    
    LD_LIBRARY_PATH=${AHF70_64_LIB_FOLDER}:${LD_LIBRARY_PATH}
    export LD_LIBRARY_PATH
    
    AHF70_64_LIC_PATH=${AHF70_64_ETC_FOLDER}
    export AHF70_64_LIC_PATH
    
    AHF70_64_HYPDIC_PATH=${AHF70_64_ETC_FOLDER}/hyphenation
    export AHF70_64_HYPDIC_PATH
    
    AHF70_64_DEFAULT_HTML_CSS=${AHF70_64_ETC_FOLDER}/html.css
    export AHF70_64_DEFAULT_HTML_CSS
    
    AHF70_64_FONT_CONFIGFILE=${AHF70_64_ETC_FOLDER}/font-config.xml
    export AHF70_64_FONT_CONFIGFILE
    
    #AHF70_64_BROKENIMG=${AHF70_64_HOME}/samples/Broken.png
    #export AHF70_64_BROKENIMG
    Note: Replace <INSTALLDIR> with the path to your Antenna House installation directory.
The Antenna House Formatter is installed on Componize for Alfresco.