#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2009
    Posts
    67
    Rep Power
    6

    CFDOCUMENTITEM shrinks image


    I have an image (2450x518 pixels) which I want to print at the top of my PDF document, so I use the following:

    <img src="file:///c:/IMS Project/Documents/Image/DPLetterHead.jpg" width="800" height="150" align="top"/>

    and it works fine. Because the document can run over a page, it was decided that this image should be the header so, I embraced it with <cfdocumentitem type="header"> & </cfdocumentitem>.
    The result reduced the image from a 7"x1.25" to 2"x0.25". I applied a width="8000" and it stretch to the correct width but when I applied height="2500", it went back to 2"x0.25". how can I correct this? (There is a distortion issue, but it's the lesser of the evils at the moment).
  2. #2
  3. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,286
    Rep Power
    968
    You might try using inches to specify the size, and possibly alter the z-index. (http://www.ghidinelli.com/2006/08/02...-in-cfdocument )

IMN logo majestic logo threadwatch logo seochat tools logo