Convert EMF to PNG

Post here those questions, bug reports and suggestions for SoftMaker Office 2021 for Linux that do not fit in any of the application-specific subforums.
Post Reply
ssh
Posts: 1
Joined: Mon Jan 25, 2021 6:38 pm

Convert EMF to PNG

Post by ssh » Mon Jan 25, 2021 6:52 pm

Hi all,

I have started using Softmaker Office and I really like the compatibility to MS Office files, since I collaborate a lot with people using MS Office. The biggest problem I have run into so far is that EMF files are not displayed in SMO. However, since SMO now supports PNG files, I thought it might be possible to convert the EMF files into PNG with a script or so.

Since other programs on Linux provide EMF support, we should be able to convert the embedded files using a command like

Code: Select all

libreoffice --headless --convert-to png *.emf
or

Code: Select all

inkscape -e file.png source.emf
Does anybody know, if it would be possible to change the image links in the document xml files to the converted PNG files?

miguel-c
SoftMaker Team
SoftMaker Team
Posts: 972
Joined: Wed Jun 05, 2019 12:02 pm

Re: Convert EMF to PNG

Post by miguel-c » Tue Jan 26, 2021 3:03 pm

The images are placed in: word\media\(image1.emf, image2.emf, etc...)
And they are referenced in word\_rels\document.xml.rels
You may try to edit document.xml.rels and then replace ".emf" by ".png"

Post Reply

Return to “SoftMaker Office 2021 for Linux (General)”