public int AddLicense2(string licfilename, bool verifyandsetguid, KeyPair kp);
Adds a license to the document. The KeyPair needs to be created separately. VerifyAndSetGuid will lock the license so that it works only with this particular document. Beware that changing the document after GUID locking is impossible, since that will invalidate the license. If you are unsure whether the document will be changed in the future, set the VerifyAndSetGuid to false. Note that after the document is locked, many functions will fai--such as: AddPageTemplate, DeletePageTemplate, etc.