Back to Blog

    Developer Blog

    What happens if Foxit Quick PDF Library is not unlocked correctly?

    Foxit Quick PDF Library

    Atempting to use Foxit Quick PDF Library without a license key, with an expired trial license key or with an invalid license key, will result in the follow functions being being blocked:

    • DAOpenFile
    • GetInformation
    • LoadFromStream
    • LoadFromString
    • MergeDocument
    • NewDocument
    • SaveToFile
    • SaveToString
    • SecurityInfo
    • EncryptFile
    • DecryptFile
    • AnalyseFile
    • MergeFiles
    • MergeStreams
    • MergeFileListFast
    • ExtractFilePageContent
    • ExtractFilePageText
    • ExtractFilePages
    • GetFileMetadata

    Check the result of the UnlockKey function

    In order to reduce any confusion, you should check the result of the UnlockKey function before doing anything else. If the function returns a 0 then this means that the license key is either missing, expired or invalid, if the function returns a 1 then this means that the license key is valid and you will be able to access the full functionality of the library.

    This article refers to a deprecated product. If you are looking for support for Foxit PDF SDK, please click here.