ABCPdf - Cannot display HTML. Failed to load page.

I use ABCPdf to convert HTML to PDF. I am using the method:

AddImageUrl() 

This works fine in Dev and UAT, but on Production I constantly get a message:

Cannot display HTML. Unable to load page

Has anyone seen this before? Need more info?

-ev

+8
abcpdf
source share
5 answers

I assume that you are attached to creating URL-> pdf. It is difficult to directly convert URL-> PDF. We ended the URL-Save HTML in a local folder -> read HTML and convert to PDF-> delete an HTML file from a folder - a tricky approach, but it works. The only drawback is that you need to grant permission to read and write to the folder on the server. Its still better than reducing security settings.

+3
source share
+2
source share

I found, turning back (deleting elements) from an html landing page that didn't specify a tag (of all things), created this error. also, the localhost caller in the target url generated this error.

+1
source share

I don’t know what caused this error, but I stopped the scheduled task that was running, and then restarted it, and since then it has been working fnie.

0
source share

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

Add the line below immediately after creating the document object to solve the problem.

 theDoc.XHtmlOptions.Timeout = 10000000; 
0
source share

All Articles