Skip to content

Releases: Aafff623/vscode-office-viewer-plus

v1.2.0

Choose a tag to compare

@Aafff623 Aafff623 released this 21 Sep 03:57

Office File Preview Plus 1.2.0 — Word outline & search, real pagination, Excel column sorting with a frozen header, legacy .xls support, WASM-backed PDF decoding, and cursor-anchored zoom that lands where you click on every format.

Marketplace: https://marketplace.visualstudio.com/items?itemName=Aafff623.vscode-office-viewer-plus

What's changed

Added

  • Word: automatic pagination — chapters without explicit page breaks are split into real page-sized pages (matching the page box, repeating page headers/footers), instead of one continuous white sheet
  • Word: outline navigation panel — heading levels come from the document's real styles (works for any language), click a heading to jump, the current section stays highlighted while scrolling
  • Word: in-document search — Ctrl+F opens a search bar with a match counter and Enter / Shift+Enter navigation; matches are highlighted without touching the document DOM
  • Word: comments and tracked changes are now shown (highlighted ranges with hover popovers)
  • Excel: click a column header to sort (ascending/descending, numbers compared numerically, mixed text via natural collation); the header row stays frozen while scrolling
  • Excel: legacy .xls workbooks (Excel 97-2003, BIFF8) open in the same preview with tabs, sorting and the frozen header
  • PowerPoint: EMF/WMF vector images embedded in slides are now rasterized and displayed instead of breaking

Changed

  • Word/Excel/PowerPoint/PDF: Ctrl/Cmd + wheel zoom now grows out of the middle of the pane — the content point you are looking at stays put instead of the view expanding from the top-left corner
  • Word/PDF: the outline and thumbnail toggles are redesigned as slim fold handles stuck to the screen edges (bright blue, half-rounded grips with a direction chevron); both panels always start folded — nothing pops open on its own, opening either one is the user's call
  • PDF engine upgraded to pdf.js 6.2.108 with on-demand assets: WASM decoders for scanned-document images (JBIG2/JPX), CJK CMap tables and standard font data — documents that previously showed missing text or images now render
  • Word rendering engine upgraded to docx-preview 0.3.7
  • Page thumbnails render at the display's pixel density (up to 2x) — sharp on HiDPI screens instead of blurry upscales

Fixed

  • PowerPoint: decks now lay out like the PDF preview — slides flow continuously down the page and the whole preview scrolls, instead of being trapped in a small internal scroll window that showed part of one slide with dead space below; slides fit the available width (with side margins) instead of overflowing behind a horizontal scrollbar, and 4:3 decks get the correct slide shape
  • Reinstalling or upgrading the extension no longer risks webviews running the previous build's scripts: bundled scripts/styles now carry a per-build content hash in their URL, so the editor's resource cache can never serve a stale bundle (this is what made double-click zoom misbehave after the 1.2.0 reinstall)
  • Double-click zoom lands where you clicked, on every format and pane width: the content under the pointer stays put when jumping to 150%, and the second double-click returns to the view you zoomed in from (same zoom, same region, wherever the pointer is now). Anchoring that a scroll cannot express — a page that fits the pane keeps re-centering as the zoom changes, so a click near an edge has no scroll range to work with — is now carried by a content offset instead, so clicking the left or right side of a page no longer drifts the view toward the middle
  • Double-click zoom now lands where you clicked in real VS Code, not just in a browser test: VS Code reports element rectangles in the preview's own zoomed units while mouse and scroll coordinates stay in viewport pixels, so every position the preview computed was off by the zoom factor (about 300-420px of drift on a normal window). Rectangles are normalised against the behaviour the host actually has, the anchor uses the pointer's exact (fractional) position instead of the truncated double-click coordinate, content that ends up hidden under a sticky header row is scrolled clear, and the preview's own verification probe measures the corrected result. Verified on-machine for Word, Excel, PowerPoint and PDF (see issue #1)
  • Excel: double-click zoom no longer lands a row off. A sheet scrolls inside the zoomed pane, where scroll offsets are in the pane's own units while the compensation was computed in screen pixels — the pan overshot by the zoom factor and the anchor missed by more than a hundred pixels. The compensation now converts into each scroller's units and then verifies itself against the real layout (the pointer's content point is measured before and after and corrected if it moved), which also fixes drag-panning inside a zoomed sheet staying 1:1 with the pointer
  • Word: the outline panel and thumbnail pane now reserve layout space, so the page is re-fitted between them instead of sliding underneath; resizing the editor re-fits (or restores to 100%) the same way, and a zoom you set yourself is never overridden
  • Word: a thumbnail page that fails to rasterize is retried instead of staying a placeholder forever; thumbnail captures no longer clone the whole document per page

Office File Preview Plus v1.1.0

Choose a tag to compare

@Aafff623 Aafff623 released this 16 Sep 03:14

First public release of the enhanced fork.

Highlights

  • Canvas gestures: Space / middle-button drag panning, Ctrl+wheel smooth zoom (30%–350%) with HUD badge, Ctrl+0 reset, double-click 150% toggle
  • Page thumbnails pane (PDF & Word): real page bitmaps in a collapsible sidebar — click to jump, scroll-spy highlight, lazy rasterization with automatic retries, remembered open state
  • Word TOC dot leaders: proper tab stops and dotted leaders via docx-preview experimental mode
  • Adaptive PDF viewport: initial scale fits your editor width, high-DPI aware
  • Clean English UI replacing leftover Japanese strings

Reliability

  • Excel sheets render lazily (large workbooks no longer freeze); SheetJS updated to 0.20.3 (CVE-2023-30533, CVE-2024-22363)
  • CSV/TSV: UTF-16 BOM decoding + Shift_JIS fallback banner
  • Marp: no more zoom/space-key conflicts, listener cleanup
  • Security: relative links can no longer escape the document folder (incl. Windows backslash traversal) and open inside the editor
  • CI runs typecheck + 25 tests before packaging

Install

Download the .vsix below, then: code --install-extension vscode-office-viewer-plus-1.1.0.vsix