Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1215

PDF crash in PDFText class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Resolution: Fixed
    • 0.92
    • None
    • renderer/pdf
    • None
    • Operating System: other
      Platform: All
    • 40106

    Description

      When rendering any .fo file with text in it AND using a font specified in the
      userconfig file, the PDFText class throws an exception. This happens not on a PC
      with jre 1.5 but does on Linux, running
      java version "1.4.2"
      gij (GNU libgcj) version 4.0.1 20050727 (Red Hat 4.0.1-5)
      I finally nailed it on line

      uniBytes = new String(a).getBytes("UnicodeBigUnmarked");

      It seems that particular JVM implementation does not support that character
      encoding. When I changed it to

      uniBytes = new String(a).getBytes("UTF-16BE");

      UTF-16BE being the new notation worked on PC *and* the linux box

      Attachments

        Activity

          People

            fop-dev@xmlgraphics.apache.org fop-dev
            jmeijer@notice.nu Jeroen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: