status = doc:SetPagesConfiguration(page_per_pages)
An application can change the setting of a pages tree by invoking doc:SetPagesConfiguration(). If page_per_pages parameter is set to more than
zero, a two-tier pages tree is created. A root "Pages" object can own 8191 "Pages" object, and each lower "Pages" object can own page_per_pages "Page" objects.
As a result, the maximum number of pages becomes 8191 * page_per_pages page. An application cannot invoke doc:SetPagesConfiguration() after a page
is added to document.
When doc:SetPagesConfiguration() succeeds, it returns #HPDF_OK. Otherwise, it returns an error code and the error handler is called.
#HPDF_INVALID_DOCUMENT - An invalid document handle is set.
#HPDF_INVALID_DOCUMENT_STATE - A page object already exists in a document.
#HPDF_FAILED_TO_ALLOC_MEM - Memory allocation failed.