<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: DOMPDF Attachment issue in IE (Internet Explorer)</title>
	<atom:link href="http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/feed/" rel="self" type="application/rss+xml" />
	<link>http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
	<description>Courage to do something...</description>
	<lastBuildDate>Mon, 08 Mar 2010 18:51:01 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: alto</title>
		<link>http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/comment-page-1/#comment-1786</link>
		<dc:creator>alto</dc:creator>
		<pubDate>Mon, 18 May 2009 14:59:32 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/#comment-1786</guid>
		<description>Please help how do i convert pdf with multiple page, when i try to convert pdf it only gives me one page

thanks</description>
		<content:encoded><![CDATA[<p>Please help how do i convert pdf with multiple page, when i try to convert pdf it only gives me one page</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy D</title>
		<link>http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/comment-page-1/#comment-1775</link>
		<dc:creator>Andy D</dc:creator>
		<pubDate>Tue, 12 May 2009 14:19:30 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/#comment-1775</guid>
		<description>Yeah, it still fails if session_start is the first line.
First line, last line, same result.

What I may have to do, if I can&#039;t figure out a way to get around it, is to load the page, do all the work to build the html, and then put the data into a hidden form field, submit the form to the same page and check to make sure the $_post field isn&#039;t empty, then show it with dompdf...

Round about but at least it should work.</description>
		<content:encoded><![CDATA[<p>Yeah, it still fails if session_start is the first line.<br />
First line, last line, same result.</p>
<p>What I may have to do, if I can&#8217;t figure out a way to get around it, is to load the page, do all the work to build the html, and then put the data into a hidden form field, submit the form to the same page and check to make sure the $_post field isn&#8217;t empty, then show it with dompdf&#8230;</p>
<p>Round about but at least it should work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammad Sajjad Hossain</title>
		<link>http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/comment-page-1/#comment-1772</link>
		<dc:creator>Mohammad Sajjad Hossain</dc:creator>
		<pubDate>Tue, 12 May 2009 04:19:02 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/#comment-1772</guid>
		<description>It seems your problem is session specific. Use session_start() as the first statement of the page and see what happens.

For example:
&lt;pre lang=&quot;php&quot;&gt;
&lt;?php
     session_start();

     //all includes
     include(&#039;some_file.php&#039;);
     /**
      * PHP codes
      */
?&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>It seems your problem is session specific. Use session_start() as the first statement of the page and see what happens.</p>
<p>For example:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
     <span style="color: #990000;">session_start</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
     <span style="color: #666666; font-style: italic;">//all includes</span>
     <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'some_file.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #009933; font-style: italic;">/**
      * PHP codes
      */</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Andy D</title>
		<link>http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/comment-page-1/#comment-1770</link>
		<dc:creator>Andy D</dc:creator>
		<pubDate>Mon, 11 May 2009 16:31:49 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/#comment-1770</guid>
		<description>Just using the pdftest.php page worked in IE, but if I put the session_start() anywhere on the page, it fails.
Still works in FF though...</description>
		<content:encoded><![CDATA[<p>Just using the pdftest.php page worked in IE, but if I put the session_start() anywhere on the page, it fails.<br />
Still works in FF though&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy D</title>
		<link>http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/comment-page-1/#comment-1769</link>
		<dc:creator>Andy D</dc:creator>
		<pubDate>Mon, 11 May 2009 16:29:31 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/#comment-1769</guid>
		<description>I played around with it a little more, and part of the code I was using to create the page was an include that had session_start(); to access some session variables (such as username) in order to load the correct information.
when I removed the session_start from the page, it fixed that problem, but it won&#039;t give me all the correct data because it&#039;s not loading the session data.

Now I just have to figure out how to either make session_start() work with dompdf in IE, or figure out how to get the data I need without using it at all...</description>
		<content:encoded><![CDATA[<p>I played around with it a little more, and part of the code I was using to create the page was an include that had session_start(); to access some session variables (such as username) in order to load the correct information.<br />
when I removed the session_start from the page, it fixed that problem, but it won&#8217;t give me all the correct data because it&#8217;s not loading the session data.</p>
<p>Now I just have to figure out how to either make session_start() work with dompdf in IE, or figure out how to get the data I need without using it at all&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mohammad Sajjad Hossain</title>
		<link>http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/comment-page-1/#comment-1768</link>
		<dc:creator>Mohammad Sajjad Hossain</dc:creator>
		<pubDate>Mon, 11 May 2009 16:04:06 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/#comment-1768</guid>
		<description>The change you made seems alright. Try using following code:

&lt;pre lang=&quot;php&quot;&gt;
$options[&#039;Attachment&#039;] = 1;
$options[&#039;Accept-Ranges&#039;] = 0;
$options[&#039;compress&#039;] = 1;
$dompdf-&gt;stream(&quot;sample.pdf&quot;, $options);
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>The change you made seems alright. Try using following code:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Attachment'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Accept-Ranges'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$options</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'compress'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$dompdf</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">stream</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;sample.pdf&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$options</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Andy D</title>
		<link>http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/comment-page-1/#comment-1767</link>
		<dc:creator>Andy D</dc:creator>
		<pubDate>Mon, 11 May 2009 14:39:23 +0000</pubDate>
		<guid isPermaLink="false">http://sajjadhossain.com/2008/05/30/dompdf-attachment-issue-in-ie-internet-explorer/#comment-1767</guid>
		<description>I am having the same problem with IE.
I&#039;m using version 0.5.1
My pdflib_adapter.cls.php looks like this starting at line 833:
&lt;pre lang=&quot;php&quot; line=&quot;833&quot;&gt;
    //header(&quot;Cache-Control: private&quot;);
    header(&quot;Content-type: application/pdf&quot;);
    header(&quot;Content-Disposition: $attach; filename=\&quot;$filename\&quot;&quot;);

	if (strstr($_SERVER[&#039;HTTP_USER_AGENT&#039;], &quot;MSIE&quot;))
	{
		 header(&#039;Expires: 0&#039;);
		 header(&#039;Cache-Control: must-revalidate, post-check=0, pre-check=0&#039;);
		 header(&quot;Content-Transfer-Encoding: binary&quot;);
		 header(&#039;Pragma: public&#039;);
		 header(&quot;Content-Length: &quot;.strlen($data));
	}
	else
	{
		 header(&quot;Cache-Control: private&quot;);
		 header(&quot;Content-Transfer-Encoding: binary&quot;);
		 header(&#039;Expires: 0&#039;);
		 header(&#039;Pragma: no-cache&#039;);
		 header(&quot;Content-Length: &quot;.strlen($data));
	}
&lt;/pre&gt;
When I use $dompdf-&gt;stream(&quot;sample.pdf&quot;, array(&quot;Attachment&quot; =&gt; 0)); nothing happens at all, when I remove the array(&quot;Attachment&quot; =&gt; 0) the save file dialog pops up, but then an error appears saying that the page can&#039;t be loaded.

Just checking to see if I did anything wrong with your instructions.</description>
		<content:encoded><![CDATA[<p>I am having the same problem with IE.<br />
I&#8217;m using version 0.5.1<br />
My pdflib_adapter.cls.php looks like this starting at line 833:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">    <span style="color: #666666; font-style: italic;">//header(&quot;Cache-Control: private&quot;);</span>
    <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-type: application/pdf&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-Disposition: <span style="color: #006699; font-weight: bold;">$attach</span>; filename=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$filename</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">strstr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'HTTP_USER_AGENT'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;MSIE&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		 <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Expires: 0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		 <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Cache-Control: must-revalidate, post-check=0, pre-check=0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		 <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-Transfer-Encoding: binary&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		 <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Pragma: public'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		 <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-Length: &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">else</span>
	<span style="color: #009900;">&#123;</span>
		 <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Cache-Control: private&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		 <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-Transfer-Encoding: binary&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		 <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Expires: 0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		 <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Pragma: no-cache'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		 <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Content-Length: &quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$data</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>When I use $dompdf-&gt;stream(&#8220;sample.pdf&#8221;, array(&#8220;Attachment&#8221; =&gt; 0)); nothing happens at all, when I remove the array(&#8220;Attachment&#8221; =&gt; 0) the save file dialog pops up, but then an error appears saying that the page can&#8217;t be loaded.</p>
<p>Just checking to see if I did anything wrong with your instructions.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
