Repository navigation
Releases
Releases · rakko1133/obsidian-md-to-office
1.1.3
Improved
- Faster export of notes with Dataview queries or other plugin code blocks: the code blocks in a note are now rendered at the same time (up to 8) instead of one after another. In our test vault, exporting 47 notes to Word went from 3.5 s to 2.3 s, and 32 notes to Excel from 3.0 s to 1.6 s.
- Faster PDF export: notes with nothing rendered asynchronously wait 30 ms instead of 100 ms after rendering, and embedded notes are checked for Dataview queries or plugin code blocks instead of always waiting half a second. Exporting 48 notes to PDF went from 21 s to 17 s.
- The exported files are unchanged.
1.1.2
Improved
- Faster Word and Excel export: converting images to PNG (Mermaid diagrams, SVG and WebP images, math rendered as images, and diagrams drawn by other plugins) no longer waits about one second per image. In our test vault, exporting 47 notes to Word went from 41 s to 6 s (first run, no diagram cache), and exporting 24 notes to Excel went from 5.4 s to 0.4 s. The images themselves are unchanged.
- Faster PDF export: notes that have nothing rendered asynchronously (no Dataview queries, plugin code blocks or embedded notes) no longer wait half a second after rendering, and the wait after Dataview and other plugins finish drawing is shorter. Exporting 47 notes to PDF went from 38 s to 21 s. PDF export now also waits for images to load before printing.
1.1.1
Fixed
- PDF export: images and diagrams (including Mermaid) taller than the printable area were split across pages. They are now scaled down to fit on one page (85% of the printable height, computed from paper size, margins and scale), keeping their aspect ratio. SVGs stay vector graphics.
- PDF export: images and diagrams are no longer broken across pages, and headings are kept on the same page as the content that follows.
- PDF export: the zoom buttons that Obsidian 1.15 adds to Mermaid diagrams are no longer printed.
1.1.0
New: convert notes to PDF.
- Convert to PDF in the file menu and the command palette. PDF files look like Obsidian's reading view: math, Mermaid diagrams, Dataview results, callouts and code colors appear as you see them.
- Bookmarks (outline) from headings, page numbers in the footer, and an optional title in the header.
- Combine each folder into one PDF (same order options as Word: file name, frontmatter
order, or a map-of-content note), with an optional cover page and table of contents. The cover page has no header or footer. - Links: headings in the same PDF become internal links; links to other converted notes open the other PDF (first page); other notes become plain text.
- PDF settings: paper size (A4 / A3 / B5 / Letter), orientation, margins and scale. The cover page, contents, header and footer follow the Word settings.
- The confirmation dialog now lets you choose any combination of Word, Excel and PDF. The setting "Default output format" becomes "Default output formats"; an old "Both" setting becomes Word + Excel.
- "Convert to Office formats…" is renamed "Convert (choose formats)…".
Notes:
- While converting to PDF, Obsidian switches to the light theme and switches back when the run ends.
- The table of contents in a PDF has no page numbers. Page numbers do not count the cover page.
- Adds the
pdf-liblibrary (MIT) to edit the printed PDF (cover page, links, document properties).main.jsis about 0.4 MB larger.
1.0.2
Fixes for the Obsidian community directory review. No change in the converted files.
- The export record file is renamed from
export-manifest.jsontoexport-record.json(in the plugin folder). The old file is no longer used and can be deleted. - The bundled exceljs build no longer contains its legacy Internet Explorer code path (script elements) or
new Function. These paths were never used in Obsidian. - Glob patterns in the target settings no longer support extglobs such as
+(a|b), to avoid a ReDoS issue in picomatch.*,**,?,[...]and{a,b}work as before. - Popout window compatibility for timers.
1.0.1
Fixes for the Obsidian community directory review. No change in the converted files.
- Move inline styles to
styles.css(off-screen rendering area, callout color probe, margin inputs) - The white background of saved Mermaid SVG files is now a rectangle instead of a
styleattribute - Popout window compatibility:
activeDocument,createEl,window.setTimeout - Code cleanups reported by
eslint-plugin-obsidianmd(unnecessary type assertions, unbound methods, Promise rejections)
1.0.0
First public release.
Batch-convert Obsidian notes to Word (.docx) and Excel (.xlsx). Mermaid diagrams become images.
- Word: headings, lists, tables, code with syntax colors, callouts, footnotes, math, images, embeds, Mermaid diagrams, Dataview results
- Word: combine the notes of a folder into one document, with a cover page and a table of contents; templates (.docx / .dotx), heading numbering, figure and table captions
- Excel: export the tables of notes (one sheet per note or per table) or an outline of the note; summarize the tasks, frontmatter and Dataview tables of a vault into one workbook
- Save Mermaid diagrams as SVG / PNG
- English and Japanese UI
Desktop only. Requires Obsidian 1.15.1 or later. See README.md for details, and THIRD_PARTY_NOTICES.md for the licenses of the bundled packages.