@FunctionalInterface public interface CreatePageStreamFunction
More details about its usage can be found in PreviewOptions class or in a documentation.
Example usage:
PreviewOptions previewOptions = new PreviewOptions(pageNumber -> {
return new FileOutputStream("/path/to/pages/page-" + pageNumber + ".png");
});
PreviewOptions| Modifier and Type | Method and Description |
|---|---|
OutputStream |
invoke(int pageNumber)
Function that is called by Comparison to create output stream where page preview image will be saved.
|
OutputStream invoke(int pageNumber)
pageNumber - The number of previewed page.Copyright © 2024. All rights reserved.