PDF Generation Template Editor
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.
Initialize the necessary file and memory resources required by the ComPDF Conversion SDK.
You must initialize SDK resources before calling any conversion interface.
Lifecycle: if synchronous conversion tasks are still running when ConverterManager.release is called, the release is deferred until the last task returns, and new tasks are refused in the meantime. Unload the SDK only after all conversion calls have returned. See "Release Library Resources" for details.
// Initialize SDK resources.
ConverterManager.initialize()ConverterManager.getVersion: gets the SDK version string.ConverterManager.setLogger: enables or disables info-level and warning-level log messages separately.ConverterManager.getPageCount: returns the number of pages in a document, taking the password needed to open it if any; returns -1 while library resources are being released or configured.ConverterManager.getRemainingPageQuota: returns the remaining page quota of the license. >= 0 is the number of remaining pages, -1 means not initialized, -2 means unlimited, and -3 means the quota file is corrupted.