Dear Sir/Madam,
 
    I'm not sure is this the right contact email for my questions. Just have a try and hope that someone can help me.
 
    I used iText package for nearly 2 years. An year ago, i've changed to use PdfEncodings so that i can print some Hong Kong Chinese characters. The code for encoding is as the following:
 
    String dataString = "Hello. I'm a boy".
    PdfEncodings.loadCmap("HKscs-B5-H", PdfEncodings.CRLF_CID_NEWLINE);
    dataString = PdfEncodings.convertCmap("HKscs-B5-H", dataString.getBytes());
 
    However, when i print the encoded text with showText method in PdfContentByte. The single quote character is gone.
 
    Output: "Hello. I m a boy".
 
    Is this the Cmap mapping missing? Or is there any method to encode the single quote character before the loadCmap ? It have no problem in printing #%" ... etc.
 
    Thank You.

Best Regards,
 
Angus Lee
System Analyst
 
employEasy Limited
 
Unit C & D, 9/F Vulcan House,
21-23 Leighton Road, Hong Kong.
 
TEL : 852 - 2803 5077
FAX : 852 - 2803 5377
 
Email : [EMAIL PROTECTED]
Web : http://www.employEasy.com

Reply via email to