This method terminates the PDF library, this termination is required in order to close the library. Note: It is recommended that all document and page resources be freed explicitly by the user before terminating the PDF library. Therefore
Page.close and
Document.close methods should be called first on all open instances.