Skip to content
ComPDF
DemoFAQ
New Release

Open-Source PDF SDK & AI Document Processing

Get the full self-hosted SDK and AI document processing on GitHub. One-click deploy to quickly build your document workflows.

Release Library Resources

Overview

Releases the files and memory resources occupied by the ComPDF Conversion SDK.

Notice

  • After calling this interface to release library resources, the ComPDF Conversion SDK will no longer function properly and must be reloaded.

  • If you only want to release resources occupied by the AI model rather than all SDK resources, call LibraryManager::releaseDocumentAIModel() instead. AI features become unavailable until LibraryManager::setDocumentAIModel() is called again.

Sample

php
// Release only the DocumentAI model (keep the rest of the SDK alive).
LibraryManager::releaseDocumentAIModel();

// Release all library resources.
LibraryManager::release();