Office Suite: Word, Excel, PPT & PDF
Word, Excel, PPT, and PDF form one office pipeline: you can generate files from scratch, read existing ones, edit them in place, and convert between formats.
One key distinction: while a file is open in the editor, office_read / office_edit go through the editor, so you see revisions live; while it’s closed, the same tools automatically fall back to a headless engine and work against the version on disk. office_file handles file-level operations separately: format conversion, template filling, revision comparison, and external-link maintenance.
Word
Write a department year-end summary report covering work review, highlights, issues, and next year's plan
LanMate uses the docx tool to generate a new document, with 8 built-in themes and 10 brand colors; when you need an official-document layout, it switches to the GB/T 9704-2012 red-header mode. The output previews in the right panel and you can keep editing:
Expand the second paragraph with three concrete cases
- Editing an existing document: while the file is open, use
office_edit— changes are attributed to “LanMate revisions” and can be accepted or rejected one by one. While it’s closed, the sameoffice_editautomatically runs the headless engine - Format conversion:
office_fileconverts legacy.doc/.dot/.odt→.docx, anddocx → md, among others - Template filling: fill a
{{key}}template into a new file without changing the template itself - Version comparison: generate a redline draft with tracked changes from two
.docxfiles, for comparing contract or proposal versions
Excel
Summarize this sales detail by month, calculate the month-over-month growth rate, and build a summary table with conditional formatting
LanMate first reads the workbook with xlsx and runs a structural check (where the header row is, summary rows, duplicate rows, numbers stored as text, fake blanks), then builds the summary table:
- Formulas: after writing formulas it recalculates automatically, scans for
#REF!/#DIV/0!/#VALUE!and similar errors, then delivers - Conditional formatting: color scales, data bars, threshold highlighting
- Native charts: bar, line, pie charts and more are written straight into the workbook and stay editable
- Pivot tables: add or remove pivot tables and refresh caches in the open sheet through the editor; not every analysis needs a pivot — prefer formulas for ordinary summaries
- External links: from 1.0.1 you can read a workbook’s external links and choose to refresh the cached values or break the links
PPT
Generate a 15-page presentation from this Word proposal, with data charts
LanMate distills the key points, generates an outline, fills in content, and inserts charts, outputting .pptx:
- Built-in templates: 16 (a 22-page flagship report + 8 theme libraries + 7 designer templates)
- Layouts: a catalog of 50 layouts and 63 patterns, with layouts recommended by content search
- Themes: 27 design themes, with editable colors and fonts
- Editing an existing deck: while the file is open, use the slides operations in
office_edit; each page can run an overflow check so text isn’t clipped
Merge these three PDFs into one, then extract the tables inside to Excel
Merging, splitting, rotating, searching, extracting, and form filling for PDFs all live in the single pdf tool, dispatched by operation:
- Merge / split / rotate: produce new files; source files are never overwritten
- Extract: read text and tables page by page; tables can go to Excel
- Convert:
pdf → docx / pptx / xlsx / mdrebuilds the structure, so complex layouts may come out differently - Scans: run
ocr_pdffor text recognition first, then extract or search
Safety & Boundaries
- Every write target must be inside the working directory and pass workspace write authorization; while a file is open, editor locks are checked as well, so nothing overwrites unsaved work in the background
- Generated files are registered as artifacts automatically and can be reviewed in the artifacts panel
- Not every conversion is lossless:
pdf → docxrebuilds rather than restoring the original, and a scan has no extractable text until you OCR it