wkhtmltopdf不允许将文件保存在文件夹目录中 [英] wkhtmltopdf not allowing to save the file in folder directory
问题描述
//HtmlToPdf("http://localhost:32370/User/PerformancePDF.aspx", "D:\\New1.pdf");
when i use above .. simple folder directiory , its saving however when i use below nothing gets saved in the directory
HtmlToPdf("http://localhost:32370/User/PerformancePDF.aspx", "D:\\Projects\\Actus 6.9 Dev\\ActusAppraisalSystem\\ExportToPDFDocuments\\41\\120\\Objective\\objectives.pdf");
推荐答案
当我们给wkhtmltopdf的路径时,处理后应该生成pdf文件
When we give the path to wkhtmltopdf , where pdf file should be generated after processing
HtmlToPdf("http://localhost:32370/User/PerformancePDF.aspx", "D:\\Projects\\Actus 6.9 Dev\\ActusAppraisalSystem\\ExportToPDFDocuments\\41\\120\\Objective\\objectives.pdf");
这是我的路径如下: -
D:\\Projects \\Actus 6.9 Dev \\ActusAppraisalSystem \\ExportToPDFDocuments \\\ \\\120 \\目标\\objectives.pdf
现在这里如果你c,我选择保存的文件夹中包含空格
Actus 6.9
wkhtmltopdf没有占用空间,也没有将生成的文件处理到该位置,并且甚至不通过错误..它是wkhtmltopdf的一个错误..
...我开始知道如果我从文件夹名称Actus 6.9删除spces到Actus6.9的结论..现在它删除正确的位置并保存相应的文件
This is my path as given below :-
D:\\Projects\\Actus 6.9 Dev\\ActusAppraisalSystem\\ExportToPDFDocuments\\41\\120\\Objective\\objectives.pdf"
Now here if you c , The folders i am choosing to save contain spaces in between
Actus 6.9
wkhtmltopdf doesnt take the space and dont process the generated the file into that location , and also dont even through the error .. its a bug into wkhtmltopdf ..
after reading so much .. i came to know the conclusion that if i remove spces from the folder name Actus 6.9 to Actus6.9 .. Now it detacts the proper location and saves the appropriate file
这篇关于wkhtmltopdf不允许将文件保存在文件夹目录中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!