Open XML Paper Specification explained

Open XML Paper Specification (OpenXPS)
Extension:.oxps, .xps
Mime:application/oxps, application/vnd.ms-xpsdocument
Owner:Microsoft, Ecma International
Latest Release Version:First Edition
Genre:Page description language, document file format
Contained By:Open Packaging Conventions
Extended From:ZIP, XML, XAML
Standard:ECMA-388

Open XML Paper Specification (also referred to as OpenXPS) is an open specification for a page description language and a fixed-document format. Microsoft developed it as the XML Paper Specification (XPS). In June 2009, Ecma International adopted it as international standard ECMA-388. It is an XML-based (more precisely XAML-based) specification, based on a new print path (print processing data representation and data flow) and a color-managed vector document format that supports device independence and resolution independence. In Windows 8 .xps was replaced with the ECMA standard .oxps format which is not natively supported in older Windows versions.

OpenXPS was introduced by Microsoft as an alternative to Portable Document Format (PDF). However, PDF remained the standard choice, and support for and user familiarity with XPS files is limited. It has been described as neglected technology, which may cause difficulties to recipients of documents in a format they are not familiar with.[1]

Format

The XPS document format consists of structured XML markup that defines the layout of a document and the visual appearance of each page, along with rendering rules for distributing, archiving, rendering, processing and printing the documents. Notably, the markup language for XPS is a subset of XAML, allowing it to incorporate vector elements in documents.

An XPS file is a ZIP archive using the Open Packaging Conventions, containing the files which make up the document. These include an XML markup file for each page, text, embedded fonts, raster images, 2D vector graphics, as well as the digital rights management information. The contents of an XPS file can be examined by opening it in an application which supports ZIP files.

There are two incompatible XPS formats available. The original document writer printed to .xps in Windows 7 and Windows Vista. Beginning with Windows 8, the document writer defaults to the .oxps format.[2]

Microsoft provides two free converters. XpsConverter converts documents between .xps and .oxps format,[3] while OxpsConverter converts documents from .oxps to .xps format.[4]

Features

XPS specifies a set of document layout functionality for paged, printable documents. It also has support for features such as color gradients, transparencies, CMYK color spaces, printer calibration, multiple-ink systems and print schemas. XPS supports the Windows Color System color management technology for color conversion precision across devices and higher dynamic range. It includes a software raster image processor (RIP) (downloadable separately).[5] The print subsystem supports named colors, simplifying color definition for images transmitted to printers supporting those colors.

XPS supports HD Photo images natively for raster images.[6] The XPS format used in the spool file represents advanced graphics effects such as 3D images, glow effects, and gradients as Windows Presentation Foundation primitives, which printer drivers could offload their rasterization to the printer in order to reduce computational load if the printer is capable of rasterizing those primitives.

Comparison with PDF

Like Adobe Inc.'s PDF, XPS is a page description language using fixed-layout document format designed to preserve document fidelity,[7] providing device-independent document appearance. PDF is a database of objects that may be created from PostScript or generated directly from applications, whereas XPS is based on XML. Both formats are compressed, albeit using different methods. The filter pipeline architecture of XPS is also similar to the one used in printers supporting the PostScript page description language. PDF includes dynamic capabilities purposely not supported by the XPS format.[8] There are many resources for converting from XPS to PDF and some for converting from PDF to XPS. A method often suggested is to open an XPS file in a program with printing capability, and then "print" to a virtual PDF printer such as Microsoft Print to PDF,[9] with a similar procedure to convert from PDF to XPS.

