Skip to content
SumOfficeSumOfficeSumOffice

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.

Terminal window
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

In 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.

  1. Wait for the document to load.
  2. Place the cursor in the first paragraph and add text.
  3. Click the Save DOCX button — it’s labeled in English, same as on the surface itself.
  4. Check the file given in --save.
  5. Stop the surface with Control+C in the same terminal window.

The surface is up and running. Next:

Documentation assistant

Answers are assembled from the documentation and may be inaccurate — check the sources.