You can't have two iText versions loaded from the same class loader. You can call the new version to encrypt the doc as an external app or take the new version and change the package name so that there are not clashes, for example replace all the "com.lowagie." with "com.lowagie2.".
----- Original Message ----- From: "satish babu" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, August 02, 2005 12:42 PM Subject: [iText-questions] We are using "itext-0.52.jar" Hi, We are using "itext-0.52.jar" file since 2001/02 usually we have to generate most of the reports as pdfs only. These pdfs are editable. But we want to make these as not editable and willing to give only print permissions to that. The cuttent version of "iText.jar" only supports this! We con't upgrade the version to the total project. Coz, many of the new classes and methods are very from the old code("itext-0.52.jar"). For that we cont change the existing programs.Can u, give me any solution pls? ------- This is my failured logic (; -------- I have followed one tycnique for this:- I have extracted the new "iText.jar" file and placed the com folder in one folder called-"encrypt" /WEB-INF/classes/encript/com /WEB-INF/classes/encript/EncriptServlet.java In this case i must write package statement for the java file, By that the java program is not able to get the "com" package. Without that i cont place in separate folder! If i place this "com" folder directly in classes like "/WEB-INF/classes/com.." this folder will affect old classfiles. ---------------------------------------------- Thanks and Regards KC. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
