Edit/Modify FixedDocument in FixedDocumentSequence in XPS using Aspose.XPS for .NET

According to the XPS specification and the MS API, an XPS file contains a single FDS (FixedDocumentSequence).
A FDS contains one or more FD (FixedDocument)
Each FD contains one or more FP (FixedPages)

I’m puzzled because the Aspose.XPS API doesn’t seem to expose the hierarchy of FDS/FD/FP. What happens if you open and modify an XPS document whose FDS contains more than one FD? Or say you want to edit the second FD in a FDS? Or extend a FDS using multiple FD? Is this possible?


Thanks for your inquiry.

Would you please share your sample XPS document with us. We will test the scenario in our environment and address it accordingly.

XPSSample.zip (351.4 KB)
The zipped xps file contains four FixedDocuments,
FD #1 has 3 FixedPages
FD #2 has 1 FixedPage
FD #3 has 8 FixedPages
FD #4 has 1 FixedPage
so 13 pages total


Thanks for providing sample XPS document.

We have logged an investigation ticket as XPSNET-11 in our issue tracking system. We will investigate the feasibility of the feature and keep you informed in case of further updates. Please spare us little time.

We are sorry for the inconvenience.


Thanks for your patience.

Earlier logged feature request (filed as XPSNET-11) has been resolved in Aspose.XPS for .NET 18.8. Please use following code snippet with latest version of the API to achieve the functionality.

// Load a XPS with multiple FDs
Aspose.Xps.XpsDocument doc = new Aspose.Xps.XpsDocument(dataDir + "combined.01.xps");
// Load desired fixed document/page in XpsDocument initialized instance
// Remove desired FD

Many thanks.