Closed AndeeZee closed 3 years ago
Hello again! Or can you tell me please, how to add my enhancement request to a custom plugin, which extends it, so that a variable ends up in a target like this:
<target name="transform.fo2pdf.option.and.multivol" if="option.and.multivol">
<exec executable="${ahf.dir}/${ahf.cmd}" logerror="true" failonerror="true">
<arg value="-d"/>
<arg value="${prmInputFile}"/>
<arg value="-o"/>
<arg value="${prmOutputFile}"/>
<arg value="-p"/>
<arg value="@PDF"/>
<arg value="-extlevel"/>
<arg value="4"/>
<arg value="-i"/>
<arg value="${ahf.opt}"/>
<arg value="-multivol"/>
<env key="AHF70_64_FONT_CONFIGFILE" value="${ahf.font.config}"/>
</exec>
</target>
For now, I put everything in the base plugin (com.antennahouse.pdf5.ml), which is of course not the intention, but I'm lost in integrating it to the jp.acme-corporation.pdf.ml plugin, so that I can redefine these targets with the new parameter.
Any help is appreciated. Thank you, Andy
Thank you for your suggestion. I will ask my professional colleague whether is is possible to change font-folder per AH Formatter invoking.
I have analyzed how to include your requirement and found that changing font-config.xml per invoking is not general request. So I will implement this function by build file extension. Do you have any suggestions?
I've implemented build extension in the "test-font-config" branch. Could you test this function by installing attached extension plug-in?
com.antennahouse.pdf5.ml.font-config.change.zip
--ahf.font.config.file=[font-config.xml path]
.The default font-config.xml environment variable is "AHF70_64_FONT_CONFIGFILE". You can change by specifying --ah.font.config.env=[font-config.xml environment variable name]
If you have any questions, please do not hesitate to ask me.
Hello! Thank you very much for the super fast response and solution! I tested it in my environment and I can confirm, that this works. You can close this issue, once this is merged into the master. Thank you very much, Andy
Hello! When using Antenna House Formatter for different projects, I need to keep the fonts separate per project and transformation process. So it would be great to have an option to set AHF70_FONT_CONFIGFILE / AHF70_64_FONT_CONFIGFILE respectively. Maybe an additional commandline-parameter to the ahfcmd.exe would help to avoid "fiddling" around with different environment variables for different versions of formatter.
Thank you, Andy