PDF Download and back button

PDF Download and back button

Forum member · Jun 11, 2012
I am using DynamicPDF 6.0.2.40 (Build 18767). There seems to be a problem downloading PDFs in IE9 in a certain combination with the back button. A customer reported this problem, I can reproduce it on our QA systems, but I cannot reproduce it on the development systems (even though IE9 and OS version are identical). My page has an "Update" button that causes a postback to the same page, and a link to download the PDF. Here are the repro steps: 1. Click the "Update" button. The button causes a postback but doesn't do anything else. 2. Click the link to download the PDF. PDF loads successfully. 3. Click the back button. After step #3 the user is shown a page with the binary data from the PDF starting with "%PDF-1.4 % 1 0 obj ". It is like the PDF data is being sent without the proper headers. Step #2 has code that is basically like this: document.DrawToWeb(filename, true); HttpContext.Current.Response.End(); I've only seen this problem occur on IE9, it doesn't happen on other browsers. Do you have any ideas of what I could try to fix the problem? I'm not sure what else to try.

Re: PDF Download and back button

Support · Jun 12, 2012
Hello, Please download the latest build of DynamicPDF from the customer area and use it in your project to see if that resolves the issue. If you still see the same issue even after using the latest build dll, please send over the aspx page including the code behind to our support team at [^a|mailto:support@cete.com|opennewwindow|support@cete.com^]. Thanks, ceTe Software Support Team.

Re: PDF Download and back button

Forum member · Jun 12, 2012
Ok, for now I removed the button that was causing the problem. Without the button the problem does not occur. I will look into upgrading to the newest version of DynamicPDF in the future.