Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>PDF Viewer SecureNew to Visual Studio Code? Get it now.
PDF Viewer Secure

PDF Viewer Secure

ToppyMicroServices

toppymicros.com
|
179 installs
| (0) | Free
Open and preview PDF files in VS Code with security-first, offline-first defaults.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PDF Viewer Secure

View PDFs offline in VS Code with bundled PDF.js and restrictive defaults. Requires VS Code 1.111 or later.

Install from Marketplace, then open a .pdf file.

PDF preview

Defaults and settings

  • External links, file imports, downloads (including attachments), printing, forms, and annotation editing are off by default.
  • Enable optional features with pdf-preview.features.* in VS Code settings.
  • Adjust zoom, cursor, sidebar, and page layout with pdf-preview.default.*.
  • PDF JavaScript stays disabled, even when forms are enabled.

Copilot Agent tools

Enable pdf-preview.agent.enabled in User Settings, then select the tools in Copilot Agent chat:

  • #pdfPreviewOpen: open a workspace PDF and report its loading status and page count.
  • #pdfPreviewStatus: check a PDF preview by its absolute file path.

Tools require a trusted local workspace and reject paths outside it, including symlink escapes. They return the path, status, and page count to the chat; they do not extract PDF text or provide OCR. These are VS Code tools, not a standalone MCP server or Agent Plugin.

Attribution

Based on tomoki1207/vscode-pdfviewer and Mozilla PDF.js. Original notices are preserved. Provided as is, without warranty; see LICENSE.

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