Skip to main content
Participant
October 12, 2011
Question

Imported jpg Images

  • October 12, 2011
  • 1 reply
  • 723 views

I am using CF9 to design and print business cards for our clients. I have a client who wants an image on the entire back side of the card. The pdf size is set to 3.5 inches by 2 inches. The image is set to the same size and saved as a jpg.

When I run the card, the proof looks fine on the front, but on the back where the jpg should go edge to edge, it leaves a border around the left and top of the card...it actually shifts the image down and right. I have set the image to align center, and my margins are all set to 0.0

I've tried enlarging the image, but it just pushes it more to the right and down...it's like there's some invisible border on the top and left of the card. I added the top=0 and left=0, but it hasn't changed anything.

How do I get this image to import and go edge to edge properly? What am I missing?

Thanks!

--n00b

<cfdocument

  format="PDF"

  filename="order_#Form.card_id#_bc.pdf"

  overwrite="yes"

  pagetype="custom"

  pageheight="2"

  pagewidth="3.5"

  margintop="0.0"

  marginbottom="0.0"

  marginright="0.0"

  marginleft="0.0"

  unit="in"

  fontembed="yes"

  localurl="yes">

<cfdocumentsection>

      <div id="back" align="center">

       <img src="business_card_back.jpg" top="0" left="0">

      </div>

     </cfdocumentsection>

    This topic has been closed for replies.

    1 reply

    Known Participant
    October 15, 2011

    You could try this.. not sure if it'll work but might be worth a try..   

    <div id="back" align="center">

    <img src="business_card_back.jpg" top="0" left="0" border="0" alt="">

    </div>

    CFn00b123Author
    Participant
    October 17, 2011

    Nope. Still have the border on the top and left edge. I’m going to try to adjust the graphic size, maybe it’s not 100% dimensionally accurate. Will post if anything changes, but I’m skeptical.

    Thanks!