@@ -0,0 +1,913 @@
+package com.aspose.note.examples.pages;%0A%0Aimport com.aspose.note.Document;%0Aimport com.aspose.note.Page;%0Aimport com.aspose.note.examples.Utils;%0A%0Aimport java.awt.*;%0Aimport java.io.IOException;%0Aimport java.nio.file.Path;%0Aimport java.nio.file.Paths;%0A%0Apublic class SetPageBackgroundColor %7B%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        // ExStart:SetPageBackgroundColor%0A        // The path to the documents directory.%0A        Path dataDir = Paths.get(Utils.getSharedDataDir(WorkingWithPageRevisions.class), %22pages%22);%0A%0A        // Load OneNote document and get first child%0A        Document document = new Document(dataDir.resolve(%22Sample1.one%22).toString());%0A%0A        for (Page page: document)%0A        %7B%0A            page.setBackgroundColor(Color.MAGENTA);%0A        %7D%0A%0A        document.save(dataDir.resolve(%22SetPageBackgroundColor.one%22).toString());%0A        // ExEnd:SetPageBackgroundColor%0A    %7D%0A%7D%0A

Update existing samples