Skip to main content
Participant
July 21, 2006
Answered

Get PDF from another site

  • July 21, 2006
  • 2 replies
  • 563 views
Hi,
does anyone know how to get a pdf file from another site?
Width cfhttp I am able to obtain the content of the pdf but when a try to write it

<cffile action="WRITE" file="#myFileName#" output="#CFHTTP.FileContent#">

on my pc I obtain a not readable PDF file.

Same result width

<cfdocument FORMAT="pdf">#CFHTTP.FileContent#</CFDOCUMENT>.


Can anyone help me, please?
Bye
This topic has been closed for replies.
Correct answer CFcippa
TNKS so much, now it works.

Have a nice weekend.

Bye

2 replies

BKBK
Community Expert
Community Expert
July 21, 2006
!
BKBK
Community Expert
Community Expert
July 21, 2006
Add the attribute getAsBinary="yes" to the cfhttp tag.

CFcippaAuthorCorrect answer
Participant
July 21, 2006
TNKS so much, now it works.

Have a nice weekend.

Bye