Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / October 2005



Tip: Looking for answers? Try searching our database.

Cfdocument type="PDF"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
_andyK - 19 Oct 2005 17:41 GMT
Hi,

Everything was going along fine until today. I am getting an error that says
"File does not begin with '%PDF-" I added filename="%PDF-ff" to the cfdocument
tag and I didn't get any errors I also didn't get any output.

As I said all was going smoothly, then today my world is upside down.

Any help would be appreciated.

Thanks

Andy
_andyK - 19 Oct 2005 21:39 GMT
It seems that cfdocument is  creating a file with an extension of fdf

Anyone have any ideas about this ?
skilzkid - 31 Oct 2005 19:52 GMT
try:

<cfheader name="Content-Disposition" value="filename=filename.pdf">
<cfdoc tags and content>

This will tell the browser to treat the incoming content like a file named
filename.pdf...not 100% sure it will work for you, but it's worth a shot.
skilzkid - 31 Oct 2005 19:53 GMT
...also remove the filename attribute from your cfdocument tag - that tells it to write the file to a physical location on your server instead of to the browser.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.