Because you can't pass a phantom.callback to pageSize.header.contents or pageSize.footer.contents I've added functionality to instead use a string passed to these properties as a template build them into a phantom.callback on the other side.
Two placeholders {pageNumber} and {numberOfPages} are available and replaced on the fly, these come from the phantom callback context.
Because you can't pass a phantom.callback to pageSize.header.contents or pageSize.footer.contents I've added functionality to instead use a string passed to these properties as a template build them into a phantom.callback on the other side.
Two placeholders {pageNumber} and {numberOfPages} are available and replaced on the fly, these come from the phantom callback context.
For example:
I've also adjusted the doc to cover this.