<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>john kelly - pdf</title>
    <link>http://blog.johnkelly.co.uk/</link>
    <description>blackrock consultants</description>
    <language>en-us</language>
    <copyright>john kelly</copyright>
    <lastBuildDate>Fri, 17 Mar 2006 11:25:28 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.2.8279.16125</generator>
    <managingEditor>mail@johnkelly.co.uk</managingEditor>
    <webMaster>mail@johnkelly.co.uk</webMaster>
    <item>
      <trackback:ping>http://blog.johnkelly.co.uk/Trackback.aspx?guid=26a47232-46ba-4fef-b179-38a112c41883</trackback:ping>
      <pingback:server>http://blog.johnkelly.co.uk/pingback.aspx</pingback:server>
      <pingback:target>http://blog.johnkelly.co.uk/PermaLink,guid,26a47232-46ba-4fef-b179-38a112c41883.aspx</pingback:target>
      <dc:creator>Your DisplayName here!</dc:creator>
      <wfw:comment>http://blog.johnkelly.co.uk/CommentView,guid,26a47232-46ba-4fef-b179-38a112c41883.aspx</wfw:comment>
      <wfw:commentRss>http://blog.johnkelly.co.uk/SyndicationService.asmx/GetEntryCommentsRss?guid=26a47232-46ba-4fef-b179-38a112c41883</wfw:commentRss>
      <title>Embed .PDFs in HTML Pages</title>
      <guid isPermaLink="false">http://blog.johnkelly.co.uk/PermaLink,guid,26a47232-46ba-4fef-b179-38a112c41883.aspx</guid>
      <link>http://blog.johnkelly.co.uk/2006/03/17/EmbedPDFsInHTMLPages.aspx</link>
      <pubDate>Fri, 17 Mar 2006 11:25:28 GMT</pubDate>
      <description>&lt;p&gt;
Sometimes being automatically offered the choice to download or open a .pdf is desired.&amp;nbsp;
There are different methods to do this, using Active X, Java, JavaScript and ASP coding.&amp;nbsp;
Here are several different ways to publish pdf files on IIS, some of which giving
an open/save choice without and scripting.
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Method1 - Embed&lt;/strong&gt;
&lt;/p&gt;
&lt;pre&gt;Use: &amp;lt;EMBED src="/path/to/file" width="600" height="600" type=application/pdf href="/path/to/file"&amp;gt;&amp;lt;/EMBED&amp;gt; &amp;lt;NOEMBED&amp;gt;Your browser does not support embedded PDF files.&amp;lt;/NOEMBED&amp;gt;&lt;/pre&gt;
&lt;p&gt;
note: works in IE6, Firefox 1.5; add "href=" for netscape
&lt;/p&gt;
&lt;p&gt;
&lt;embed src=/content/binary/13predictions.pdf width=600 height=600 type=application/* href="/content/binary/13predictions.pdf"&gt;&lt;/embed&gt; 
&lt;noembed&gt;
Your browser does not support embedded PDF files. &lt;a href="http://blog.johnkelly.co.uk/content/binary/13predictions.pdf"&gt;Open
file by clicking here.&lt;/a&gt;
&lt;/noembed&gt;
&lt;p&gt;
&lt;hr&gt;
&lt;strong&gt;Method2 -&lt;/strong&gt; 
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://blog.johnkelly.co.uk/content/binary/13predictions.pdf"&gt;13predictions.pdf
(62.89 KB)&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;hr&gt;
&lt;strong&gt;Method3 -&lt;/strong&gt; 
&lt;br&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://blog.johnkelly.co.uk/content/binary/13predictions.pdf.jdk"&gt;download &lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;hr&gt;
&lt;strong&gt;Method4 -&lt;/strong&gt; 
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://blog.johnkelly.co.uk/content/binary/13predictions-2.pdf"&gt;download-2 &lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;hr&gt;
&lt;strong&gt;Method5 - Object&lt;/strong&gt; 
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&amp;lt;OBJECT CLASSID="clsid:CA8A9780-280D-11CF-A24D-444553540000" WIDTH="600" HEIGHT="600"&amp;gt; 
&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;PARAM NAME="SRC" VALUE="path/to/file"&amp;gt; 
&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;PARAM NAME="HREF" VALUE="path/to/file"&amp;gt; 
&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;&lt;font color=#000000&gt;EMBED&lt;/font&gt; SRC="path/to/file"
HEIGHT="500" WIDTH="500" HREF="path/to/file"&amp;gt; 
&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;NOEMBED&amp;gt; 
&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
Your browser does not support embedded PDF files. 
&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/NOEMBED&amp;gt; 
&lt;br&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/EMBED&amp;gt; 
&lt;br&gt;
&amp;lt;/OBJECT&amp;gt; 
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
Note:&amp;nbsp; Due to a bug in FreeTextBox (DasBlog's native editor) this approach works,
briefly, until the post is edited which screws up the EMBED code.
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt; 
&lt;hr&gt;
Method6 - iframe&lt;/strong&gt; 
&lt;p&gt;
&lt;iframe style="HEIGHT: 20em" src="/content/binary/13predictions.pdf" width="100%"&gt;
[Your browser does &lt;em&gt;not&lt;/em&gt; support &lt;code&gt;iframe&lt;/code&gt;, or has been configured
not to display inline frames. You can access &lt;a href="/content/ninary/13predictions.pdf"&gt;the
document&lt;/a&gt; via a link though.]
&lt;/iframe&gt;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;strong&gt; 
&lt;hr&gt;
&lt;/strong&gt; 
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Method7 - ftp&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
A link to the file via an ftp site might open the file in the same window, a new window
or offer an open/save dialog depending on the browser
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://blog.johnkelly.co.uk/aggbug.ashx?id=26a47232-46ba-4fef-b179-38a112c41883" /&gt;</description>
      <comments>http://blog.johnkelly.co.uk/CommentView,guid,26a47232-46ba-4fef-b179-38a112c41883.aspx</comments>
      <category>html</category>
      <category>ie</category>
      <category>pdf</category>
    </item>
  </channel>
</rss>