You can read more details at: Convert EPUB to XPS File in C#
Last active
March 16, 2022 08:18
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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