• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Get PDF from another site

Community Beginner ,
Jul 21, 2006 Jul 21, 2006

Copy link to clipboard

Copied

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
TOPICS
Advanced techniques

Views

463

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Jul 21, 2006 Jul 21, 2006
TNKS so much, now it works.

Have a nice weekend.

Bye

Votes

Translate

Translate
Community Expert ,
Jul 21, 2006 Jul 21, 2006

Copy link to clipboard

Copied

Add the attribute getAsBinary="yes" to the cfhttp tag.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 21, 2006 Jul 21, 2006

Copy link to clipboard

Copied

TNKS so much, now it works.

Have a nice weekend.

Bye

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 21, 2006 Jul 21, 2006

Copy link to clipboard

Copied

LATEST
!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation