Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// For complete examples and data files, please go to https://github.com/GroupDocs-Merger/GroupDocs.Merger-for-Java
string sourceFile = "C:\documents\filename";
string password = "SomePasswordString";
pageNumbers.add(6);
pageNumbers.add(4);
ImageOptions pagesOptions = new ImageOptions(pageNumbers, FileFormat.Xlsx, password);
InputStream documentExample = new FileInputStream(sourceFile);
List<PageImage> images = new DocumentHandler().getPagePreview(documentExample, pagesOptions);
PageImage page = images.get(1);
Console.WriteLine(page.getPageNumber());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.