Philippe Nobili wrote: > > We quoted "bug", as this is more a bad interaction between the way > pdfeTeX is called during document conversion (to PS) and FOP, than a > real bug. Maybe the information below can be useful for others. > > We have some legacy equations still stored in TeX files; during > conversion to PDF, this is what happens: > > 1) TeX file 'my.tex' is referenced as 'my.pdf' (%0 == pdf): > <resources match="(?:.+/)?(.+)\.tex" > copyTo="raw" referenceAs="%w/resources/$1.%0" /> > > 2) Then the TeX file is converted into pdf by pdfeTeX; this is because > the default order of formats is %0 png: > <convertImage from="raw" to="resources" format="%0 png" /> > > Unfortunately FOP fails to find a way to insert the PDF image ([FOP > ERROR] No ImagePreloader for PDF). I guess this problem does not occur > with XEP.
Thank you for reporting this problem. In fact, we knew about it. Yes, the process command works fine with XEP. It does not work with FOP due to a limitation or a bug of this XSL-FO processor. We hope that a future release of FOP will solve this problem. > To solve this issue, we add to make the following changes in > the above commands: > > 1) Reference tex resources as png images: > <resources match="(?:.+/)?(.+)\.tex" > copyTo="raw" referenceAs="%w/resources/$1.png"/> > 2) Reverse the order of priority: first PNG then PDF: > <convertImage from="raw" to="resources" format="png %0"/> You could as well specify: <convertImage from="raw" to="resources" format="png"/> because conversion from any image format to PNG will always work and thus, you'll never get %0=pdf or %0=ps images. That's a problem because we really want TeX equations to be converted to PDF or EPS, which are vector formats, and not to PNG which is a raster format. > > Maybe there is a more clever way to proceed, When using FOP, there is no better way to do it. > as we guess that the way is > was done would give better results when XEP is used ? There is currently no way to convert TeX to PNG when using FOP and TeX to PDF when using XEP. > We hope it helps in any case, >

