File sizes?

File sizes?

Forum member · Sep 30, 2008
I have an asp.net 3.5 web app - c# - that merges many documents together. I seem to have hit a wall in IE7. The file is created but the browser cannot display it. This happened after I added to the number of files merged. Previously it was working fine. Firefox will display the document. The file is only 21Mb. I get a generic page telling me IE cannot diaplay the page. That is about all it tells me. If I open IE7 and do a File Open it will display the document. Strange, any ideas?

Re: File sizes?

Support · Sep 30, 2008
Hello, We are able to open the PDFs of size more than 25MB without any problem. There is no restriction on the size of the PDF document. Please double check your IE settings if there is any problem which is causing this. If you are unable to find out the problem then please send over the headers from the page calling the PDF to our [^a|mailto:support@cete.com|Support Team^] so that they can look into it. I would recommend using ieHTTPHearders tool which allows you to capture all IE headers. Run your example once again and send us the headers it returns. Thanks, ceTe Software Support Team.

Re: File sizes?

Forum member · Sep 30, 2008
When I run the ieHTTPHeaders tool the call to my page returns nothing. In my codefile the error gets tripped on this line: Response.End(); this is a better code snippet: document.DrawToWeb(false, "//medntst1/lps/PDFbuilds/PI_" + Uname.Replace(" ", "_") + ".pdf", true); document.Draw("//medntst1/lps/PDFbuilds/PI_" + Uname.Replace(" ", "_") + ".pdf"); document = null; Response.End(); << ERROR and the error message is: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack. I don't know if I am looking at the same thing but when I go to Stack Frame in the IDE my call to Page_Load is there on top. I then get the generic type error page for IE.

Re: File sizes?

Support · Sep 30, 2008
Hello, Can you try the following code and see if you still get the same error message: document.DrawToWeb(false, "//medntst1/lps/PDFbuilds/PI_" + Uname.Replace(" ", "_") + ".pdf", true); Visible = false; Does the file get created using the Draw method you had in the code? If the above code gives errors, please let us know what version of Acrobat and IE are you using? Thanks, ceTe Software Support Team

Re: File sizes?

Forum member · Sep 30, 2008
The Draw method creates the file. I had those lines reversed but it still won't work. I had Acrobat Reader 8 and Acrobat Pro 8. I tried Reader 9 but it still does it. I am using IE7.0.5730.11. I checked the IE options and didn't see anything that indicated something would be prevented. I tried the Visible = false; but it still didn't work.

Re: File sizes?

Forum member · Sep 30, 2008
Normally I get a new IE window with a "File Download" dialog box asking me if I want to Open or Save the file. Clicking Open then displays the PDF in the new window. I get the new IE window but no dialog appears - the window just shows the error.

Re: File sizes?

Support · Sep 30, 2008
What is the exact error that you are getting at this point? And is your goal to be promted each time to either "Save" or "Download" or was this just happening? Thanks, ceTe Software Support Team

Re: File sizes?

Forum member · Oct 1, 2008
There is no specific error given. Like I said it tells me there is something on the Stack (I'll bet that is some call to your dll like document.Draw()). I would rather not see the dialog asking to Open or Save but I have been unable to find a way to avoid that dialog box. I eliminated some of the pages to reduce the size of the file and it now works. I am adding them back in a few at a time to see where that leads me.

Re: File sizes?

Forum member · Oct 1, 2008
I should have made reference to document.DrawToWeb() in the previous post. I believe that is what is on the Stack.

Re: File sizes?

Support · Oct 1, 2008
Hello, We are able to run a similar code without any problem. Please try restarting the IIS and see if it solves your problem. Following is the code we are using for this. Document document = new Document(); document.Pages.Add(new Page()); document.Pages.Add(new Page()); document.DrawToWeb("webPDF.pdf"); document.Draw(@"C:\Temp\testdraw.pdf"); Response.End(); Thanks, ceTe Software Support Team.