KingViewer — Document Viewer
KingViewer renders your files beautifully — no external app needed. Click a file in KingFolder and it opens as a clean, readable document right inside KingDesk.
Supported formats
| Format | Extension | Where it opens |
|---|---|---|
| Markdown | .md | Inline viewer |
| Plain text | .txt | Inline viewer |
| HTML | .html, .htm | Inline viewer (sandboxed) |
.pdf | Inline viewer | |
| Word | .docx, .doc | Inline viewer |
| Excel | .xlsx, .xls | Inline viewer |
| PowerPoint | .pptx, .ppt | Popup window |
| Hangul | .hwp, .hwpx | Inline viewer |
| Images | .png, .jpg, .gif, .webp, .svg | Inline viewer |
| Drawing | .kdraw, .excalidraw | Popup window |
How files open
KingViewer has four entry points depending on where you are:
| Entry point | How to open | Where it appears |
|---|---|---|
| KingFolder click | Click any file in the folder panel | Opens as an editor tab (inline) |
| Eye icon popup | Click the 👁 icon next to a file | Opens in a separate popup window |
| KingShare link | Open a shared project link | Opens in the right panel of KingShare |
| Web project preview | Visit a docuking.ai project page | Opens in your browser |
The header bar
Every viewer has a consistent header showing the file name, format badge, and action buttons. Common actions:
- Edit — jump to the raw editor
- Refresh — reload the rendered view
- Print / Export PDF — available for Markdown and HTML files
Sharing a viewed document
From any viewer, you can generate a KingShare link and send it to anyone — they'll see the same rendered view in their browser, no KingDesk required.
tip
You can preview a running localhost web app inside KingDesk without building. Open the built-in browser panel, navigate to localhost:3000 (or any port), and your app renders live alongside your code.