Welcome Guest Search | Active Topics | Sign In | Register

PDF is Not Loading Options
Brentar
Posted: Tuesday, February 25, 2014 2:50:06 PM
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?

eo_support
Posted: Tuesday, February 25, 2014 8:15:31 PM
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!
Brentar
Posted: Wednesday, February 26, 2014 9:23:04 AM
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?
eo_support
Posted: Wednesday, February 26, 2014 9:34:28 AM
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!
Brentar
Posted: Wednesday, February 26, 2014 11:51:16 AM
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.
eo_support
Posted: Wednesday, February 26, 2014 11:58:15 AM
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.
Brentar
Posted: Wednesday, February 26, 2014 3:43:25 PM
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.
eo_support
Posted: Wednesday, February 26, 2014 4:05:29 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Great. Thank you very much for confirming the fix!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.