Try setting the cfdocument scale to 100%.  I'm not sure if "scale" is
the actual attribute, but you should be able to find it easily.

M!ke 

-----Original Message-----
From: Matthew Blatchley [mailto:[EMAIL PROTECTED] 
Sent: Saturday, July 30, 2005 10:29 PM
To: CF-Talk
Subject: CFDOCUMENT and pageheight + pagewidth issues...

I'm trying to create a business card using very simple HTML and getting
some very unsual results.  When I create the PDF, the table is the exact
height and width, but the document is much larger?  It's like it's
ignoring the height and width.

<cfdocument  format="pdf" filename="#order_PDF_filename#.pdf" 
pageType="Custom" pageheight="2" pageWidth="3.5" marginbottom="0" 
margintop="0" marginleft="0" marginright="0"> <HTML>
  <HEAD>
  <TITLE></TITLE>
  </HEAD>
  <BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
  <TABLE WIDTH="336" BORDER="0" CELLPADDING="0" CELLSPACING="0">
  <TR>
    <TD COLSPAN="2"><IMG SRC="bcard.gif" WIDTH="216" HEIGHT="102"
    BORDER="0"></TD>
  </TR>
  <TR>
    <TD HEIGHT="80" VALIGN="BOTTOM" ALIGN="RIGHT" WIDTH="320"><FONT
    STYLE="font-family: Eurostile; font-size: 8pt; color:
##000000"><cfif #orderFromStreet1# neq "">#orderFromStreet1#</cfif>
<cfif #orderFromStreet2# neq
"">#orderFromStreet2#<BR></cfif>#orderFromCity#, #orderFromState#
#orderFromZip#<BR>Office: #orderFromPhone# &##149; Fax: &##149; Email: 
#orderFromEmail#</FONT></TD>
    <TD HEIGHT="80" WIDTH="16">&nbsp;</TD>
  </TR>
  <TR>
    <TD COLSPAN="2" HEIGHT="10"></TD>
  </TR>
  </TABLE> </BODY>
</HTML>
</cfdocument>

Are there any restrictions to using 2 inches by 3.5 inches?  Does the
tag even read in item past the decimal point?  I've been using this tag
and have found it to work for the most part so far, but everywhere I
look there are un-answered questions....is anyone else running into
problems with this.

I've done this successfully with envelope sizes, notecard sizes, and
letterheads.  I've also seen simple html tables blow out and cause an
additional page to be appended to the PDF until I changed the pageheight
and pagewidth.  What's the deal?  Should I use inches or centimeters?

Any help would be greatly appreciated.

Matt 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213354
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to