2 Replies Latest reply on Jul 28, 2010 7:32 PM by Tomas Cerny

    PDF Encoding problem

    Ekin Dino Newbie

      Hi all,


      I'm trying to generate a pdf report which has some text at the end which should be entered by the user generating the report. I'm using rich:editor to enter the text via SeamText and then displaying it via p:html in a pdf (I know it has it's shortcomings but it works for me). I even got the encoding working (Cp1254 for me) with the weird combination of p:pont, p:paragraph and p:html tags. The problem is when I use formatting tags like the part inside the tags does not display native characters. If i give styles like bold fo p:font the characters are displayed but I need just some words emphasised in a paragraph.


      To illustrate the problem:



      <p:font encoding="Cp1254" family="Helvetica">
         <p:paragraph>
            <p:html>
               <s:formattedTex value="These characters are shown: ıİğĞşŞ" />
            </p:html>
         </p:paragraph>
      </p:font>
      
      <p:font encoding="Cp1254" family="Helvetica">
         <p:paragraph>
            <p:html>
               <s:formattedTex value="These characters are shown: ıİğĞşŞ" />
            </p:html>
         </p:paragraph>
      </p:font>
      
      <p:font encoding="Cp1254" family="Helvetica">
         <p:paragraph>
            <p:html>
               <s:formattedTex value="These characters are shown: ıİğĞşŞ these are not:<strong>ıİğĞşŞ</strong>" />
            </p:html>
         </p:paragraph>
      </p:font>



      Does anyone know why this is happening or how i can solve this?
      Thanks in Advance,
      Ekin