Skip to content
DemoFAQ

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub

Initialize Library Resources ​

Overview ​

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

Notes ​

  • You must 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 resources in the resource directory are available.

Example ​

python
LibraryManager.initialize("ComPDF_Conversion_SDK/resource")