Now I do not know if there is a better method, but what does seem to work is embedding the pdf with either <object> or <embed>, depending on your needs. Though not highly tested, it worked for me with Safari, Internet Explorer 8 and FF 3.5. (Naturally this assumes the user's browser is configured to actually display pdf's ;).
<!--- MAIN PAGE --->
<h1>PDF within CFDiv</h1>
<cfdiv bind="url:viewer.cfm" />
<!--- VIEWER PAGE --->
<object type="application/pdf" data="myFile1.pdf" width="400" height="300">
No comments:
Post a Comment