/GhostXPS

.NET Standard simple XPS to PDF converter using GhostXPS utility.

Primary LanguageC#GNU General Public License v3.0GPL-3.0

GhostXPS

.NET Standard simple XPS to PDF converter using GhostXPS utility.

Table of contents

Installation

Grab the latest GhostXPS NuGet package and install it into your project.

Install-Package GhostXPS

Usage

After successful installation of GhostXPS NuGet package you could convert your XPS files by using XpsConverter static class from GhostXPS namespace.

First import GhostXPS namespace:

using GhostXPS;

Then use XpsConverter static class methods for convertion:

// The path to your XPS file.
 var xpsFilePath = "Ghost.xps"

// Converts you XPS file to the PDF file at the same location.
 XpsConverter.Convert(xpsFilePath);

// The path for saving PDF file.
 var pdfFilePath = "Ghost.pdf"

// Converts you XPS file to the PDF file at the provided location.
XpsConverter.Convert(xpsFilePath, pdfFilePath);