Comparison between OXPS and PDF
File formatOpenXPSPDF
Original authorMicrosoftAdobe Systems
Standardized byEcma International[10] ISO
First public release date2006[11] 1993[12]
Latest stable versionEcma International Standard ECMA-388 — Open XML Paper Specification — 1st EditionISO 32000-1:2008 — Document management — Portable document format — Part 1: PDF 1.7
Latest standardised versionEcma International Standard ECMA-388 — Open XML Paper Specification — 1st EditionISO 32000-2:2017 — Document management — Portable document format — Part 2: PDF 2.0
Language typeMarkup language (XML)[13] [14] PDF is a database of objects that may be created from PostScript or generated directly by an application.
XML schema representationXML Schema (W3C) (XSD) and RELAX NG (ISO/IEC 19757-2)[15] N/A
Compression formatContainer: ZIP[16] (Although flate(should be Deflate) is mentioned in third-party document, no specific compression method is mandated for the container.)[17]
Payload: JPEG, PNG, TIFF, JPEG XR are compressed based on their file types.[18]
LZW for both text and images; JPEG, JPEG 2000, and RLE for images only[19]
Container structureOpen Packaging Conventions (ISO/IEC 29500-2:2008)
3D graphic contentX3D (ISO/IEC 19775/19776)U3D (Standard ECMA-363),[20] [21] PRC (Product Representation Compact, ISO 14739-1:2014)[22]
Full file content compression[23]
Fast page by page download from web servers
Multiple documents in one file[24]
Document bookmarks and outline[25] [26]
Reflowable[27] [28]
Hyperlinks[29]
Page thumbnails[30]
Annotations[31]
Image transparencies
Gradient fills
Alpha channel in color definitions
Support for multiple transparency blending modes
Change tracking
Password protection
Digital signatures[32]
JPEG (RGB and CMYK) (ISO/IEC 10918-1)
JPEG 2000 (ISO/IEC 15444-1)
JBIG2 for bi-level images
PNG
TIFF (RGB and CMYK)
JPEG XR (ISO/IEC 29199-2:2009)
Gray support
RGB support
CMYK support
Spot color support
Filename extensions[33]
Internet media types[34]
Standard licensingNon-free content, downloaded free-of-charge from Ecma
File formatOpenXPSPDF

Viewing and creating XPS documents

Windows Vista and later supports both creating and viewing XPS.[35] In addition, the printing architecture of Windows Vista uses XPS as the spooler format.

Apps can create XPS documents by printing to XPS Document Writer, a virtual printer that comes bundled with Windows. These files open in XPS Viewer, an optional component that comes with Windows Vista and later. In Windows Vista, XPS is hosted within Internet Explorer, but in subsequent versions, it is a standalone app. Both versions support digital rights management and digital signatures. Windows 8 also comes with an app called "Reader", which reads XPS and PDF files.

The .NET Framework 3.0 installer for Windows XP also adds the IE-hosted XPS Viewer, as well as XPS Document Writer. Since then, Microsoft released the XPS Essentials Pack for Windows XP, Server 2003, and Vista,[36] which includes the standalone viewer, an IFilter plug-in that helps Windows Desktop Search index the contents of XPS files, and another plug-in for Windows Explorer to help generate thumbnails for XPS files.[37] Installing this pack enables operating systems prior to Windows Vista to use the XPS print spooler[38] instead of the older GDI-based spooler.[39] The XPS print spooler can produce better quality prints for printers that directly consume the XPS format.[40]

Third-party software

NamePlatformFunction
EvinceLinuxA document viewer for multiple document format; can display XPS documents thanks to libgxps.[41]
MuPDFLinux, Windows, Android, iOSA lightweight PDF, XPS and OpenXPS viewer; licensed under the terms of AGPL v3
Harlequin RIPWindows, Mac OS, Linux, ThreadXRenders XPS files for print or display; used in desktop printers, digital production presses, prepress and software[42]
OkularLinux, FreeBSD, Windows, SolarisThe document viewer of the KDE project; can display XPS documents[43]
STDU ViewerMicrosoft WindowsCan display XPS documents as well as other electronic document formats. Other STDU applications may handle organizing/browsing, conversion, and extraction.[44]
Sumatra PDFWindowsCan display XPS documents, among other formats, since version 1.5, thanks to MuPDF[45]
Xara Designer ProWindowsVector graphics app with XPS support
XPS AnnotatorWindowsStandalone XPS viewer which can digitally sign and annotate XPS documents, and convert XPS documents to common picture formats.[46]
XPS ViewerWindowsFree app from Software Imaging Ltd. for viewing XPS files[47]

