Passing the name of the Antenna House option settings file from DITA-OT to Antenna House

197 views
Skip to first unread message

Kristen James Eberlein

unread,
Jun 2, 2014, 4:57:24 PM6/2/14
to dita-o...@googlegroups.com
Does anyone know how to do this?

I have a client who has EPS files and has purchased Antenna House.
Antenna House will render vector images from the EPS files, IF it is
told to do so in its options setting file.

I can get a PDF with the EPS files properly rendered if use the Antenna
House CLI and specify the -i parameter.

Any hints on how to accomplish this in an Ant target? The DITA-OT PDF
plug-in for this customer?

Thanks in advance.
--
Best,
Kris

Kristen James Eberlein
Chair, OASIS DITA Technical Committee
Principal consultant, Eberlein Consulting
www.eberleinconsulting.com
+1 919 682-2290; kriseberlein (skype)

Radu Coravu

unread,
Jun 3, 2014, 2:24:19 AM6/3/14
to Kristen James Eberlein, dita-o...@googlegroups.com
Hi Kristen,

The main build file for processing PDFs with Antenna House:

DITA-OT/plugins/org.dita.pdf2/build_axf.xml
looks at the environmental variable "AXF_OPT":

    <condition property="has.axf.option">
      <and>
        <not><equals arg1="${env.AXF_OPT}" arg2=""/></not>
        <available file="${env.AXF_OPT}"/>
      </and>
    </condition>
to see if it should give the "-i" flag when running Antenna House:

  <target name="transform.fo2pdf.ah.hasoption" if="has.axf.option">
    <exec executable="${axf.cmd}" resultproperty="errCode" logerror="true">
      <arg value="-d"/>
      <arg value="${pdf2.temp.dir}/topic.fo"/>
      <arg value="-o"/>
      <arg value="${outputFile}"/>
      <arg value="-p"/>
      <arg value="${axf.formatter.output-format}"/>
      <arg value="-extlevel"/>
      <arg value="4"/>
      <arg value="-peb"/>
      <arg value="1"/>
      <arg value="-i"/>
      <arg value="${env.AXF_OPT}"/>
    </exec>
  </target>
So probably you need to set that variable in the process which starts 
DITA OT.


--
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kristen James Eberlein

unread,
Jun 3, 2014, 8:52:59 AM6/3/14
to Radu Coravu, dita-o...@googlegroups.com
Many thanks, Radu.

I added the following line to startcmd.bat:

set AXF_OPT=%DITA_DIR%AHFSettings(x64).xml

where AHFSettings(x64).xml is the name of the Antenna House options file, which I copied to the DITA-OT directory.

It didn't work. But adding the following to my Ant target did work:

<property name="env.AXF_OPT" location="${dita.dir}/AHFSettings(x64).xml"/>


Best,
Kris

Kristen James Eberlein
Chair, OASIS DITA Technical Committee
Principal consultant, Eberlein Consulting
www.eberleinconsulting.com
+1 919 682-2290; kriseberlein (skype)

To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-user...@googlegroups.com.

Radu Coravu

unread,
Jun 3, 2014, 8:58:21 AM6/3/14
to Kristen James Eberlein, dita-o...@googlegroups.com
Hi Kris,

Great.
Probably the AXF_OPT environmental variable set in the startcmd.bat was for some reason not inherited by the main DITA OT process.
And as the property was not set from the outside you could overwrite it inside the build.xml.
Reply all
Reply to author
Forward
0 new messages