Some test text!

menu
search
Close a documentkeyboard_arrow_down

Is it necessary to close a document before loading another one?

The loadDocument API internally uses the closeDocument API to make sure that things such as DOM elements, event listeners and any other forms of memory consumers related to the current document will be cleaned up before loading another document. This means that there is no need to explicitly close a document beforing loading another one. However, you may want to call closeDocument to keep the memory usage low while still showing the UI if no documents should be loaded currently.

Get the answers you need: Support

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.

PDFTron Receives USD$71 Million Growth Investment Led By Silversmith Capital Partners

Learn more
close