How to download a document as 'zdoc' via developer console?

How to download a document as 'zdoc' via developer console?

1. Open the Writer document and click on the below keyboard shortcut to open the developer console based on your System OS;
  1. For Mac > Command + Option + I
  2. For Windows > Ctrl + Alt + I
2. The developer console will be opened.
3. Enter or Copy/Paste this command: ExportDialog.exportAs('zdoc') and execute it.
4. The zdoc file will be downloaded now.