You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "wil2011 (JIRA)" <ji...@apache.org> on 2011/03/03 04:41:36 UTC

[jira] Commented: (PDFBOX-491) Problem with printing pdf document having chinese characters

    [ https://issues.apache.org/jira/browse/PDFBOX-491?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13001852#comment-13001852 ] 

wil2011 commented on PDFBOX-491:
--------------------------------

I tried the hello world example with chinese content. pdfbox created the pdf file which does not show the expected Chinese characters.
It was fine when I supplied pure English text.

pdfbox-1.4.0
fontbox-1.4.0


> Problem with printing pdf document having chinese characters
> ------------------------------------------------------------
>
>                 Key: PDFBOX-491
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-491
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 0.7.3
>         Environment: Windows XP, JDK1.4 and 1.5
>            Reporter: varaprasad
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> 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

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira