Import and export: Word, PDF, EPUB and more, in MDZip Studio and on the command line #21
kylemwhite
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Getting a document into MDZip (
.mdz) used to mean copying the text and saving the pictures one by one. Now there are three ways to convert, in both directions, all free and all running on your own computer:.mdzto Pandoc, the document converter many writers and publishers already use.mdzto Microsoft's MarkItDown, the converter made for handing documents to AI toolsStudio uses the other two behind its menus, so a file converts the same way whichever you use.
In MDZip Studio
File → Import… turns a Word document, a PowerPoint presentation, an Excel workbook, a PDF, a web page, an EPUB book and more into an
.mdz, with the pictures inside it. The result opens in View so you can read through what came across, and the original file isn't changed..mdz, so exporting back to Word looks like the original, and a stylesheet so Studio's preview shows its fonts and colours.File → Export… (Ctrl+E) saves the document as Word, PDF, a one-file web page, EPUB, OpenDocument, PowerPoint, Rich Text or LaTeX. A document split over several pages can be exported as one, with the links between its pages still working. PDF needs nothing installed. For the others, Help → System Integration… installs Pandoc and markitdown-mdz for you.
Exported Word documents can have your own styles: File → Insert Word Template adds a Word template to the
.mdz, you change its styles in Word, and every export uses them, for anyone who exports the document.Both dialogs show the exact command they run, with a Copy button, so you can run it yourself or put it in a script. Import and Export in Studio's help has the details.
With Pandoc
mdzip-pandoc 0.8.0 is a free add-on: download it, unzip it, and give Pandoc the path of its
mdz.lua. The name of the output file picks the format..mdz.+combinemakes a document split over several files into one, with the links between them still working..mdz, so everyone who converts it gets the same look..mdzfiles into Word files or a whole website whenever you push.With MarkItDown
markitdown-mdzip 0.1.2 adds
.mdzto MarkItDown in both directions. It needs Python 3.10 to 3.14.MarkItDown on its own leaves a placeholder where each picture was.
markitdown-mdzkeeps them, from Word, PowerPoint, web pages and EPUB books, with an EPUB's cover. It also works from Python, for pipelines that feed documents to AI tools.Tell us how it goes
Converting real documents finds the cases tests don't. If something didn't come across the way you expected, say so in Q&A or open an issue on Studio, mdzip-pandoc or markitdown-mdzip. If you'd like to help test, there are step-by-step test scripts for the Pandoc and MarkItDown add-ons.
Download MDZip Studio · MDZip for Pandoc · MDZip for MarkItDown · All tools
All reactions