Why <CFDocument Format="PDF"> cannot display picture?

Ask a Question related to Macromedia ColdFusion, Design and Development.

  1. #1

    Default Why <CFDocument Format="PDF"> cannot display picture?


    We just installed the ColdFusion MX 7.0 in the web server. We used tag
    cfdocument with attribute fomat="pdf"
    to convert HTML to PDF. The simple code is as the following. The text is
    displayed correctly. However,
    the jpeg file (or other kind of format image file) doesn't show. In
    addition, in the developer server, both text and
    image work well.
    Could anybody provide some help or hints? It would be greatly
    appreciated. Thanks.

    <html>
    <head></head>
    <body>
    <cfdocument format="pdf">
    some words
    <img src="picture.jpg">
    </cfdocument>
    </body>
    </html>

    Bill



    billli Guest

  2. Similar Questions and Discussions

    1. Display the "reference to the picture name and path"
      It would be a very helpful feature, if i could display the name and path to picture which is placed in the document (mainly on technical design, it's...
    2. cfdocument type="pdf" problem
      We are running CFMX7 on a Windows 2003 Server w/SP1 installed. Server is 2-cpu Dell 2650. We have a page with 8 photo images on it. If I load...
    3. cfdocument format="flashpaper"
      Does anyone know how to leverage the new <cfdocument> to bring up a flashpaper form that will display the new dynamic data grid feature in CFMX 7? ...
    4. create a cd-rom startup "icon-picture" from a bitmap (MAC)
      Hi there, I know that there is a tool to create an icon from a bitmap, say *.jpg, whatever, actually this icon will consist of several icons fit...
    5. Problem with "saving" an enhanced photo from a picture CD
      I am attempting to crop and enhance a photo from a picture CD from film I had processed at Costco. After I get the work done on the photo and try to...
  3. #2

    Default Re: Why <CFDocument Format="PDF"> cannot display picture?

    Is the picture accessible on the server - does your webserver log have
    record of the request for it?

    --
    Tom Jordahl
    Macromedia Server Development


    Tom Jordahl Guest

  4. #3

    Default Re: Why <CFDocument Format="PDF"> cannot displaypicture?

    Thanks for your reply.
    If I removed the cfdocument tag, the picture can display.
    Also, I've checked the log files, no error message found for this page.

    Here is the link [url]http://www.tad.org/bill/test/cfpdf/cfpdf.cfm[/url]

    Bill


    billli Guest

  5. #4

    Default Re: Why <CFDocument Format="PDF"> cannot displaypicture?

    I set the picture's path as full path and used the IP address (ex. 127.0.0.1)
    instead of domain name, it works now.
    I'm not sure why we have to do like this, because if we don't use the tag
    cfdocument, path can be in any form. Anyway, it's a way to get it work for us,
    or maybe it's also helpful for others.

    Bill


    billli Guest

  6. #5

    Default Re: Why <CFDocument Format="PDF"> cannot display picture?

    Hi Bill,
    We have seen this bug when there is a space in the image file name.
    Could you please check if there is any space or any special character in the
    filename.
    If there is none, could you please send the exact snippet for the image tag
    that is present inside cfdocument tag.
    or any reproduction code that you can send.

    Regards,
    Rupesh.

    "billli" <webforumsuser@macromedia.com> wrote in message
    news:d21teb$b7e$1@forums.macromedia.com...
    >I set the picture's path as full path and used the IP address (ex.
    >127.0.0.1)
    > instead of domain name, it works now.
    > I'm not sure why we have to do like this, because if we don't use the tag
    > cfdocument, path can be in any form. Anyway, it's a way to get it work
    > for us,
    > or maybe it's also helpful for others.
    >
    > Bill
    >
    >

    Rupesh Kumar Guest

  7. #6

    Default Re: Why <CFDocument Format="PDF"> cannot displaypicture?

    Hi,

    Just to add to this if you do have spaces in your image name you can use the
    URLEncodedFormat()
    function to add %20 in the spaces.
    I had a problem where certain images had spaces and this resolved the issues
    using cfdocument in pdf and flashpaper formats.


    Matt

    jedimatt Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139