maxwell at umiacs.umd.edu wrote: > I think I figured out at least part of the problem with running the > command-line version of the XML-to-PDF converter (and you can delete my > previous query). Part of my confusion was not realizing that the -s > parameters come *after* the two unlabeled parameters (the one that tells > what conversion command to use, and the input filename). > > So I've advanced to the following command line (wrapped by email): > > convertdoc.bat" -v -d -p pdf pdf -p "/book toc" 1 docb.toPS > TestCase.xml -s pdf
--> Here I assume that you are using the latest version of XXE and the plug-in for FOP 0.93. --> I don't see how the above command could work. See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/docbook_to_pdf.html Please try (what follows must be typed as a single line, without any carriage returns): convertdoc.bat docb.toPSFile TestCase.xml -s pdf -s "|pdf" -s "/book toc" -s 1 -u TestCase.pdf The -s and -u arguments correspond to the %0, %1, %2, %3 parameters expected by the docb.toPSFile macro (docb.toPS is just a helper used by docb.toPSFile). You cannot guess which processing command to use and which arguments you need to pass to it. You really need to *read* and *understand* XXE_install_dir/addon/config/docbook/xslMenu.incl for that. > I'm still not getting control over the fonts, and a table is overflowing > the available area. The latter problem does not happen when I run this > from XMLmind, but at least I'm making progress. I don't see how. Basically, convertdoc is XXE without a GUI. (All our documentation is generated by convertdoc + the Batik, Jimi, XFC and RenderX XEP plug-ins.) > Any pointers on the font issue will be appreciated. --> Your question is absolutely not related to XXE, to convertdoc or to XFC. Your question is about FOP. --> You probably need to write a FOP configuration file. I cannot help you in doing that. See http://xmlgraphics.apache.org/fop/0.93/configuration.html and http://xmlgraphics.apache.org/fop/0.93/fonts.html (looks scary!) After that, you need to make XXE (and convertdoc) use this configuration. Let's say your FOP configuration file is C:\Temp\fop.conf. In order to make XXE use this file: * Quick and dirty method: Edit XXE_install_dir/addon/config/docbook/xslMenu.incl and change: --- <processFO processor="FOP" file="__doc.fo" to="__doc.%0"> <parameter name="renderer">%0</parameter> <parameter name="strict-validation">false</parameter> <parameterGroup name="docb.toPS.FOPParameters" /> </processFO> --- to: --- <processFO processor="FOP" file="__doc.fo" to="__doc.%0"> <parameter name="renderer">%0</parameter> <parameter name="strict-validation">false</parameter> <parameter "configuration">C:\Temp\fop.conf</parameter> <parameterGroup name="docb.toPS.FOPParameters" /> </processFO> --- (Note the absolute filename -- no relative URLs here!) * OR Clean method: Create a customize.xxe anywhere inside XXE_user_preferences_dir/addon/ (unless you already have such file) then add to it: --- <parameterGroup name="docb.toPS.FOPParameters"> <parameter "configuration">C:\Temp\fop.conf</parameter> </parameterGroup> --- --- PS: Why don't you give RenderX XEP -- http://www.renderx.com/tools/xep.html -- a try? May be it works out of the box. They have a free Personal Edition and I think the Academic Edition is free too.

