Where can I download vert_cjk2.java? iText Tutorial section?
Actually I am developing my programs under red hat 8.0 and using xpdf to generate my pdf document. Does you solution applied under my environment? Do I need to install Acrobat 5.0 for my OS?
From: Paulo Soares <[EMAIL PROTECTED]>
To: 'Ray Chan' <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
Subject: RE: [iText-questions] Big5_HKSCS character problem
Date: Mon, 27 Jan 2003 17:13:33 -0000
The problem with the HK extensions is that they are not mapped to Unicode.
If you go from big5 to Unicode some characters will be dropped. iText
supports the character addressing by CID allowing all the characters in the
document 5080.Adobe-CNS1-4.pdf to be used. The drawback is that you'll have
to convert the big5 extended to this CID codes. The conversion table is
available in the Adobe site as HKscs-B5-H.
The font must be created as:
BaseFont bfChinese = BaseFont.createFont("MSungStd-Light", "Identity-H",
BaseFont.NOT_EMBEDDED);
MHei-Medium is from Acrobat 4.0 and doesn't have the extensions.
See the example vert_cjk2.java for a simple CID use.
Maybe this and other conversions should be available in the Asian iText jar
Best Regards,
Paulo Soares
> -----Original Message-----
> From: Ray Chan [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, January 27, 2003 16:22
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] Big5_HKSCS character problem
>
> I want to use iText with java to create pdf with traditional chinese
> characters particularly the hong kong big5 extention fonts Big5_HKSCS. I
> use
> tutorial 9 Chap0909.java to test but found that in the output pdf, the
> hong
> kong characters like \u90A8, \uF303 become blank if the java string is in
> utf8 and become ? if use Big5_HKSCS encoding for my string.
>
> Also, I have to print data to pdf from postgresql database which is mainly
>
> using traditional chinese and hong kong fonts in form/table format.
>
> Any help would be appreciate.
>
>
> Part of my test code:
> **********************
> ......
> // step 3: we open the document
> document.open();
> String chistr = "\u8CC7\u6599 abc123 - \u4E8B\u4EF6 [ \u90A8 & \uF303 ]";
> String pdfstr = new String(chistr.getBytes(), "Big5_HKSCS");
>
> // step 4: we add content to the document
>
> BaseFont bfChinese = BaseFont.createFont("MHei-Medium", "UniCNS-UCS2-H",
> BaseFont.NOT_EMBEDDED);
>
> Font FontChinese = new Font(bfChinese, 12, Font.NORMAL);
>
> Paragraph chunk = new Paragraph(pdfstr, FontChinese);
>
> document.add(chunk);
>
> ......
>
> _________________________________________________________________
> Add photos to your messages with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions
