HI Hussain,


Thanks :)



Is the -c option correct to point to the fop.config file? When I run this 
command line:



ditac -t "C:\mosaic\documentation_DITA\Common\fo_custom.xsl" -foconverter FOP 
pdf "C:\fop\fop-1.1-bin\fop-1.1\fop.bat" -c 
"C:\Users\Mike.Dodds\AppData\Roaming\XMLmind\XMLEditor5\fop\fop.conf" -q -r -fo 
"%I" -pdf "%O" out\ConfiguringYourmosaicSite.pdf 
C:\mosaic\documentation_DITA\Product\mosaic\bm_configyoursite.ditamap



I get an error relating to the -c option, which ditac expects to be a chunking 
mode:





C:\ditac\ditac-2_5_0\ditac-2_5_0\bin>ditac -t 
"C:\mosaic\documentation_DITA\Common\fo_custom.xsl" -foconverter FOP pdf 
"C:\fop\fop-1.1-bin\fop-1.1\fop.bat" -c 
"C:\Users\Mike.Dodds\AppData\Roaming\XMLmind\XMLEditor5\fop\fop.conf" -q -r -fo 
"%I" -pdf "%O" out\ConfiguringYourmosaicSite.pdf 
C:\mosaic\documentation_DITA\Product\mosaic\bm_configyoursite.ditamap



ditac: ERROR: 
"C:\Users\Mike.Dodds\AppData\Roaming\XMLmind\XMLEditor5\fop\fop.conf", unknown 
chunk mode; should be one of: none single auto



Cheers



Mike





-----Original Message-----
From: Hussein Shafie [mailto:huss...@xmlmind.com]
Sent: 07 January 2014 18:41
To: Mike Dodds
Cc: 'xmleditor-support@xmlmind.com'; ditac-supp...@xmlmind.com
Subject: Re: Using ditac rather than XMLmind XML Editor to convert DITA 
documents (WAS: Image in the header or footer of the PDF generated out of a 
DITA document)



On 01/07/2014 06:00 PM, Mike Dodds wrote:

>

> Is there a way to run the ditac  command line utility from the xmlmind

> installation and so use the custom_fo.xsl I've created in XML Mind and

> embed the Calibri font I specified in XMLMind



Yes.







>

> I've installed ditac separately and also fop, but I had to change the

> custom_fo.xsl to <xsl:import href="ditac-xsl:fo/fo.xsl"/>



This change is indeed required if you prefer to use ditac.







> and the calibri font is not embedded in the pdf, and is not used as a result.



That's normal. You just need to point FOP to the FOP configuration file 
automatically created by XMLmind XML Editor.



This FOP configuration file is found in:



XXE_user_preferences_dir\fop\fop.conf



where XXE_user_preferences_dir is:



     * $HOME/.xxe5/ on Linux.

     * $HOME/Library/Application Support/XMLmind/XMLEditor5/ on the Mac.

     * %APPDATA%\XMLmind\XMLEditor5\ on Windows XP, Vista, 7 and 8.



       Example: C:\Documents and Settings\john\Application 
Data\XMLmind\XMLEditor5\ on Windows XP.

C:\Users\john\AppData\Roaming\XMLmind\XMLEditor5\ on Windows Vista, 7 and 8.



       (If you cannot see the "Application Data" directory using Microsoft 
Windows File Manager, turn on Tools>Folder Options>View>File and Folders>Show 
hidden files and folders.)









Pointing FOP to the FOP configuration file automatically created by XMLmind XML 
Editor is done as follows:



Normally ditac requires you to specify the FOP command-line you want to use by 
the means of the ``high-level'' "-fop" command-line option.



Instead of using the -fop command-line option, please use the lower-level 
"-foconverter" command-line option as follows:



-foconverter FOP pdf "FOP_install_dir\fop.bat" -c 
"XXE_user_preferences_dir\fop\fop.conf" -q -r -fo "%I" -pdf "%O"









References:



*

http://www.xmlmind.com/ditac/_distrib/doc/manual/commandLine.html#commandLine__option-fop



*

http://www.xmlmind.com/ditac/_distrib/doc/manual/commandLine.html#commandLine__option-foconverter



* http://xmlgraphics.apache.org/fop/1.1/running.html#standalone-start









>

> If I use ditac, does that mean I can't use XMLMInd to do the XSL 
> customisation?

>



No, you can use XMLmind XML Editor to do the XSL customization. (Here I

suppose that you are talking about the XMLmind XSL Customizer companion

application included in XMLmind XML Editor. See

http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xslcustom.Customizer.html)



But after you are done, you'll have to change by hand:



<xsl:import href="xxe-config:dita/xsl/fo/fo.xsl"/>



to:



<xsl:import href="ditac-xsl:fo/fo.xsl"/>



which is somewhat tedious.









****************************************************************



If you want to avoid all these troubles, why not use convertdoc?



Convertdoc is a command-line tool just like ditac, but unlike ditac,

it's basically XMLmind XML Editor without a GUI!



Therefore there is nothing whatsoever to change in your setup if you

prefer to convert your DITA documents using a command-line tool rather

than using a GUI.



More information in:



http://www.xmlmind.com/xmleditor/_distrib/doc/commands/convertdoc.html



****************************************************************



















++++ Message Scanning REF:142-AVS2-1389120091 ++++
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to