Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Vellum Document ViewerNew to Visual Studio Code? Get it now.
Vellum Document Viewer

Vellum Document Viewer

Omair Saad

|
2 installs
| (0) | Free
View and annotate PDFs, and preview DOCX, Markdown, CSV, JSON, HTML, logs and images in VS Code. Includes PDF merge, split, OCR and document comparison. Runs locally.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Vellum

Vellum Document Viewer

Open, read, search and annotate PDF, Word (DOCX/DOC), Markdown, CSV, JSON, HTML, logs and images, without leaving VS Code.
Free, 100% local and offline. No account, no telemetry.

Searching a PDF with thumbnails and per-page match chips

Vellum is a free PDF viewer for Visual Studio Code that also opens Word documents (DOCX), Markdown, CSV/TSV tables, JSON, HTML, log files and images. Highlight and annotate PDFs, merge and split PDF files, run offline OCR on scanned pages, compare two documents side by side, and search inside every PDF and DOCX in your workspace. Everything runs on your own computer and makes no network requests. There are no accounts, no telemetry and no paid tiers.

Why Vellum?

  • One extension instead of a separate PDF viewer, DOCX viewer, CSV viewer and Markdown preview.
  • Fast on big files: 500-page PDFs, 200,000-row CSVs, multi-megabyte logs and JSON.
  • Private by design: documents never leave your machine, and HTML scripts never run.
  • Non-destructive: annotations and PDF tools never overwrite your original file.
Format Opens as What you get
PDF default editor Fast rendering (pdf.js), thumbnails, outline, search, zoom/fit/rotate, page layouts, password-protected files, annotations, OCR
Word .docx default editor Page-by-page layout with headers/footers, tables, images, lists, outline from headings
Word .doc (97–2003) default editor Converted locally with LibreOffice, if it is installed
Markdown Open With… GitHub-flavoured Markdown, highlighted code with copy buttons, table of contents, local images
JSON Open With… Collapsible tree that stays fast on large files, data search, raw view
CSV / TSV Open With… Virtualized table (hundreds of thousands of rows), sort, filter
TXT / LOG Open With… Line numbers, log level colouring, large-file mode above 3 MB
HTML Open With… Safe preview: local CSS and images load, scripts never run
Images (PNG, JPEG, WebP, GIF, SVG) Open With… Fit/actual size, zoom, rotate, dimensions

PDF, DOCX and DOC open in the viewer automatically. For the other formats, right-click the file and choose Open with Vellum (or use the button in the editor title bar). That way your normal text editing is unaffected.

See it in action

Annotate PDFs Word documents
Highlighting text, drawing a rectangle and freehand on a PDF Navigating a Word document with the outline
Markdown with table of contents 200,000-row CSV, filter and sort
Jumping through a Markdown file with the table of contents Filtering and sorting a large CSV

Features

  • Search within a document (match case, whole word, jump between pages that contain matches), or across the workspace with Vellum: Search in Workspace Documents…, which also looks inside PDF and DOCX files.
  • PDF annotations: highlight, underline, strike through, sticky notes, text boxes, freehand drawing, rectangles, ellipses and arrows. You can select, move, edit, recolour and delete them, with undo and redo. Annotations are saved separately from the file, so your PDF is never modified. Export Annotated PDF… writes a new copy, and its notes become real PDF comments that other readers can show.
  • PDF tools (activity bar → Vellum → Tools, or the Command Palette under Vellum PDF Tools): merge, split, extract pages, delete pages, reorder, rotate, document info, convert text/Markdown/JSON/CSV/images to PDF, and export pages as PNG. Every tool writes a new file. Replacing the original requires an explicit confirmation.
  • Compare documents side by side (PDF, DOCX, text, Markdown), with changes highlighted word by word and a "changes only" view.
  • Bookmarks, notes and history: reading position and zoom are remembered for each document. There are bookmarks, a notes pad for each document, and a Recent Documents list.
  • OCR for scanned PDFs, using Tesseract with the English model bundled. It works offline.
  • Read aloud using your operating system's speech engine.
  • Reading comfort: light, dark and sepia themes, adjustable reading width, a distraction-free mode, and full screen.
  • Optional local AI (off by default): summarize a document, extract key points, ask questions or explain a selection, using an Ollama model running on your own machine.

Keyboard shortcuts (inside the viewer)

Keys Action
Ctrl/Cmd+F Find
Enter / Shift+Enter Next / previous match
Ctrl/Cmd + = / - / 0 Zoom in / out / reset
N or J, P or K Next / previous page (PDF)
G Go to page (PDF)
R / Shift+R Rotate clockwise / counter-clockwise
S Toggle sidebar
B Add bookmark
D Distraction-free mode
V H U X C T I Annotation tools: select, highlight, underline, strike, comment, text, draw
Delete Delete selected annotation
Ctrl/Cmd+Z / Ctrl/Cmd+Y Undo / redo annotation
Esc Close find / leave a mode
? Show all shortcuts

