evopdf

What could cause EvoPDF “unable to render html” exception when deployed to Azure Website

删除回忆录丶 提交于 2019-12-30 11:56:25
问题 Using EvoPDF for a .Net web application works locally, however once deployed to a Microsoft Azure website it throws a generic exception: "unable to render html". Stack trace: [Exception: Could not render the HTML string.] EvoPdf.HtmlToImageConverter.ᜀ(String A_0, String A_1, String A_2, ᜴& A_3, Hashtable& A_4) +2129 EvoPdf.HtmlToPdfConverter.ᜀ(String A_0, String A_1, String A_2, String A_3, Boolean A_4) +8369 EvoPdf.HtmlToPdfConverter.ᜀ(Stream A_0, String A_1, String A_2, String A_3, String A

Cannot apply CSS to the html string

China☆狼群 提交于 2019-12-22 05:42:10
问题 I am trying to integrate evoPDF on my asp.net app. I am sending part of html from my html file onclick through ajax. Everything works fie till this part. Now, when I invoke these methods from EvoPdf API. 1. GetPdfBytesFromHtmlStream(Stream, Encoding,urlbase) 2. SavePdfFromHtmlStringToFile(String html,string filename,urlbase) My html chunk I am sending is something like <ol class = "lol"> <li> HEY </li> <li> Now </li> </ol> The Css which is in the external file is something like .lol {

cannot apply external CSS even after providing fully qualified URL in HTML String

試著忘記壹切 提交于 2019-12-12 03:29:46
问题 body {} .table{ background-color:aqua } this is my StyleSheet1.css saved in my local at C:\Users\ingyadav\Documents\Visual Studio 2015\Projects\StyleSheet1.css <html> <head> <link rel="stylesheet" href="file:///C:/Users/ingyadav/Documents/Visual Studio 2015/Projects/StyleSheet1.css" type="text/css" /> </head> <body> <table class="table" border="1" style="width:300px;height:500px"> <tr style="width:auto"> <td style="width:150px;height:500px"></td> <td> <table border="1" style="width:150px

Evo pdf does not work with localhost

假装没事ソ 提交于 2019-12-11 11:14:40
问题 I m using evo pdf to convert html to pdf file, PdfConverter pdfConverter = new PdfConverter(); //license, credantials pdfConverter.PdfHeaderOptions.HeaderHeight = 70; pdfConverter.PdfHeaderOptions.DrawHeaderLine = false; pdfConverter.PdfFooterOptions.TextArea = new TextArea(495, 10, "Sayfa &p; / &P;", new System.Drawing.Font("Arial", 8)); pdfConverter.PdfFooterOptions.FooterHeight = 20; pdfConverter.PdfFooterOptions.DrawFooterLine = false; pdfConverter.PdfDocumentOptions.RightMargin = 20;

EvoPDF library fails on Windows Azure hosted site

半腔热情 提交于 2019-12-10 14:45:53
问题 The EvoPDF HTML to PDF conversion library (http://www.evopdf.com/) claims it supports the Windows Azure Cloud platform, however I can't get it to work. I get the exception: [Exception: Could not get conversion result header. Data receive error. Could not receive data. Error code: 109] EvoPdf.HtmlToPdf.ImgConverter.GetLayoutFromUrl(String url, ps& htmlParseInfo) +622 EvoPdf.HtmlToPdf.PdfConverter.ConvertAndGetPdfDocument(String url, String htmlString, String baseUrl, String internalLinksDocUrl

PDF conversion suddenly fails if reading stylesheet from SSL

我怕爱的太早我们不能终老 提交于 2019-12-08 00:44:33
问题 I've been using EvoPdf version 3.5 without problem for long but all of a sudden it can’t read a stylesheet from SSL. string html = "<link href=\"https://www.domain.com/styles.css\" rel=\"stylesheet\" type=\"text/css\" />Test"; PdfConverter pdfConverter = new PdfConverter(); byte[] bytes = pdfConverter.GetPdfBytesFromHtmlString(html); It works fine if loading stylesheet from http . And on another IIS the stylesheet can be read from SSL. I have no idea about how to troubleshoot this. Can it be

PDF conversion suddenly fails if reading stylesheet from SSL

旧城冷巷雨未停 提交于 2019-12-06 13:41:12
I've been using EvoPdf version 3.5 without problem for long but all of a sudden it can’t read a stylesheet from SSL. string html = "<link href=\"https://www.domain.com/styles.css\" rel=\"stylesheet\" type=\"text/css\" />Test"; PdfConverter pdfConverter = new PdfConverter(); byte[] bytes = pdfConverter.GetPdfBytesFromHtmlString(html); It works fine if loading stylesheet from http . And on another IIS the stylesheet can be read from SSL. I have no idea about how to troubleshoot this. Can it be a DNS issue? The reason was that SSL 3.0 was disabled on the server and versions of EVO HTML to PDF

Cannot apply CSS to the html string

你。 提交于 2019-12-05 08:22:46
I am trying to integrate evoPDF on my asp.net app. I am sending part of html from my html file onclick through ajax. Everything works fie till this part. Now, when I invoke these methods from EvoPdf API. 1. GetPdfBytesFromHtmlStream(Stream, Encoding,urlbase) 2. SavePdfFromHtmlStringToFile(String html,string filename,urlbase) My html chunk I am sending is something like <ol class = "lol"> <li> HEY </li> <li> Now </li> </ol> The Css which is in the external file is something like .lol { background-color: red; } According to the documentation the third argument must be the full url of the

What could cause EvoPDF “unable to render html” exception when deployed to Azure Website

柔情痞子 提交于 2019-12-01 13:02:27
Using EvoPDF for a .Net web application works locally, however once deployed to a Microsoft Azure website it throws a generic exception: "unable to render html". Stack trace: [Exception: Could not render the HTML string.] EvoPdf.HtmlToImageConverter.ᜀ(String A_0, String A_1, String A_2, ᜴& A_3, Hashtable& A_4) +2129 EvoPdf.HtmlToPdfConverter.ᜀ(String A_0, String A_1, String A_2, String A_3, Boolean A_4) +8369 EvoPdf.HtmlToPdfConverter.ᜀ(Stream A_0, String A_1, String A_2, String A_3, String A_4, Boolean A_5) +58 EvoPdf.HtmlToPdfConverter.ᜁ(String A_0, String A_1, String A_2, String A_3,