private bool LoadPDFLib()
        {
            bool result = true;

            try
            {
                if (isLibraryLoaded == false)
                {
                    if (pdfLib.LibraryLoaded())
                    {
                        // Create an instance of the class and give it the path to the DLL
                        string LicKey = (!string.IsNullOrEmpty(System.Configuration.ConfigurationSettings.AppSettings["DebenuLicenceKey"]) ? System.Configuration.ConfigurationSettings.AppSettings["DebenuLicenceKey"].ToString() : "jc8am89q6n57ue8q87xd7nt4y");
                        pdfLib.UnlockKey(LicKey);

                        if (pdfLib.Unlocked() == 0)
                        {
                            //LogManager.Trace("PWPPDFMgr::LoadPDFLib", TraceCategoryType.Error, "License unlock failed.  Please update your key in the form1.cs source code", "");
                            result = false;
                        }
                        else
                        {
                            isLibraryLoaded = true;
                        }
                    }
                    else
                    {
                        //LogManager.Trace("PWPPDFMgr::LoadPDFLib", TraceCategoryType.Error, "Could not locate the Debenu PDF Library DLL, please check the path");
                        result = false;
                    }
                }
            }
            catch (Exception Ex)
            {
                //LogManager.Trace("PWPPDFMgr::LoadPDFLib", Ex1, "Could not locate the Debenu PDF Library DLL, please check the path");
                result = false;
            }
            return(result);
        }