Add support for document header/footer replacement

Uncategorized