doc-views

doc-views

Read the document, not a download dialog.

Preview Word, PDF, PowerPoint and Excel documents without leaving the page.

DOC/DOCX, PDF, PPT/PPTX and XLS/XLSX are rendered locally in your browser automatically. No Office installation or conversion server is required.

Local SVG controls follow the host palette and font. The workspace icon sits inside the document; expand without reloading, then return with Escape. Worksheets have bottom tabs, cell inspection and resizable column grips for mouse, touch and keyboard. Fill viewport stretches short sheets; Restore column widths returns to the source layout. Display adjustments last only for this preview. There are no editing or download controls; document content keeps its own colors.

Word keeps authored paper geometry and margins; DOCX also displays saved page breaks, headers, footers and notes. PPT restores font sizes, character styles, paragraph alignment and master text styles; PPTX adapts when the workspace is resized. PDF respects each page's crop and rotation and repaints sharper pages when zoomed. XLSX restores theme colors, rich text, borders, row heights and hidden rows or columns. Saved formula results take priority; missing supported results are calculated locally in a disposable Worker, without macros or network access.

Worksheets are no longer cut off at 1,000 rows or 100 columns. XLSX streams visible cells in a Worker; PDF uses HTTP byte ranges when available. Word, PDF and presentations release distant rendering resources and restore content when revisited. Source bytes or compact page representations remain necessary. Word, presentations and legacy XLS still have initial parsing costs; safety budgets remain in place.

EdgePress automatically exposes this page's reading, internal navigation and document controls through native WebMCP when the browser supports it. Other browsers keep the ordinary interface without warnings. No bridge is injected into document frames, and external documents retain their consent checks.

All seven samples were supplied by the site operator; publisher names remain intact. The supplied PDF contains eight actual pages. Previews open directly, with no original-file download links.

Word DOCX
Word DOC
PDF
PPT
PPTX
Excel XLSX
Excel XLS
doc-views

Watch the document preview walkthrough

Supplied documents: use in-document workspace and zoom icons for Word DOC/DOCX, read eight continuous PDF pages, inspect PPT/PPTX slides, and navigate Excel XLS/XLSX cells and worksheet tabs. The Summary demonstration includes calculated results, column dragging, Fill viewport and restoring source widths. Recorded in isolated Chromium; click to play.

Use it in an article or Pages text
!document[Example report](/documents/report.docx)

Documents scroll through numbered, separated pages, without previous/next buttons. Use document for PDF and Office; use media-viewer for locally bundled images, video or mixed attachments. Only the selected media attachment mounts; video bytes wait for Play. For remote resources, set service to an enabled external-api consent service and explicitly allow each image/media/connect origin in its CSP. Captions require captionLanguage; use silent: true without captions only for a genuinely silent clip.

Pages viewer elements
[
  {
    "columns": 1,
    "cells": [
      [
        {
          "type": "document",
          "title": "Report",
          "src": "/documents/report.pdf"
        },
        {
          "type": "media-viewer",
          "title": "Photos and video",
          "items": [
            {
              "type": "image",
              "src": "/images/photo.webp",
              "originalSrc": "/images/photo-original.webp",
              "alt": "Detail of the project interface"
            },
            {
              "type": "video",
              "src": "/videos/walkthrough.mp4",
              "poster": "/images/poster.webp",
              "label": "Project walkthrough",
              "captions": "/videos/walkthrough.en.vtt",
              "captionLanguage": "en"
            }
          ]
        }
      ]
    ]
  }
]