Hardware

XPS had the support of printing companies such as Konica Minolta, Sharp,[48] Canon, Epson, Hewlett-Packard,[49] and Xerox[50] and software and hardware companies such as CSR (formerly Zoran),[51] and Global Graphics.[52] Native XPS printers were introduced by Canon, Konica Minolta, Toshiba, and Xerox.[53] Devices at the Certified for Windows level of Windows Logo conformance certification were required to have XPS drivers for printing since 1 June 2007.[54]

Licensing

Microsoft released XPS under a royalty-free patent license called the Community Promise for XPS,[55] [56] allowing users to create implementations of the specification that read, write and render XPS files as long as they included a notice within the source that technologies implemented may be encumbered by patents held by Microsoft. Microsoft also required that organizations "engaged in the business of developing (i) scanners that output XPS Documents; (ii) printers that consume XPS Documents to produce hard-copy output; or (iii) print driver or raster image software products or components thereof that convert XPS Documents for the purpose of producing hard-copy output, [...] will not sue Microsoft or any of its licensees under the XML Paper Specification or customers for infringement of any XML Paper Specification Derived Patents (as defined below) on account of any manufacture, use, sale, offer for sale, importation or other disposition or promotion of any XML Paper Specification implementations." The specification itself was released under a royalty-free copyright license, allowing its free distribution.[57]

On September 13, 2011, Monotype Imaging announced it had licensed its XPS-to-PCL 6 and XPS-to-PostScript vector conversion filters to Microsoft for use in the next version of Windows.[58] [59]

History and standardization

In 2003, Global Graphics was chosen by Microsoft to provide consultancy and proof of concept development services on XPS and worked with the Windows development teams on the specification and reference architecture for the new format.[60] Microsoft submitted the XPS specification to Ecma International.[61] In June 2007 Ecma International Technical Committee 46 (TC46) was set up to develop a standard based on the Open XML Paper Specification (OpenXPS).[62]

At the 97th General Assembly held in Budapest, June 16, 2009, Ecma International approved Open XML Paper Specification (OpenXPS) as an Ecma standard (ECMA-388).[63] TC46's members included:

Malware vulnerability

XPS files can be infected with malware.[64] [65]

See also

External links

