I have rewritten a paginator to display header and footer for my documents. Everything seems to work until I save it as xps Document :
public void SaveAsX