Some test text!

menu
search
Memory managementkeyboard_arrow_down

Memory management FAQ

linkShould I call both Dispose() and Destroy() on PDFDoc? What is the difference? I don't see Dispose() in the API documentation.

You should either call Dispose() or Destroy() but not both. Destroy() is a PDFTron API that closes the PDFDoc and releases resources, we would recommend you call this. On the other hand Dispose() is compiler generated and results in the destructor being called which in turn internally calls Destroy(). Please see the following description from the Microsoft documentation page:

"When you declare a public destructor, the compiler generates the code so that the ref class implements Platform::IDisposable and the destructor implements the Dispose method. Platform::IDisposable is the C++/CX projection of Windows::Foundation::IClosable. Never explicitly implement these interfaces."

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