Skip to content

Instantly share code, notes, and snippets.

@aspose-com-gists
Last active March 16, 2022 08:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspose-com-gists/20ebdc22e26ad0f2a619e0c2f0143b0d to your computer and use it in GitHub Desktop.
Save aspose-com-gists/20ebdc22e26ad0f2a619e0c2f0143b0d to your computer and use it in GitHub Desktop.
Convert EPUB to XPS Programmatically using C# in .NET or .NET Core
// Create an instance of XpsSaveOptions
XpsSaveOptions options = new XpsSaveOptions();
// Set page size in inches
options.PageSetup.AnyPage = new Page(new Size(Length.FromInches(7),Length.FromInches(3)));
// Call the ConvertEPUB method to convert EPUB to XPS
Converter.ConvertEPUB("input.epub", options, "output.xps");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment