# [pdftex] Getting error in \CJK at plane

Suman_Tripathy Suman_Tripathy at satyam.com
Fri Nov 14 07:37:36 CET 2008

And don't tell me to put \pdfstringdef\ContentsString{Phrase Code = ^^c2^^a9^^e2^^84^^a2 } before \begin{CJK}{UTF8}{}. That is not possible in my actual problem scenario.

-----Original Message-----
From: Suman_Tripathy
Sent: Friday, November 14, 2008 11:58 AM
To: 'Ross Moore'
Cc: Heiko Oberdiek; wl at gnu.org; 'pdftex at tug.org'
Subject: RE: [pdftex] Getting error in \CJK at plane

First, I thought, I will not be able to generate a small program. But now I am able to. Please execute the below program to generate pdf with pdflatex, you will find the error message.

\documentclass{article}
\let\OrgShow\show
\usepackage{ucs}
\AtBeginDocument{\let\show\OrgShow}
\usepackage[utf8x]{inputenc}
\usepackage[unicode]{hyperref}[2006/08/01]
\usepackage{CJK}
\begin{document}
\begin{CJK}{UTF8}{}
Hi
\pdfstringdef\ContentsString{Phrase Code = ^^c2^^a9^^e2^^84^^a2 }
\pdfannot{%
/Subtype/Square%
/Border[0  0 .1]%
/C[0 0 1]%
/T(BoilerPlate)%
/Contents(\ContentsString)%
}
\end{CJK}
\end{document}

-----Original Message-----
From: Ross Moore [mailto:ross at ics.mq.edu.au]
Sent: Friday, November 14, 2008 10:41 AM
To: Suman_Tripathy
Cc: Heiko Oberdiek; wl at gnu.org
Subject: Re: [pdftex] Getting error in \CJK at plane

Hello Suman,

On 13/11/2008, at 9:34 PM, Suman_Tripathy wrote:

> Possibly I will not able to create a very small example to show the
> error. But I can explain when I get the problem. I am preparing one
> pdf for language Korean. There I am using pdfannot to display some
> text in English which contains some Unicode char as well. As pdfannot
> uses raw data, to display Unicode I am using hyperref package and
> pdfstringdef as suggested by Haiko in reply to one of my posts.
> If I take Haiko given example:
>
> \documentclass{article}
> \let\OrgShow\show
> \usepackage{ucs}
> \AtBeginDocument{\let\show\OrgShow}
> \usepackage[utf8x]{inputenc}
> \usepackage[unicode]{hyperref}[2006/08/01]
> \begin{document}
> Hi
> \pdfstringdef\ContentsString{Phrase Code = ^^c2^^a9^^e2^^84^^a2}
> \pdfannot{%
>   /Subtype/Square%
>   /Border[0 0 .1]%
>   /C[0 0 1]%
>   /T(BoilerPlate)%
>   /Contents(\ContentsString)%
> }
> \end{document}
>
> In the problem scenario the text "Hi" is displayed properly in
> Korean(whatever might be the translation), but ContentsString which is
> supposed to display a English sentence (which contains some Unicode
> char) fails to do so and gives the error.

I've tried you code above, and do not get any error.
What I do get is shown in the attached image.

DISCLAIMER:
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.