8 Replies Latest reply on Oct 11, 2006 11:25 PM by Newsgroup_User

    cfdocument font problem

    Snaijer
      Hi all,

      I used cfdocument to create a pdf. Anfortunately the font used in the content isn't showed in the pdf. I define the font with css in the file itself. The font is installed on the server and fontembed (property of cfdocument) is set to yes. The strange thing is the font shows when a pdf is created via a report (.cfr).

      When I test the file on my localmachine it works fine, but on the server it doesnt work. My local machine runs om Windows, the server runs on Unix. Both machines are running Coldfusion MX 7. Am I doing something wrong?

      Thanx already for your answer!

      Best regards,
      Paul
        • 1. Re: cfdocument font problem
          Snaijer Level 1
          Can someone please take a look at this problem? It is quite annoying, but I need to get the corporate font in the pdf.

          Thanx!!
          • 2. Re: cfdocument font problem
            rupeshk Level 1
            Hi paul,
            We will look in to this issue. Could you please send me a sample code which does not work on unix box so that I can replicate this. Which font are you using? Do you mean that the cfreport generates PDF with the correct font on Unix box but cfdocument does not?

            thanks.
            • 3. Re: cfdocument font problem
              Snaijer Level 1
              Thank you for your answer and sorry for replying this late. We use the IKEA Sans font family. This is the corporate font (truetype). Yes I do mean that the cfreport generates PDF with the correct font on Unix box but cfdocument does not. Below you will find a short example:

              <cfdocument format="pdf" orientation="landscape" pagetype="A4" fontembed="yes">
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
              <html xmlns=" http://www.w3.org/1999/xhtml">
              <head>
              <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
              <title>Pdf test</title>
              <style type="text/css">
              BODY, TD {
              font-family: "IKEA Sans", Arial;
              font-size: 25px;
              }
              </style>
              </head>
              <body>
              Hello world!! Wel iets met een a-tje erin.
              </body>
              </html>
              </cfdocument>

              If you need more information please let me know! Thank you for your time already!

              Best regards,
              Paul
              • 4. Re: cfdocument font problem
                Snaijer Level 1
                Does anyone have an idea where to look for the problem / how to solve this problem??

                THANX!
                • 5. Re: cfdocument font problem
                  WoEx
                  quote:

                  Originally posted by: Snaijer
                  Does anyone have an idea where to look for the problem / how to solve this problem??

                  THANX!


                  Hello Snaijer,
                  i've totally same problem than you have. Do you have a solution for this problem? I need it too - please tell me, if you have solved that problem.

                  Thx a lot - Andreas
                  • 6. Re: cfdocument font problem
                    Snaijer Level 1
                    Hi Andreas,

                    Unfortunately I have not solved this problem... I reported this as a bug at Adobe but no response untill now. Rupeshk was my only hope but he didn't come back on this problem yet. Hopefully he will still answer.

                    Sorry I can't help you.

                    Best regards,
                    Paul
                    • 7. Re: cfdocument font problem
                      Snaijer Level 1
                      Hi Andreas,

                      Unfortunately I have not solved this problem... I reported this as a bug at Adobe but no response untill now. Rupeshk was my only hope but he didn't come back on this problem yet. Hopefully he will still answer.

                      Sorry I can't help you.

                      Best regards,
                      Paul
                      • 8. Re: cfdocument font problem
                        Level 7
                        Hi Andreas,

                        Unfortunately I have not solved this problem... I reported this as a bug at
                        Adobe but no response untill now. Rupeshk was my only hope but he didn't come
                        back on this problem yet. Hopefully he will still answer.

                        Sorry I can't help you.

                        Best regards,
                        Paul