We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to convert OXPS to PDF

OXPS is an extension for a file created in the Open XML Paper Specification format. It is like a PDF, and its purpose is to describe the structure and content of a document. An XPS file represents a document with a fixed layout, while including support for features like digital signatures and DRM. XPS is a Microsoft Standardized open format file. The format of the OXPS file is the same as an XPS format. The difference is that an OXPS file is considered an “open” format.

Essential PDF provides support for converting OXPS to PDF using XPSToPdfConverter class.

Assemblies Required

  1. Syncfusion.Compression.Base.dll
  2. Syncfusion.Pdf.Base.dll

The below code snippet illustrates how to convert OXPS to PDF.

Code snippet:

           

//Create converter class.

XPSToPdfConverter converter = new XPSToPdfConverter();

           

//Convert the OXPS to PDF.

PdfDocument document = converter.Convert("HelloWorld.oxps");

 

//Save and close the document.

document.Save("Sample.pdf");

document.Close(true);

 

 

The working sample can be downloaded from the below link:

http://www.syncfusion.com/downloads/support/directtrac/general/ze/OXPSTOPDFSample421600916.zip

Article ID: Published Date: Last Revised Date: Platform: Control:
7479 02/24/2017 02/24/2017 Windows Forms PDF
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon