Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-491

Problem with printing pdf document having chinese characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7.3
    • None
    • Rendering
    • None
    • Windows XP, JDK1.4 and 1.5

    Description

      We are getting the following exception.

      java.awt.print.PrinterIOException
      at org.pdfbox.pdmodel.PDPage.print(PDPage.java:745)
      at sun.print.RasterPrinterJob.printPage(Unknown Source)
      at sun.print.RasterPrinterJob.print(Unknown Source)
      at sun.print.RasterPrinterJob.print(Unknown Source)
      at com.foursoft.PDF_PrinterJob.main(PDF_PrinterJob.java:42)
      Caused by: java.io.IOException: Unknown encoding for 'UniGB-UCS2-H'
      at org.pdfbox.encoding.EncodingManager.getEncoding(EncodingManager.java:82)
      at org.pdfbox.pdmodel.font.PDFont.getEncoding(PDFont.java:612)
      at org.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:466)
      at org.pdfbox.util.PDFStreamEngine.showString(PDFStreamEngine.java:325)
      at org.pdfbox.util.operator.ShowText.process(ShowText.java:64)
      at org.pdfbox.util.PDFStreamEngine.processOperator(PDFStreamEngine.java:452)
      at org.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:215)
      at org.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:174)
      at org.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:104)
      at org.pdfbox.pdmodel.PDPage.print(PDPage.java:741)
      ... 4 more

      Attachments

        1. myfile.pdf
          1 kB
          wil2011

        Activity

          People

            lehmi Andreas Lehmkühler
            varaprsd.p varaprasad
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified