public static void Run( String email, // authorization email String licenseKey // license key ) { Pdfix pdfix = new Pdfix(); if (pdfix == null) { throw new Exception("Pdfix initialization fail. Please set correct email and license key."); } if (!pdfix.Authorize(email, licenseKey)) { throw new Exception(pdfix.GetError()); } if (!pdfix.IsAuthorized()) { throw new Exception("Pdfix Authorization fail"); } // ... pdfix.Destroy(); }