Custom Templates
Custom page templates can be created by implementing the HtmlDocTemplate interface and associating it with your HtmlDocSerializer using the HtmlDocSerializer.Builder.template(Class) setting.
The interface implementation is open-ended allowing you to define the contents of the page any way you wish.