Notes and References

  1. Web site: What Is an XPS File and Why Does Windows Want Me to Print to One? . Hoffman . Chris . How-To Geek . 5 July 2017 .
  2. Web site: Mitch . Prince . XPS and OXPS file support in Windows 7 and Windows 8 . dead . Mitch Prince's Blog . . https://web.archive.org/web/20121216040358/http://blogs.msdn.com/b/mitchp/archive/2012/09/25/xps-and-oxps-file-support-in-windows-7-and-windows-8.aspx . 16 December 2012 . 3 December 2012 .
  3. Web site: XpsConverter . . 2021-12-15.
  4. Web site: You cannot open an .oxps file in Windows 7 or in Windows Server 2008 R2. Microsoft Support. 2022-11-04.
  5. Web site: Reference Raster Image Processor (RIP) . . 2007-01-09 . 2022-11-04.
  6. Web site: HD Photo. dead . Windows Live Photo & Video Blog . . 12 Mar 2007 . https://web.archive.org/web/20160305073853/http://blogs.msdn.com/b/pix/archive/2007/03/12/hd-photo.aspx . 5 March 2016.
  7. News: Foley . Mary Jo . Microsoft Readies New Document Printing Specification . https://archive.today/20130128190142/http://www.microsoft-watch.com/content/operating_systems/microsoft_readies_new_document_printing_specification.html . dead . 2013-01-28 . Microsoft Watch. Ziff Davis. 2005-04-25 . 2009-12-10. Seattle.
  8. Web site: Comparison of PDF, XPS and ODF by an ISV providing PDF solutions . Amyuni . 2009-12-10.
  9. Web site: Easy steps for converting XPS files to PDF . . Adobe . n.d. . 6 January 2022 . https://web.archive.org/web/20220714091150/https://www.adobe.com/acrobat/hub/how-to/steps-to-convert-xps-to-pdf. 2022-07-14. live.
  10. News: XPS format passes first standardisation test. 2009-07-11 . https://web.archive.org/web/20071224200156/http://www.printweek.com/news/674714/XPS-format-passes-first-standardisation-test/ . 2007-12-24 . dead. Simon. Nias. PrintWeek. 2007-08-02. Haymarket Media.
  11. Web site: XML Paper Specification . . 2009-07-11 . https://web.archive.org/web/20090825035207/http://www.microsoft.com/whdc/xps/xpsspec.mspx . 2009-08-25 . dead. 2006-10-24.
  12. Web site: All About Adobe PDF. first published July 1, 2005. 2021-05-24. Vangie. Beal. Webopedia. TechnologyAdvice.
  13. Web site: XPS FAQ . 2009-07-06 . https://web.archive.org/web/20100705090927/http://www.globalgraphics.com/xps/faq.pdf . 2010-07-05 . dead. January 2008. Global Graphics Software Limited.
  14. Web site: XML Paper Specification (XPS). VeryDOC.com.
  15. Book: Standard ECMA-388: Open XML Paper Specification (OpenXPS®) . . June 2009. 1st.
  16. Web site: ZDNet Definition for: XML Paper Specification. https://web.archive.org/web/20080324112729/http://dictionary.zdnet.com/definition/XML+Paper+Specification.html. dead. 2008-03-24. ZDNet. CNET.
  17. ECMA-388 1st Edition / June 2009, 8.2 Package
  18. ECMA-388 1st Edition / June 2009, 9.1.5 Image Parts
  19. Web site: PDF Reference. https://web.archive.org/web/20080624230300/http://www.adobe.com/devnet/acrobat/pdfs/pdf_reference_1-7.pdf. 2008-06-24. dead. November 2006. Adobe. 6th. 39.
  20. Web site: Acrobat 3D Developer Center. https://web.archive.org/web/20070604144102/https://www.adobe.com/devnet/acrobat3d/. 2007-06-04. Adobe. dead.
  21. News: U3D format debuts in Acrobat 7 . CADalyst . Sara . Ferris . February 2005. https://web.archive.org/web/20060623065200/http://findarticles.com/p/articles/mi_m0BLL/is_2_22/ai_n13487390/. 2006-06-23. dead. FindArticles.
  22. Web site: Amiouny. Dany. PDF or XPS: Choose the Right Document Format for your Applications. Amyuni. https://web.archive.org/web/20220412015848/https://www.amyuni.com/downloads/Amyuni%20Whitepaper%20-%20PDF%20vs%20XPS.pdf. 2022-04-12. live.
  23. ISO 32000-1:2008 Document management – Portable document format – Part 1: PDF 1.7. 51502. July 2008.
  24. https://admin.adobe.acrobat.com/_a295153/p81291074/ A9 PDF Binders
  25. Web site: Look Out, Acrobat: Microsoft XPS is on Your Tail. 2009-07-15 . https://archive.today/20130131090212/http://www.pdfzone.com/c/a/Authoring/Look-Out-Acrobat-Microsoft-XPS-Is-on-Your-Tail/ . 2013-01-31 . dead. Don. Fluckinger. 2006-06-01. PDFzone. Ziff Davis.
  26. Portable Document Format: An Introduction for Programmers. MacTech. Kas. Thomas. 1999. 15. 9. Xplain.
  27. Web site: An Introduction to Windows Presentation Foundation. 2010-11-05. first published September 2005. David F.. Sklar. Andy. van Dam. Microsoft Learn.
  28. Book: Web Accessibility: Web Standards and Regulatory Compliance. Richard. Rutter. Patrick H.. Lauke. Cynthia. Waddell. Jim. Thatcher. Shawn Lawton. Henry. Bruce. Lawson. Andrew. Kirkpatrick. Christian. Hellmann. Michael R.. Burks. Bob. Regan. Mark. Urban. The Reflow feature depends on tags in order to redraw the PDF page to fit the existing window width, but reflows content withon only a single page at a time.. 379. 2007-03-19. Apress. 978-1-59059-638-8. 2022-11-04. 3.
  29. Web site: Microsoft Adds XPS In Office 12 To Fight Adobe. 2020-12-21 . 2009-10-05 . https://web.archive.org/web/20091005151655/http://www.informationweek.com/news/software/enterpriseapps/showArticle.jhtml?articleID=172901469 . dead. InformationWeek. TechWeb News. Gregg. Keizer. 2005-10-28.
  30. Web site: Adobe's Acrobat – providing the missing link? . 2020-12-21 . 2012-02-17 . https://web.archive.org/web/20120217011422/http://eprints.nottingham.ac.uk/219/1/meckler94.pdf . dead. David F.. Brailsford. University of Nottingham. May 1994.
  31. Web site: XPS Annotator . 2012-01-28 . 2010-01-31 . https://web.archive.org/web/20100131163919/http://www.xpsdev.com/xps-annotator . dead. XPSDev.com.
  32. Web site: Portable Document Format (PDF) Security Analysis and Malware Threats. Aexandre. Blonce. Eric. Filiol. Laurent. Frayssignes.
  33. Web site: explaining PostScript. 2009-07-11 . https://web.archive.org/web/20090301184448/http://amath.colorado.edu/documentation/postscript/WhatIs.html . 2009-03-01 . dead. Applied Mathematics. University of Colorado.
  34. 8118. The application/pdf Media Type. March 2017. 2070-1721. M.. Hardy. L.. Masinter. D.. Markovic. Adobe Systems Incorporated. D.. Johnson. PDF Association. M.. Bailey. Global Graphics. 10.17487/RFC8118. IETF.
  35. Web site: XPS Documents . . 2009-12-10. https://web.archive.org/web/20100111103219/http://www.microsoft.com/windows/windows-vista/features/xps.aspx. 2010-01-11. dead.
  36. Web site: Microsoft XML Paper Specification Essentials Pack. Microsoft. https://web.archive.org/web/20090203104253/http://www.microsoft.com/downloads/details.aspx?FamilyID=b8dcffdd-e3a5-44cc-8021-7649fd37ffee&displaylang=en. 2009-02-03. dead. 2008-11-04.
  37. Web site: View and Generate XPS . Microsoft . https://web.archive.org/web/20091214220525/http://www.microsoft.com/whdc/xps/viewxps.mspx . 2009-12-14 . 2020-02-14.
  38. Web site: Microsoft XML Paper Specification Essentials Pack. Microsoft Download Center. https://web.archive.org/web/20110726164520/http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=11816. 2011-07-26. dead. 2010-02-12.
  39. Web site: XPS and Color Printing Enhancements in Windows Vista . Microsoft Windows . 2007-12-17. https://web.archive.org/web/20110616150808/http://msdn.microsoft.com/en-us/windows/hardware/gg463397.aspx. 2011-06-16. dead.
  40. Web site: https://web.archive.org/web/20120429040748/http://download.microsoft.com/download/9/c/5/9c5b2167-8017-4bae-9fde-d599bac8184a/XPSDrv_FilterPipe.docx. XPSDrv Filter Pipeline: Implementation and Best Practices. Microsoft. 2008-02-07. dead. 2012-04-29. DOCX.
  41. Web site: Apps/Evince. GNOME Wiki. 2022-11-04.
  42. Web site: Native Interpretation in the Harlequin RIP . Global Graphics Software. October 2021. 2022-11-04.
  43. Web site: Okular Document Format Handlers Status . 2022-11-04. Okular.
  44. Web site: Scientific and technical documentation utility products features . 2017-06-22.
  45. Web site: News about Sumatra PDF reader . 2012-01-06 . 2012-01-06 . 2012-04-06 . https://web.archive.org/web/20120406171640/http://blog.kowalczyk.info/software/sumatrapdf/news.html . dead .
  46. Web site: XPS Annotator . 2012-01-28 . 2012-01-28 . 2010-01-31 . https://web.archive.org/web/20100131163919/http://www.xpsdev.com/xps-annotator . dead .
  47. https://www.softwareimaging.com/our-work/xps-viewer/ XPS viewer
  48. Web site: Sharp Open Systems Architecture supports XPS in multi-function printers . Sharpusa.com . 2009-12-10.
  49. Web site: Monckton . Paul . IT Week 10 November 2006, Canon, Epson and HP support for XPS . Itweek.co.uk . 2009-12-10.
  50. Web site: Fuji Xerox and Microsoft Collaborate in Document Management Solutions Field . Fujixerox.co.jp . 2006-11-28 . 2009-12-10.
  51. Web site: Ips Xps . Zoran.com . 2009-12-10.
  52. Web site: Solutions for XPS document sharing and native XPS printing . https://web.archive.org/web/20060312114419/http://www.globalgraphics.com/xps/index.html . dead . March 12, 2006 . Globalgraphics.com . 2009-12-10 .
  53. Web site: XPS Technology Showcase . Microsoft.com . 2007-04-19 . 2009-12-10.
  54. Web site: Windows Logo Program Requirements and Policies . Microsoft.com . 2009-12-10.
  55. Web site: Community Promise for XPS . Microsoft . 2007-01-31. https://web.archive.org/web/20140410164746/http://msdn.microsoft.com/en-us/library/windows/hardware/Dn653988.aspx . 2014-04-10 . 2020-02-14.
  56. Web site: Community Promise for XPS FAQs . Microsoft.com . 2007-01-31 . 2009-12-10 . dead . https://web.archive.org/web/20090919151131/http://www.microsoft.com/whdc/xps/xpscommunitypromisefaq.mspx . September 19, 2009 .
  57. Web site: XML Paper Specification Licensing . Microsoft . https://web.archive.org/web/20061123015448/http://www.microsoft.com/whdc/xps/xpslicense.mspx#EEB . 2005-09-02 . 2006-11-23 . 2020-02-14.
  58. Web site: Monotype Imaging Licenses XPS Printer Driver Solution to Microsoft.
  59. Web site: Monotype Imaging Licenses XPS Printer Driver Solution to Microsoft.
  60. Web site: Global Graphics XPS reference . Redorbit.com . 2006-09-21 . 2009-12-10 . 2011-11-25 . https://web.archive.org/web/20111125032656/http://www.redorbit.com/news/technology/665662/global_graphics_xps_reference_rip_available_from_microsoft/index.html . dead .
  61. Web site: Reimer . Jeremy . War and PDF: Microsoft submits XPS to standards body . Arstechnica.com . 2007-07-01 . 2009-12-10.
  62. Web site: TC46 - XML Paper Specification (XPS) . Ecma-international.org . 2009-12-10 . https://web.archive.org/web/20090129213105/http://www.ecma-international.org/memento/TC46.htm . 2009-01-29 . dead .
  63. Web site: OpenXPS - OpenXML Paper Specification . Steve McGibbon (Microsoft) . 2009-06-17 . dead . https://web.archive.org/web/20120423075901/http://notes2self.net/archive/2009/06/17/openxps-openxml-paper-specification.aspx . April 23, 2012.
  64. Web site: CVE-2022-42397 detail. NIST. National Vulnerability Database. 27 January 2023.
  65. Web site: Analysis of CVE-2020-0605 – Code Execution using XPS Files in .NET . MDSec . 10 May 2020 . 3 October 2023.