// The path to the documents directory. String dataDir = Paths.get(Utils.getSharedDataDir(SaveOneNoteDocToStream.class), "load").toString(); // Load the document into Aspose.Note. Document oneFile = new Document(Paths.get(dataDir, "Aspose.one").toString()); ImageSaveOptions options = new ImageSaveOptions(SaveFormat.Tiff); options.setTiffCompression(TiffCompression.PackBits); oneFile.save(Paths.get(dataDir, "SaveToTiffUsingPackBitsCompression.tiff").toString(), options);