Hello

I have a problem with embeding the font in my applet. I need the font to write latin and greek symobls so i tried to used a unicode encoding

 

 

 

BaseFont bfComicuni = BaseFont.createFont("ARIALUNI.TTF", BaseFont.IDENTITY_H, BaseFont.EMBEDDED);                             

unicodeFont= new Font(bfComicuni, 12);

 

the code work fine in eclipse but when I tried it in an Html page it gives me this exception

 

 

 

Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied (java.io.FilePermission file:\C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT\ARIALUNI.TTF read)

            at java.security.AccessControlContext.checkPermission(Unknown Source)

            at java.security.AccessController.checkPermission(Unknown Source)

            at java.lang.SecurityManager.checkPermission(Unknown Source)

            at java.lang.SecurityManager.checkRead(Unknown Source)

            at java.io.File.canRead(Unknown Source)

            at com.lowagie.text.pdf.RandomAccessFileOrArray.<init>(RandomAccessFileOrArray.java:86)

            at com.lowagie.text.pdf.RandomAccessFileOrArray.<init>(RandomAccessFileOrArray.java:81)

            at com.lowagie.text.pdf.TrueTypeFont.process(TrueTypeFont.java:577)

 

 

I have already signed the applet so this is not the problem. I have tried every thing can any one help me

Or if there any way I could write greek characters in my pdf file without using TTF font

I am using itext 1.3.6

 

 

 

Maha Mohammed Nabeel El Meseery

Software Engineer

EngNet

email [EMAIL PROTECTED]

 

BEGIN:VCARD
VERSION:2.1
N:Mohammed Nabeel Elmeseery;Maha
FN:Maha Mohammed Nabeel Elmeseery
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20051119T071958Z
END:VCARD

Reply via email to