Hello,

The included docx file has 3 images, the first one is a real WMF, the 2nd
one is a real EMF and the 3rd one is an EMF renamed as WMF.

My environment has the W2X_IMAGE_CONVERSIONS variable set to:

.emf.png.wmf.png /Applications/LibreOffice.app/Contents/MacOS/soffice
--headless --convert-to png --outdir %~po %i;+

adapting the example given in w2x docs:

.emf.svg soffice --headless --convert-to svg -–outdir %~po %i

to always produce PNG for both EMF and WMF.

However, if I use the (standard) servlet to convert the included docx file,
I end up with 3 images:

An SVG for the WMF
A  WMF for the EMF
A WMF for the EMF "disguised" as WMF

What I'd expect: 3 PNGs; or as a minimum, 2 PNGs and 1 WMF for the
"disguised" EMF.

Apparently the external conversion is not being attempted.

What am I missing?

Thanks in advance for your answers.

P.S. I'm trying to use an external converter to work-around the lack of
support for EMF conversion under Linux
P.S.2: In production the servlet will be deployed on the standard tomcat
8.5.x image from dockerhub, and I've already tried all sorts of
combinations for external conversion, always with the same results: 1 svg
and 2 wmf instead of 3 png or whatever I spec on W2X_IMAGE_CONVERSIONS

Best regards

-- 
Fabián Mandelbaum
IS Engineer

Attachment: test-wmf-emf.docx
Description: MS-Word 2007 document

--
XMLmind Word To XML Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/w2x-support

Reply via email to