Выберите язык
  1. Продукты
  2. Aspose.Page
  3. XpsConverter
clearbit icon

Page.XpsConverter for .NET

Page.XpsConverter for .NET is a plug-in that is intended to convert XPS files to PDF and images. To run the plug-in developers can either specify the path of the files or directly launch the stream containing XPS files.

Buy for $99
Share
Логотип Instagram Логотип Dribbble Логотип Twitter Логотип YouTube

Features:

1. Reads data from various sources, including file path and file streams.

2. Supports combinations of the file path and file streams in input and output.

3. Can convert to PDF or image.

Convert XPS to PDF and image.

XPS Converter is a plug-in that allows you to convert XPS to PDF and images

Try code snippets below:

Convert XPS to PDF.

The following example shows how to convert XPS to PDF:

1
2
3
4
5
6
7
{
    XpsConverter converter = new XpsConverter();
    XpsConverterToPdfOptions opt = new XpsConverterToPdfOptions();
    opt.AddDataSource(new FileDataSource("input.xps"));
    opt.AddSaveDataSource(new FileDataSource("output.pdf"));
    ResultContainer resultContainer = converter.Process(opt);
}

Convert XPS to image.

The following example shows how to convert XPS to image:

1
2
3
4
5
6
7
{
    XpsConverter converter = new XpsConverter();
    XpsConverterToImageOptions opt = new XpsConverterToImageOptions(ImageFormat.Jpeg);
    opt.AddDataSource(new FileDataSource("input.xps"));
    opt.AddSaveDataSource(new FileDataSource("output.jpg"));
    ResultContainer resultContainer = converter.Process(opt);
}

How to convert XPS to PDF


  1. Reference Aspose.Page in your project: NuGet | DLL
  2. Set Metered license keys: Doc
  3. Convert!

System Requirements

Just make sure that you have the following prerequisites.

  • Microsoft Windows or a compatible OS with .NET Framework or .NET Core
  • VBScript, Delphi, C++ via COM Interop.
  • Development environment like Microsoft Visual Studio.
  • Aspose.Page for .NET DLL referenced in your project.