Title: HELP

Hi ,

Our application [ PDF Generator ] runs in Linux.We want the a PDF to be generated in Japanese.
We have use the BaseFont as
 
BaseFont.createFont("/n1app4/bc/msgothic.ttc,0",BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
BaseFont.createFont("msgothic.ttc,0",BaseFont.IDENTITY_H, BaseFont.EMBEDDED);

HELP:

1 . Could u pls help how should we create a BaseFont Object
2 . How can we avoid both of these Exception's


Exception 1


ExceptionConverter: com.lowagie.text.DocumentException: msgothic.ttc is not a true type file.
        at com.lowagie.text.pdf.TrueTypeFontSubSet.createTableDirectory()V(Unknown Source)
        at com.lowagie.text.pdf.TrueTypeFontSubSet.process()[B(Unknown Source)
        at com.lowagie.text.pdf.TrueTypeFontUnicode.writeFont(Lcom.lowagie.text.pdf.PdfWriter;Lcom.lowagie.text.pdf.PdfIndirectReference;[Ljava.lang.Object;)V(Unknown Source)

        at com.lowagie.text.pdf.FontDetails.writeFont(Lcom.lowagie.text.pdf.PdfWriter;)V(Unknown Source)
        at com.lowagie.text.pdf.PdfWriter.addSharedObjectsToBody()V(Unknown Source)
        at com.lowagie.text.pdf.PdfWriter.close()V(Unknown Source)
        at com.lowagie.text.pdf.PdfDocument.close()V(Unknown Source)
        at com.lowagie.text.Document.close()V(Unknown Source)
        at pdfgen.PDFGenerator.closeDoc()V(PDFGenerator.java:474)
        at display.BCGenerator.execute

Exception 2


ExceptionConverter: com.lowagie.text.DocumentException: Table 'head' does not exist in msgothic.ttc
        at com.lowagie.text.pdf.TrueTypeFontSubSet.readLoca()V(Unknown Source)
        at com.lowagie.text.pdf.TrueTypeFontSubSet.process()[B(Unknown Source)
        at com.lowagie.text.pdf.TrueTypeFontUnicode.writeFont(Lcom.lowagie.text.pdf.PdfWriter;Lcom.lowagie.text.pdf.PdfIndirectReference;[Ljava.lang.Object;)V(Unknown Source)

        at com.lowagie.text.pdf.FontDetails.writeFont(Lcom.lowagie.text.pdf.PdfWriter;)V(Unknown Source)
        at com.lowagie.text.pdf.PdfWriter.addSharedObjectsToBody()V(Unknown Source)
        at co:.lowagie.text.pdf.PdfWriter.close()V(Unknown Source)
wagie.text.DocumentException: Table 'head' does not ex
ist in msgothic.ttc\


Thanks and Regards
K Rajesh S







Reply via email to