The compiled iText jars require at least jdk 1.4 and looks like you have an older jdk. You'll have to compile iText yourself. See http://itext.ugent.be/library/question.php?id=19.
Paulo ----- Original Message ----- From: "Ehrenfrids Murzello" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Tuesday, March 13, 2007 5:41 AM Subject: [iText-questions] Unicode Font > Hi, We have implemented creating a PDF file by using iText. > However the application needs that we use Arial Unicode Ms font in the PDF > generation since it is a multilingual application > > We have tried the following snippet of code > BaseFont bfUnicode = BaseFont.createFont("C:\\ARIALUNI.TTF", > BaseFont.IDENTITY_H, BaseFont.EMBEDDED); > Font fntSection = new Font(bfUnicode, 12); > We recieve the following error pasted below. > > We also tried using the same code above in a simple java file and it > worked./ > > However in the application, we get the following error. > > [3/13/07 10:58:55:996 GMT+05:30] 59141fb WebGroup E SRVE0026E: [Servlet > Error]-[java/nio/BufferUnderflowException]: > java.lang.NoClassDefFoundError: > java/nio/BufferUnderflowException > > at > com.lowagie.text.pdf.RandomAccessFileOrArray.<init>(RandomAccessFileOrArray. > java:121) > > at > com.lowagie.text.pdf.RandomAccessFileOrArray.<init>(RandomAccessFileOrArray. > java:80) > > at com.lowagie.text.pdf.TrueTypeFont.process(TrueTypeFont.java:580) > > at > com.lowagie.text.pdf.TrueTypeFontUnicode.<init>(TrueTypeFontUnicode.java:96) > > at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:460) > > at com.lowagie.text.pdf.BaseFont.createFont(BaseFont.java:383) > > at > com.ko.komost.qm.action.StoreSummaryLetterReportPdfGenerator.makeGenericPdf( > StoreSummaryLetterReportPdfGenerator.java:210) > > at > com.ko.komost.qm.action.StoreSummaryLetterReportPdfGenerator.makePdf(StoreSu > mmaryLetterReportPdfGenerator.java:847) > > at > com.ko.komost.admin.action.GenerareStoreSummaryReportAction.actionExecute(Ge > nerareStoreSummaryReportAction.java:60) > > at com.ko.komost.common.action.BaseAction.execute(BaseAction.java:352) > > at > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces > sor.java:446) > > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:266) > > at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292) > > at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) > > at > com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServle > tInstance.java:110) > > at > com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecy > cleServlet.java:174) > > at > com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServ > let.java:313) > > at > com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecyc > leServlet.java:116) > > at > com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java > :258) > > at > com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidSer > vletReferenceState.java:42) > > at > com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletIns > tanceReference.java:40) > > at > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch( > WebAppRequestDispatcher.java:872) > > at > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppReques > tDispatcher.java:491) > > at > com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequest > Dispatcher.java:173) > > at > com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79) > > at > com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker > .java:199) > > at > com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(C > achedInvocation.java:71) > > at > com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletReq > uestProcessor.java:182) > > at > com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListene > r.java:331) > > at > com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.jav > a:56) > > at > com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432) > > at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343) > > at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592) > > > Regards, > Ehrenfrids S. Murzello > Patni Computer Systems Ltd. > Akruti, 1st Floor, Road No:21, MIDC Cross Road > Andheri (E), Mumbai - 400 093 > Tel: + 91 22 5693 0500 Extn: 2611 > > http://www.patni.com > World-Wide Partnerships. World-Class Solutions. > _____________________________________________________________________ > > This e-mail message may contain proprietary, confidential or legally > privileged information for the sole use of the person or entity to > whom this message was originally addressed. Any review, e-transmission > dissemination or other use of or taking of any action in reliance upon > this information by persons or entities other than the intended > recipient is prohibited. If you have received this e-mail in error > kindly delete this e-mail from your records. If it appears that this > mail has been forwarded to you without proper authority, please notify > us immediately at [EMAIL PROTECTED] and delete this mail. > _____________________________________________________________________ > -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV -------------------------------------------------------------------------------- > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
