跪拜 Guibai
← All articles
Backend

XPS Files from Industrial Devices: SumatraPDF Opens What PDF Editors Can't

By 修己xj ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

A .xps file stops equipment data workflows cold until you have the right reader. SumatraPDF is a one-download fix, and the Windows optional XPS Viewer works when installing third-party software is off the table.

Summary

Electronic tensile testing machines and other industrial gear often export reports as .xps files, a fixed-layout document format Microsoft built to rival PDF. The format uses XML to describe page content and packages everything in a ZIP container following the Open Packaging Conventions. That makes it structurally different from PDF, which is why Adobe Acrobat, Foxit, and virtually every PDF editor fail to open it. The file isn't corrupt; the software simply lacks an XPS parsing engine.

Microsoft folded XPS into Windows Vista and later, and any program can generate one through the 'Microsoft XPS Document Writer' virtual printer. But the format never won over the PDF ecosystem, and today it lingers mainly in niche devices and enterprise intranets. For local viewing, SumatraPDF is the most direct fix: a free, open-source Windows reader that natively supports XPS and OXPS with no plugins or runtime libraries. Alternatively, Windows 10 and 11 ship a hidden XPS Viewer that you can enable under Settings → System → Optional Features.

The takeaway: when a device hands you a .xps report, reach for SumatraPDF first, and treat the Windows built-in viewer as a fallback for those who avoid third-party installs.

Takeaways
— XPS is a Microsoft fixed-layout format built on XML and packaged as a ZIP archive using OPC.
— Most PDF editors, including Adobe Acrobat and Foxit, lack XPS parsing and cannot open these files.
— SumatraPDF is a free, open-source Windows reader that natively supports XPS and OXPS without plugins.
— Windows 10 and 11 include an XPS Viewer, but it must be installed through Optional Features in Settings.
— The format was Microsoft's competitor to PDF but now appears mainly in industrial devices and enterprise intranets.
Conclusions

XPS's survival in industrial equipment shows how niche formats persist in closed verticals long after consumer software abandons them.

Microsoft's decision to hide the XPS Viewer in Optional Features is a quiet admission that the format lost the consumer battle.

The report-generation software on many industrial devices picks XPS by default, so engineers will keep tripping on this until manufacturers change their export paths.

Concepts & terms
XPS
XML Paper Specification: a fixed-layout document format from Microsoft that describes pages in XML and packages data in a ZIP container per OPC. It preserves layout across devices and doesn't require the original authoring software.
OPC
Open Packaging Conventions: a Microsoft spec for packaging XML and binary parts into a ZIP archive, used by XPS and Office Open XML formats.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