Sweet, thanks. --- Danny Elfanbaum Technical Writer Asynchrony
-----Original Message----- From: Hussein Shafie [mailto:[email protected]] Sent: Thursday, November 28, 2013 2:35 AM To: danny.elfanbaum Cc: [email protected] Subject: Re: [ditac] Embedding fonts using FOP config files On 11/27/2013 10:32 PM, danny.elfanbaum wrote: > > I'm looking to embed some fonts into a PDF file using ditac, and the > standard way to do so in Apache FOP is to create a configuration file, > then tell the FOP to find it. I'm not sure how ditac makes use of the > FOP and as such am not sure how, where, or when to point the FOP to > the config file. ditac invokes FOP as a command-line tool. Therefore creating a configuration file by hand and then telling FOP where to find it should work fine. --> How ditac invokes FOP can be precisely specified using the "-foconverter" ditac command-line parameter (see http://www.xmlmind.com/ditac/_distrib/doc/manual/commandLine.html#commandLine__option-foconverter). There is also a simpler "-fop" ditac command-line parameter (see http://www.xmlmind.com/ditac/_distrib/doc/manual/commandLine.html#commandLine__option-fop), but it does not allow to pass extra options to FOP. That is: -fop C:\fop\fop.bat is equivalent to: -foconverter "C:\fop\fop.bat" -q -r -fo "%I" -pdf "%O" > If there is a better way to embed fonts, I'm open to that as well. Sure. Not better but much, much, easier. Our commercial products "XMLmind XSL Utility" http://www.xmlmind.com/foconverter/xsl_utility.html and "XMLmind XML Editor" http://www.xmlmind.com/xmleditor/ can generate the FOP configuration file for you and automatically use it behind the scene. Which fonts to embed when needed to are specified very simply using a dialog box. See attached screen shot. More information in http://www.xmlmind.com/foconverter/_distrib/doc/help/com.xmlmind.guiutil.PreferencesEditorDialog.html#fop_preferences --> In practice, this means that if you download the Evaluation Edition of "XMLmind XSL Utility", start it, then click "Preferences", select "XSL-FO Processor" > "FOP", you can use the dialog box to generate the FOP configuration file for you! You'll find the automatically generated FOP configuration file in <XFC_user_preferences_dir>/fop/fop.conf, where <XFC_user_preferences_dir> is: * $HOME/.xfc/ on Linux. * $HOME/Library/Application Support/XMLmind/FOConverter/ on the Mac. * %APPDATA%\XMLmind\FOConverter\ on Windows XP, Vista, 7, 8. Example: C:\Documents and Settings\john\Application Data\XMLmind\FOConverter\ on Windows XP. C:\Users\john\AppData\Roaming\XMLmind\FOConverter\ on Windows Vista, 7 and 8. -- XMLmind DITA Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/ditac-support

