[pdftex] Getting error in \CJK at plane

Heiko Oberdiek oberdiek at uni-freiburg.de
Fri Nov 14 08:04:23 CET 2008


On Fri, Nov 14, 2008 at 11:57:39AM +0530, Suman_Tripathy wrote:

> 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}
> \PreloadUnicodePage{0}
> \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}

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

This trick will not work for utf8.def, because of its global
assignments.

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>


More information about the pdftex mailing list