You can find all the details at: Convert OneNote File to Image Programmatically using Java
Last active
June 15, 2021 12:06
-
-
Save aspose-com-gists/31355c0db52fee1619cd6cb8488086c8 to your computer and use it in GitHub Desktop.
Convert OneNote File .one to PNG JPG TIFF Image 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
// Load the OneNote file using Document class. | |
Document oneFile = new Document("Aspose.one"); | |
// Initialize ImageSaveOptions and specify SaveFormat. | |
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Tiff); | |
// Set color mode for GrayScale TIFF output | |
options.setColorMode(ColorMode.GrayScale); | |
// Save output file | |
oneFile.save("SaveToTiffGrayscale.tiff", options); |
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
// Load the input Note (.one) file using the Document class. | |
Document oneFile = new Document("Aspose.one"); | |
// Save output JPG image. | |
oneFile.save("SaveToJpegImageUsingSaveFormat_out.jpg", SaveFormat.Jpeg); |
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
// Load the document into Aspose.Note. | |
Document oneFile = new Document("Aspose.one"); | |
// Initialize ImageSaveOptions class object. | |
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Png); | |
// Save the output PNG image. | |
oneFile.save("SaveAsPNG.png", options); |
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
// Load the note file using Document class | |
Document oneFile = new Document("Aspose.one"); | |
// Initialize ImageSaveOptions and specify SaveFormat | |
ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Tiff); | |
// Set ColorMode to Black and White | |
options.setColorMode(ColorMode.BlackAndWhite); | |
// Set Compression Type specific for Black and White image | |
options.setTiffCompression(TiffCompression.Ccitt3); | |
// Save output TIFF file | |
oneFile.save("SaveToTiffBlackAndWhite.tiff", options); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment