Support custom headers and footers in papersize
Support phantom callbacks
use full reference, just in case