It's not permissions. they're set to all 'read'. It's kept in the web-inf dir as well. The file loads OK; it's seems to be when iText tries to load it as a BaseFont. I believe there must be a missing component.
BTW, I can't post to the forum directly even though I have set up twice - I get bad email addr and password. thanks Max ----- Original Message ----- From: "Paulo Soares" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" <itext-questions@lists.sourceforge.net> Sent: Tuesday, January 22, 2008 2:30 AM Subject: Re: [iText-questions] DocuementException with embedded arial.ttfinJBOSS under linux That looks like an access error to the file. Check your permissions. Paulo > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Max Tomlinson > Sent: Tuesday, January 22, 2008 5:39 AM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] DocuementException with embedded > arial.ttf inJBOSS under linux > > Hi all- > I'm trying to embed arial.ttf as my BaseFont for a PDF report > program. > The examples from the book work fine under windows. In JBoss > under linux (using JDK 1.5) I get a DocumentException: > > Table 'name' does not exist in > /opt/jboss/jboss-4.0.5.GA/server/default/deploy/cps.ear/cps.wa > r/WEB-INF/arial.ttf > > when I execute the following code: > > String ff = file.getFile(); > try { > baseFont = BaseFont.createFont( > ff, BaseFont.CP1252, BaseFont.NOT_EMBEDDED); > } catch (DocumentException e) { > etc. > > I thoguht arial.ttf could be embedded. > Not so? > I'm using itext 2.0.6 > thanks > Max > > > > Aviso Legal: Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem. Disclaimer: This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message. -------------------------------------------------------------------------------- > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ -------------------------------------------------------------------------------- > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/