// For complete examples and data files, please go to https://github.com/aspose-note/Aspose.Note-for-Java String inputFile = "Sample1.one"; Path inputPath = Utils.getPath(UsingSplittingAlgorithmMethod.class, inputFile); String outputFile = "output.Jpeg"; Path outputPath = Utils.getPath(UsingSplittingAlgorithmMethod.class, outputFile); Document doc = new Document(inputPath.toString()); PdfSaveOptions pdfSaveOptions = new PdfSaveOptions(); pdfSaveOptions.setPageSplittingAlgorithm(new AlwaysSplitObjectsAlgorithm()); // or pdfSaveOptions.setPageSplittingAlgorithm(new KeepPartAndCloneSolidObjectToNextPageAlgorithm()); // or pdfSaveOptions.setPageSplittingAlgorithm(new KeepSolidObjectsAlgorithm()); try { doc.save(outputPath.toString(), pdfSaveOptions); } catch (Exception ex) { System.out.println("Exception: " + ex.getMessage()); }