Implement this interface if you want To have your own cusTom method called during build and rendering of page layout model in Java....Exception { Document doc = new Document(); doc.getBuiltInDocumentPr()...DocumentBuilder(doc); builder.writeln("Hello world!"); doc.getLayoutOptions()...