You can find more detials at: Convert EPUB to XPS in Java
Last active
March 16, 2022 08:17
-
-
Save aspose-com-gists/b855f5608c8ffdb551c3655b00c97d15 to your computer and use it in GitHub Desktop.
Convert EPUB to XPS Programmatically using Java
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.getPageSetup().setAnyPage(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