Adds a new header or footer to a document or to a certain section of the document. If a header or footer is added to the complete document the first section receives the header or footer and all other sections receive headers or footers which are connected to their previous section. To add more than one header or footer a combination of the HeaderFooterType enumeration values can be used.

<void> HeaderFooterCollection.add(<HeaderFooterType> headerFooterType, [<RequestBooleanCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
headerFooterType Specifies the headers and/or footers to add.
callback Optional. Receives true, if the header or footer could be added. Otherwise it is false.
errorCallback Optional. Is called when the operation failed with an error.