Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: BaseFont.createFont exception when i print unicode.

  1. #1
    Join Date
    Mar 2003
    Posts
    4,947

    Default BaseFont.createFont exception when i print unicode.

    Hello
    I have a exception when i print big5 document, i follow PDFOutputTarget javadoc description "When using unicode characters, you will have to adjust the encoding of this target to "Identity-H", to enable horizontal unicode printing. This will result in larger files. "
    I create the PDFOutputTarget and target.setFontEncoding("Identity-H") the error message printed on the console:

    WARN: BaseFont.createFont failed.
    com.lowagie.text.DocumentException: Identity-H
    at com.lowagie.text.pdf.Type1Font.<init>(Unknown Source)
    at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
    at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)
    at com.jrefinery.report.targets.PDFOutputTarget.setFont(PDFOutputTarget.
    java:672)
    at com.jrefinery.report.targets.PDFOutputTarget.open(PDFOutputTarget.jav
    a:935)
    ..........

    How to fix the exception in my code ?

  2. #2
    Join Date
    Mar 2003
    Posts
    4,947

    Default Re: BaseFont.createFont exception when i print unicode.

    Hi,

    have you upgraded to the latest cvs version? Unicode printing is buggy in version 0.7.5, but this bug is fixed in the cvs.

    Have more fun,
    said Thomas

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.