Allow saving as XPS (fixed formats) from WordAPI

Allow saving as XPS (fixed formats) from WordAPI
11

Upvotes

Upvote

 Jun 23 2021
0 Comments 
New

Our tests have shown that the XPS output on different versions of MS Office (even minor version changes) is different. Same, saving the XPS from different client machines, outputs different XPS files.

We want to be able to save the client version of XPS from an OfficeJS addin. We are aware of the possibilities to generate it on the server (using Open XML for example) but this won't do it for us.

 

WordApi supports PDF but not XPS. We need XPS added to the FileType enum, https://docs.microsoft.com/en-us/javascript/api/office/office.filetype?view=word-js-1.3  

It might be that Word Online will not support XPS but the desktop version must support it.