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.

Initialize Library Resources

Overview

Initialize the necessary file and memory resources required by the ComPDF Conversion SDK.

The Ruby SDK initializes with its packaged internal resource directory. You do not need to pass a resource path.

Notes

  • You must verify the license and initialize SDK resources before calling any conversion interface.
  • When using OCR, Layout Analysis, Table Recognition, PDF to Searchable PDF, or PDF to OFD, make sure the DocumentAI model is available and loaded when the feature requires it.

Example

ruby
ComPDFKitConversion::LibraryManager.initialize_sdk