This small page illustrates dynamic setting of the foreground and background colors for a document
Background color:
Foreground color: