Skip navigation
Currently Being Moderated

cfcontent and pdf with a destination

Feb 22, 2012 6:10 AM

I am trying to use the cfcontent string and the pdf I have also includes a Acrobat destination..when I enter the destination




it errors out..


Due to cf statements, I then enter




and then it says in the cfcontent error message


file not found


Is there a way to include this type of filename?



  • Currently Being Moderated
    Feb 22, 2012 6:20 AM   in reply to lfred150

    If you have a code question, it's always helpful to include your actual code, rather than describe it.


    One thing you should bear in mind is that the FILE attribute of <cfcontent> references a file (on your file system), not a URI.  So it's inappropriate to include URI-specific elements in that value.


    The fragment part of a URI (the bit after the #) is only relevant ot he browser, so to hit that fragment, it needs to be in the address the browser requested.  It's nothing to do with what you send back (you just send back the document).


    You coudl conceivably use <cfheader> to tell the browser to fetch the URI with the fragment, and then from that URI return the PDF file.  The browser should then - if it suuprts PDF fragments - work out what to do.




    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points