String title,
String subject
)
{
// Viewer preferences.
ViewerPreferences view = new ViewerPreferences(document); // Instantiates viewer preferences inside the document context.
document.setViewerPreferences(view); // Assigns the viewer preferences object to the viewer preferences function.
view.setDisplayDocTitle(true);
// Document metadata.
Information info = new Information(document);
document.setInformation(info);
info.setAuthor("Stefano Chizzolini");