bjv211
asked on
cfdocument not embedding images or fonts.
I have the following cfdocument tag that is not embedding the CSS style fonts or the images into the pdf. I am using macromedia MX package.
<cfdocument format="pdf" fontembed="yes" filename="pdfs/travel/#dat e#_#time#_ #name#_tra vel.pdf" marginbottom=".25" margintop="1" marginleft=".25" marginright=".25" pagetype="letter" orientation="portrait" overwrite="yes">
<link href="forms.css" rel="stylesheet" type="text/css">
<img src="images/head.jpg">
<p class="pagehead" align="left">Travel Request Form</p>
<p class="greyital">Date submitted: #Form.date#</p><br>
<table width="700" border="1" align="left" cellpadding="2" cellspacing="2">
<tr>
<td class="blackparag" bordercolor="##FFFFFF">Des tination: #form.dest# <br>
<br>
Inclusive dates of travel - From: #form.datestart# To: #form.dateend# <br>
<br>
Purpose of Travel<br>
#form.purpose#
<hr>
<span class="blackital"><strong> Travel arrangements requested</strong></span>
<hr>
Travel type: #form.traveltype# <br>
<br>
Depart from (city,state): #form.departfrom# <br>
Departure date: #form.departdate# Departure time: #form.departtime# <br>
<br>
Return from (city,state): #form.returnfrom# <br>
Return date: #form.returndate# Return time: #form.returntime# <br>
<br>
Frequent traveller number: #form.frequent# <br>
Preferred company: <em>(Continental, Amtrak, MetroNorth, etc.)</em> #form.preferred# <br>
<hr>
<span class="blackital"><strong> Registrati on</strong ></span>
<hr>
Name of Conference:<br>
#form.confname# <br>
Address:<br>
#form.confaddress# <br>
Phone Number: #form.confphone# <br>
Fax Number: & nbsp;  ; #form.conffax# <br>
Registration Fee: #form.fee#
<hr>
<span class="blackital"><strong> Hotel</str ong></span >
<hr>
Hotel Name: #form.hotelname# <br>
Hotel Address:<br>
#form.hoteladdress# <br>
Hotel Phone Number: #form.hotelphone# <br>
Hotel Fax Number: & nbsp;  ; #form.hotelfax# <br>
Check in date: #form.checkin# Check out date: #form.checkout# <br>
Hotel rate: #form.hotelrate#
<hr>
Account to be charged: #form.account# </td>
</tr>
</table>
</cfdocument>
<cfdocument format="pdf" fontembed="yes" filename="pdfs/travel/#dat
<link href="forms.css" rel="stylesheet" type="text/css">
<img src="images/head.jpg">
<p class="pagehead" align="left">Travel Request Form</p>
<p class="greyital">Date submitted: #Form.date#</p><br>
<table width="700" border="1" align="left" cellpadding="2" cellspacing="2">
<tr>
<td class="blackparag" bordercolor="##FFFFFF">Des
<br>
Inclusive dates of travel - From: #form.datestart# To: #form.dateend# <br>
<br>
Purpose of Travel<br>
#form.purpose#
<hr>
<span class="blackital"><strong>
<hr>
Travel type: #form.traveltype# <br>
<br>
Depart from (city,state): #form.departfrom# <br>
Departure date: #form.departdate# Departure time: #form.departtime# <br>
<br>
Return from (city,state): #form.returnfrom# <br>
Return date: #form.returndate# Return time: #form.returntime# <br>
<br>
Frequent traveller number: #form.frequent# <br>
Preferred company: <em>(Continental, Amtrak, MetroNorth, etc.)</em> #form.preferred# <br>
<hr>
<span class="blackital"><strong>
<hr>
Name of Conference:<br>
#form.confname# <br>
Address:<br>
#form.confaddress# <br>
Phone Number: #form.confphone# <br>
Fax Number: &
Registration Fee: #form.fee#
<hr>
<span class="blackital"><strong>
<hr>
Hotel Name: #form.hotelname# <br>
Hotel Address:<br>
#form.hoteladdress# <br>
Hotel Phone Number: #form.hotelphone# <br>
Hotel Fax Number: &
Check in date: #form.checkin# Check out date: #form.checkout# <br>
Hotel rate: #form.hotelrate#
<hr>
Account to be charged: #form.account# </td>
</tr>
</table>
</cfdocument>
I had this same issue, I found that I had to have the styles on the page. Not linked.
and the styles had to be within the cfdocument tags
and the styles had to be within the cfdocument tags
ASKER
bwasyliuk, this did not work
73spyder - works great for the styles, any idea about the image?
73spyder - works great for the styles, any idea about the image?
I have not had any issues with the images as long as you use the full path.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ex: <img src="http://www.yourdomain.com/images/head.jpg">