Some test text!

menu
How should I handle the memory management in .NET?keyboard_arrow_down

How should I handle the memory management in .NET?

linkI have PDF documents with ~2 thousands pages. I tried to force GC.Collect() but this is a performance penalty for me

GC.Collect() is not necessary. You could simply call Dispose() (or Close()) on PDFDoc, PDFDraw, ElementBuilder, ElementWriter, TextExtractor, and other larger objects. All memory will be instantly released. You can also use IDispose pattern (on 'using' C# keyword) to immediately release these resources.

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.