Ctrl+Alt+O (Cmd+Alt+O on macOS) in the Explorer opens the selected file with Vellum.

Settings

Setting Default Description
docViewer.theme auto auto (follow VS Code), light, dark, sepia
docViewer.defaultZoom 100 Zoom in percent, used when the fit mode is none
docViewer.pdf.fitMode auto none, page-width, page-fit, auto
docViewer.pdf.layout continuous continuous, single, spread
docViewer.showThumbnails false Open PDFs with the thumbnail sidebar
docViewer.rememberPosition true Restore the last reading position and zoom
docViewer.animations true UI transitions
docViewer.readingWidth 860 Maximum reading width (px) for Markdown and text
docViewer.ocr.enabled true Local OCR
docViewer.tts.enabled true Read aloud
docViewer.annotations.defaultColor #ffd400 Default annotation colour
docViewer.annotations.strokeWidth 2 Stroke width for drawings and shapes (PDF points)
docViewer.exportDirectory (empty) Default folder for exports; empty means next to the source file
docViewer.history.maxItems 50 Recent documents to remember (0 turns history off)
docViewer.libreOfficePath (auto) Path to LibreOffice soffice, for .doc files and Word/HTML → PDF
docViewer.ai.enabled false Turn on the local AI assistant
docViewer.ai.endpoint http://127.0.0.1:11434 Ollama endpoint
docViewer.ai.model llama3.2 Ollama model
docViewer.ai.maxChars 24000 Maximum document characters sent to the model

Privacy and security

  • Documents are read from disk and rendered inside VS Code. Nothing is uploaded, and the viewer makes no network requests.
  • Viewers run under a strict Content Security Policy. Remote images in Markdown and HTML are not loaded.
  • HTML previews run in a sandboxed frame with scripts, forms and inline event handlers removed.
  • Links are checked before they open. Web links go through VS Code's external-link confirmation, and links to files only open if they are inside your workspace.
  • Annotations, notes, bookmarks, OCR text and history are stored in VS Code's extension storage on your machine. Your documents are never written to unless you confirm that.
  • The AI assistant is off by default. When you turn it on, document text goes only to the endpoint you configure, and you are warned if that endpoint is not on your computer. It is disabled in untrusted workspaces, as is the LibreOffice integration.

Known limitations

  • Legacy .doc files need LibreOffice (free) installed. Without it, the viewer explains this instead of guessing at the layout.
  • DOCX rendering is an HTML approximation of Word's layout: page breaks, fonts and floating objects can differ. Charts, SmartArt, equations, tracked changes and comments are not fully shown, and the viewer lists anything it found that it cannot display. Page-number fields show their saved values.
  • Printing and DOCX → PDF: webviews cannot open a print dialog. Print opens the file in your system viewer, and Word/HTML → PDF conversion uses LibreOffice.
  • Exported annotation text (text boxes) only supports Western European (WinAnsi) characters; other characters become ?. On pages that have a rotation, text boxes are exported unrotated. Sticky-note comments keep full Unicode.
  • Encrypted PDFs can be viewed (with their password), but the PDF tools and annotation export cannot modify them.
  • Comparison compares text only, not layout or images.
  • OCR recognizes English only. The OCR text is shown in the sidebar (you can copy it) and saved locally; it is not embedded into the PDF.
  • Workspace search stops after 500 matches and skips files over 100 MB.
  • HTML preview: images referenced from CSS (background: url(...)) and web fonts may not load.
  • Remote images in Markdown and HTML are blocked on purpose.

Licenses

The extension is released under the MIT License (see the LICENSE file). It bundles these open-source components:

Component License
pdf.js (pdfjs-dist) Apache-2.0
pdf-lib MIT
docx-preview Apache-2.0
JSZip (with pako) MIT (dual MIT/GPL-3.0; used under MIT)
marked MIT
DOMPurify Apache-2.0 (dual MPL-2.0/Apache-2.0)
highlight.js BSD-3-Clause
Papa Parse MIT
jsdiff (diff) BSD-3-Clause
tesseract.js and tesseract.js-core Apache-2.0
Tesseract English model (@tesseract.js-data/eng) MIT (package); Apache-2.0 (Tesseract model data)
Codicons CC-BY-4.0. Icons © Microsoft Corporation, used under the Creative Commons Attribution 4.0 International License

License notices for the bundled code are included next to the bundles (*.LEGAL.txt), and the packages in node_modules include their own license files.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft