Read-only, security-first PDF viewer for Visual Studio Code.
- Open
.pdffiles in a custom read-only editor - Render PDF via bundled
pdfjs-dist(no CDN) - Script execution in PDF disabled (
isEvalSupported: false,enableXfa: false) - Tight CSP with nonce-based script policy
- Restrictive
localResourceRoots - Basic controls: previous/next page and zoom in/out
- Keyboard shortcuts:
ArrowLeft/ArrowRight/ArrowUp/ArrowDown(page),Home/End(first/last),+/-(zoom),Cmd/Ctrl+F(search focus)
- Shortcuts are handled only in the PDF viewer surface.
- When focus is in input/select/editable fields (for example search box), reader shortcuts are ignored to avoid typing collisions.
Cmd/CtrlandAltcombinations are not intercepted (exceptCmd/Ctrl+F) so VS Code and OS bindings keep priority.- Zoom-in accepts both
+and=(includingShift+=and numpad+).
Safe PDF Viewer: Open Current PDFSafe PDF Viewer: Open Current PDF Externally
npm install
npm run buildPress F5 in VS Code to launch Extension Development Host.
- Explicit URL scheme allowlist for links in annotations
- Configurable policy options for enterprise environments
- Optional audit logging hooks
- Additional hardening and large-file performance tuning