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

Problem with printing pdf document having chinese characters

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7.3
    • Fix Version/s: None
    • Component/s: Rendering
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              lehmi Andreas Lehmkühler
              Reporter:
              varaprsd.p varaprasad
            • Votes:
              0 Vote for this issue
              Watchers:
              3 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