-1

I have the following:

<cfpdf action="read" name="myPdf" source="c:\test.pdf">
<cfcontent variable="#toBinary(myPdf)#" type="application/pdf" />

And it does display the pdf file correctly. But I need to add a few buttons to the page. I've tried the following, but Safari on the iPad doesn't display this very well:

<iframe width="550" height="600" src="c:\test.pdf" frameborder="0"></iframe>

Q: Can I display html before I display the cfcontent tag?

David Faber
  • 12,277
  • 2
  • 29
  • 40
Phillip Senn
  • 46,771
  • 90
  • 257
  • 373
  • Is it the scrolling issue? – David Faber Feb 16 '15 at 21:49
  • I believe the answer is, no. – Dan Bracuk Feb 16 '15 at 21:57
  • 1
    *add a few buttons to the page* Just to clarify, you mean add to the parent page (not the iframe), correct? Also, have you looked at [other options from embedding pdf files?](http://stackoverflow.com/questions/291813/recommended-way-to-embed-pdf-in-html). (Nothing to do with the question, but you probably do not need the cfpdf "read". Instead use the cfcontent file attribute.) – Leigh Feb 16 '15 at 21:58
  • @Leigh Thanks. The solution we used was the embed tag, which was from your comment. – Phillip Senn Feb 17 '15 at 17:46
  • No problem. Do not forget to post that as answer, when you get a chance. So it is easier for the next guy to find. – Leigh Feb 17 '15 at 19:36

1 Answers1

0

You can use the embed tag as @Leigh suggested in the comments.

Phillip Senn
  • 46,771
  • 90
  • 257
  • 373