set New Page Factory
Sets a NewPageFactory that will be used by the document editor. The factory will be called every time the user wants to add a new page to the edited document. Setting it to null will tell the document editor to use the default factory (which is using a page creation dialog).
Note: When setting a factory this must be done each time the activity is recreated, since it won't be retained.
Parameters
new Page Factory
Factory that will return com.pspdfkit.document.processor.NewPage instances for the document editor.