On this page
Guides
Apply the License
Before starting the conversion work, you need to call LibraryManager.license_verify
to verify whether your ComPDFKit Conversion SDK License is valid. After passing the verification, you can initialize the SDK through LibraryManager.initialize
, and then you can start your conversion work.
You can contact ComPDFKit team to get a trial license.
python
# Verify the license.
error_code = LibraryManager.license_verify(
license_key,
is_file,
device_id,
package_id
)
if error_code == ErrorCode.Success:
print("License verify success")
# Initialize SDK.
LibraryManager.initialize("path/to/resource")