Ya, I put the images in a public folder and chaged my image path to:

<img src="http://websitename/images/invoicelogoNEW.jpg border="0">

Now the image shows up in the PDF.

So what permissions does CFDocument need on images to place them into the PDF???

Right now SYSTEM has full permissions, and IIS_WPG has Read/Execute and list 
folders.





-----Original Message-----
From: Chad Gray [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 23, 2007 9:27 AM
To: CF-Talk
Subject: CDDocument Image problem

I am trying to use CFDocument to make a PDF of a web page.

I have an image that produces what kinds of looks like a missing image icon in 
the PDF.  When I click on thing in Acrobat it says "There was an error 
processing an annotation or link.  There was a problem reading this document 
(14)."

http://chadgray.info/Untitled-1.jpg

Now this code works fine on our development server.  Only on the production 
server do I get the problem.

My code to place the image is simple enough.  The page and image are in the 
same folder.  The PDF is saved into a sub-folder.

<td width="352" height="59" valign="top" align="center">
        <img src="invoicelogoNEW.jpg" border="0">
</td>

My code to make the pdf and save it is:
<cfdocument format="pdf" pagetype="letter" name="invoice" overwrite="yes">

<cffile action="write" file="#application.invoicePDFPath##fileName#" 
output="#invoice#">


Hmmmm now that I think more about this.  The area that this code is running 
from does have NTFS permissions on it so users have to login to use the web 
site.  Does CFDocument need permissions to grab the image and use it in the 
PDF????




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:284355
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to