ABCPdf - Unable to render HTML. Unable to load page
Asked Answered
C

5

10

I'm using ABCPdf to convert HTML to a PDF. I'm using the method:

AddImageUrl()

This works fine in Dev and UAT, but on Production I continuously get the message:

Unable to render HTML. Unable to load page

Anyone see this before? Need more info?

-Ev

Charlenacharlene answered 2/3, 2011 at 6:23 Comment(0)
T
3

I guess you are tying to do URL->pdf generation. It is difficult to directly to do URL->pdf conversion. We ended up URL-Save HTML in local folder ->read HTML and convert to PDF-> delete HTML file from folder - tricky approach but it works. The only flaw is that you need to give read/write permission on a folder on server. Its still better than decreasing security settings.

Taeniafuge answered 31/5, 2011 at 12:35 Comment(0)
B
2

have you take a look at this http://www.itjungles.com/dotnet/abc2pdf-unable-to-render-html

Booboo answered 22/3, 2011 at 9:53 Comment(0)
A
2

The default timeout for abcpdf is 15 seconds. If the page is taking longer than 15 seconds, you will get this exception.

Add the line below just after object creation of the document to resolve the issue.

theDoc.XHtmlOptions.Timeout = 10000000;
Aggressor answered 2/11, 2017 at 9:51 Comment(0)
J
1

I found by working backwards (removing elements) from a target html page that omitting the tag (of all things) created this error. also, calling localhost in the target url generated this error.

Justajustemilieu answered 11/9, 2013 at 20:40 Comment(0)
C
0

I have no idea what caused this error, but I stopped the scheduled task that was running, then restarted it and it's worked fnie ever since.

Charlenacharlene answered 7/4, 2011 at 4:1 Comment(2)
care to explain a little more please?Crowboot
Maybe you can send them an email and ask them what they think about the real reason. Their support team is really responsive and eager to improve the software.Radu

© 2022 - 2024 — McMap. All rights reserved.