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;
 pdfConverter.PdfDocumentOptions.LeftMargin = 20;
 pdfConverter.PdfDocumentOptions.TopMargin = 20;
 pdfConverter.PdfDocumentOptions.BottomMargin = 20;
 pdfConverter.PdfDocumentOptions.FitWidth = true;

 pdfConverter.SavePdfFromUrlToFile(pdfUrl,path);

and my pdf path starts with localhost

but it is not working with localhost. Is there any way to test evo pdf in my local


回答1:


Does pdfUrl point to a HTML page or a PDF document? It is expected to point to a HTML page which can be a localhost URL without problems as long as the HTML page is loaded well in a browser. The path parameter is expected to be the path to output file on local computer.



来源:https://stackoverflow.com/questions/36608597/evo-pdf-does-not-work-with-localhost

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!