Starting Web Surface
Start the ready-made editor surface locally, open a DOCX in the browser, edit a paragraph, and save the result.
Surface is a ready-made local editor page on top of the same Rust core. It’s the fastest way to see embedding in action: you start a local host and put its URL into a WebView or iframe.
The surface starts with a single processor command. The path to it depends on your system; the other arguments are the same: --doc — which document to open, --save — where to save (the same file by default).
The --doc value below is the sample from the delivery itself — the same file the quick start begins with. Any DOCX of yours works too: the surface opens whatever it’s given.
CLI="/Applications/SumDoc.app/Contents/Resources/runtime/native/fastdoc-cli"DOC="/Applications/SumDoc.app/Contents/Resources/app/fixtures/docx/simple_text.docx""$CLI" surface --doc "$DOC" \ --save ~/Desktop/api-demo-web-result.docx$CLI = "C:\Program Files\SumDoc\resources\runtime\native\fastdoc-cli.exe"$DOC = "C:\Program Files\SumDoc\resources\app\fixtures\docx\simple_text.docx"& $CLI surface --doc $DOC ` --save "$HOME\Desktop\api-demo-web-result.docx"CLI="/opt/SumDoc/resources/runtime/native/fastdoc-cli"DOC="/opt/SumDoc/resources/app/fixtures/docx/simple_text.docx""$CLI" surface --doc "$DOC" \ --save ~/Desktop/api-demo-web-result.docxIn response, the processor prints a JSON line with a ready-made address — open it in your browser. The address contains a one-time pass, so there’s nothing to substitute.
The Evaluation Kit has a ready-made script for the same purpose, start-web-demo.sh; it runs the same command with a preset port and pass.
- Wait for the document to load.
- Place the cursor in the first paragraph and add text.
- Click the Save DOCX button — it’s labeled in English, same as on the surface itself.
- Check the file given in
--save. - Stop the surface with Control+C in the same terminal window.
What’s next
Section titled “What’s next”The surface is up and running. Next:
- embed it in your product — Embedding Surface;
- exact event names, schemas, and parameters — Browser surface interface.