Skip to main content
Use a viewer or preview when you need to check a file without leaving the workspace. You can open an existing PDF in a viewer tab. You can open a preview to see output from a source file, so you can compare the source and its result while you work.

Open a PDF

Click a PDF in the file tree to open it as a read-only viewer tab inside DocWriter. The PDF viewer supports page navigation, search, zoom, and the PDF sidebar. LaTeX projects can also use SyncTeX, which links a place in the source file to the matching place in the PDF.
A generated PDF open in the DocWriter PDF viewer

Preview generated output

When the active source file has matching output, use Preview window to open it in a separate window. Use the button beside it when you want a resizable split preview next to the source. You can preview PDF, HTML, SVG, common image formats, Markdown, and plain text. On the preview page, choose Raw to open the output in a normal browser window.

Open a split preview, resize it, and reload changed output.

Large and binary files

DocWriter copies imported binary data without decoding it as text, so importing a large image or PDF does not change its contents. When the agent or another tool reads a text file through DocWriter, each response is limited to 2 MB. You will see a notice when the response contains only part of the file. Read Generated previews for hook output matching and live reload.