ONLYOFFICE / DocumentServer

ONLYOFFICE Docs is a free collaborative online office suite comprising viewers and editors for texts, spreadsheets and presentations, forms and PDF, fully compatible with Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing in real time.
https://www.onlyoffice.com
GNU Affero General Public License v3.0
4.57k stars 1.05k forks source link

Support saving / writing to MHTML format (.mht) #2435

Open Quisquose opened 8 months ago

Quisquose commented 8 months ago

This issue is unique.

Your idea.

I use MHTML files a lot, because HTML is usable everywhere, and MHTML allows it to be used in a single file.

Ordinary HTML cannot have images embedded in it, so the images have to go in a separate folder (which you have to keep with along-side the HTML file. This means that the attachments folder can easily get lost (or the image links broken if something is renamed). It's also a nuisance to work with when you have multiple items, because the html files and folders end up getting separated because they get grouped separately in the file manager (making it hard to keep track of things, especially when moving files to a different location). It's so much easier if everything is just in single file; and this is what MHTML does.

I was excited to see that OnlyOffice had MHTML compatibility, and so I downloaded and installed it for the first time. I was impressed with the features, but disappointed to see that MHT/MHTML was not listed in the Save Dialog as an option. I assumed that when the documentation said OnlyOffice was compatible with MHT that it meant read and write. But that does not seem to be the case.

It would be extremely useful to have the ability to save as MHT, because the contents can be viewed by pretty much anyone. They don't even need to have an office suite or word processor (which is necessary for most other office file formats) they can just use a web browser, and it doesn't even need to be connected to the internet (because all the resources are stored locally in the MHTML file).

Seeing as OnlyOffice can already read MHTML files, all it would take is for OnlyOffice to correctly repack the contents after editing (and ensure that the saved result displays correctly with all imaging and formatting in tact).

Please consider adding the ability to save to MHTML format.

ElenaMaaya commented 8 months ago

Hello, @Quisquose. Thank you for the enhancement. I created ticket 64769 in our tracker. This issue actual in Document Server.