|
Rank: Newbie Groups: Member
Joined: 9/5/2013 Posts: 9
|
I am using MVC to Pdf and I have a .cshtml view that will not render to Pdf. In Chrome, it says "Loading" in the pdf viewer but it never loads. (Note: I am using the [EO.Pdf.Mvc5.RenderAsPDF(ResultAsDownload = false)] attribute.)
Running the URL through Google's Advanced Rest Client, it says "Response does not contain any data." And the .pdf file is 0 bytes.
If I remove most of the code from my view, and just leave a simple html page it works fine. The view has quite a bit of razor code in it, so I wonder if something is conflicting with EO.
Does someone know what might be going on here?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
We can't think of anything that can cause that. It is possible for you to identify what's causing it and isolate it into a test case?
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 9/5/2013 Posts: 9
|
I need a way to debug what EO is doing, since it is occurring within the EO engine. Are there debug symbol files available?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
No. There is no symbol file. Not only that, the release build are obfuscated, so the code flow/symbol names are intentionally scrambled. As such it's almost not possible for you to debug into our code. So the best option is for you to isolate the problem and send a test project to us so that we can debug it here in our environment.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 9/5/2013 Posts: 9
|
I found the line of html that was causing the issue.
<a onclick="Emd.ScrollToTop(event)">Back to top</a>
If href="#" is added then it works. Or if the anchor tag is changed to a span.
An anchor tag without an href attribute caused the problem.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Thank you very much for the update. Please check if you are running the latest version. We have fixed a similar issue recently. The version number for the latest EO.Pdf.dll is 5.0.65.2.
|
|
Rank: Newbie Groups: Member
Joined: 9/5/2013 Posts: 9
|
Yes, it is indeed fixed in the latest version. Thank you. I was on version 5.0.60.2.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Great. Thank you very much for confirming the fix!
|
|