# Viewing documents

The [WebInterface](Web.md) can show many documents right in the page: you read a contract or check a spreadsheet without downloading it and without having the program that made it.

Documents open in [Quick View](Web-Preview.md#quick-view). Nothing is installed, and nothing is sent anywhere else: the browser itself shows the file.

## What can be read

| Kind | Files | Shown as |
|---|---|---|
| PDF | `.pdf` | the document, in the browser's own PDF viewer: pages, zoom, search |
| text | `.txt`, `.log`, `.md`, `.json`, `.xml` and other text and source files | the text. **Wrap lines** breaks long lines; **Go to the end** jumps to the last line, which is where a log is interesting. |
| tables as text | `.csv`, `.tsv` | a table |
| Word | `.docx`, `.docm`, `.dotx` | the text with its headings, lists, tables and pictures |
| | `.doc` | its text |
| Excel | `.xlsx`, `.xlsm`, `.xltx`, `.xls` | the values of each sheet, a tab per sheet |
| PowerPoint | `.pptx`, `.pptm`, `.ppsx`, `.potx` | the slides as they are laid out |
| | `.ppt` | the text of each slide |

It is a view for reading. A Word document is shown as a readable page, not laid out to the millimetre as Word would print it; a spreadsheet shows its values, not its charts.

## Limits

| | |
|---|---|
| size | files up to 20 MB, unless your administrator set another limit. "This file is larger than …, too large to open here. Download it to view it." |
| long tables | a CSV shows its first 5,000 rows: "Showing the first … rows. Download the file to see all of it." A wide spreadsheet: "Showing the first … rows and … columns." |
| protected files | "This file is password protected. Download it to open it." |
| odd files | "This file could not be opened here. Download it to view it.", "This file is not text. Download it to view it.", "This workbook has no sheets to show." |
| PDF on some phones | "This browser cannot show PDF files. Download it to view it." |

In each case the file itself is fine: **Download** it and open it with its own program.

## Editing a text file

Where you were given the button for it, a text file can be changed in the page: **Edit a file** opens it, you type, and saving writes it back to the server: "File saved".

It is for small text files: a note, a configuration, a list. Word and Excel files cannot be edited here; download, change, and upload them again. Where the server keeps earlier versions, the one you replace stays available: [Earlier versions of a file](Web-Revisions.md).

## Things to know

- **Viewing is downloading**, as far as rights and records go: you can view what you may download, and it is recorded as a download.
- **Nothing leaves the server and your browser.** The document is not sent to a conversion service.
- **What you see is the file as it is on the server now.** If a colleague replaces it, close the view and open it again.

## For administrators

| What | Where |
|---|---|
| switching the document view off (`disableDocumentPreview`) and its size limit (`documentPreviewMaxSizeMB`) | [Customizations: Preview & Media](Users-WebInterface-Customizations.md#preview--media) |
| the Quick View and Edit buttons | [Buttons](Users-WebInterface-Buttons.md) |
| previews made by the server, for kinds the browser cannot show | [Preferences, Preview](Prefs-Preview.md) |
