TIFF images across Office files
Supported TIFF images can now appear in Word documents, Excel workbooks and PowerPoint presentations instead of being left blank. The same image support is available in regular and worker rendering modes.
- Use one shared TIFF module with DOCX, XLSX and PPTX viewers.
- Keep TIFF code out of applications that do not need it.
- Open TIFF-containing files without extra setup in Try Yours or the VS Code extension.
Choose the integration
Library applications opt in by importing tiff from @silurus/ooxml/tiff and passing it to the Viewer or document engine. The Production decisions page lists every optional module and shows the complete setup.
The official Try Yours experience and the VS Code extension enable all first-party optional renderers, including TIFF, so end users receive the full viewing feature set.
The TIFF module is built for images inside Office files, not as a general-purpose TIFF library. As a small by-product, it can also provide a simple preview of a supported standalone TIFF file.
Enable TIFF images
import { DocxViewer } from '@silurus/ooxml/docx';
import { tiff } from '@silurus/ooxml/tiff';
const viewer = new DocxViewer(canvas, { tiff });
await viewer.load(source); More faithful Word page layout
Word documents now preserve the intended inner margins of legacy text boxes and avoid separating parallel table-cell content when a row has no safe place to break on the current page.
Upgrading
No migration is required. Existing applications keep the same defaults, and applications that do not display TIFF images do not need to add the module.
The initial release supports a bounded set of TIFF images commonly embedded by Office. Unsupported TIFF variants are skipped without stopping the rest of the document from rendering.