如何将html文件转换为pdf文件 [英] How to convert html file into pdf file
本文介绍了如何将html文件转换为pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hello Expert,
我正在使用经典的asp开发发票生成应用程序。
我必须将html页面保存为pdf格式。
Hello Expert,
I am developing invoice generating application using classic asp.
I have to save an html page into pdf format.
推荐答案
您可以使用 PDF crowed
ASPPDFLib.IPdfManager库如下:
You can use PDF crowed
OR
ASPPDFLib.IPdfManager library as following :
IPdfManager objPdf = new PdfManager();
IPdfDocument objDoc = objPdf.CreateDocument( Missing.Value );
objDoc.ImportFromUrl( "http://www.yourdomain.com", "scale=0.6; hyperlinks=true; drawbackground=true", Missing.Value, Missing.Value );
String strFilename = objDoc.Save( Server.MapPath("importfromurl.pdf"), false );
检查以下链接,了解经典ASP - HTML到PDF的转换。可能会给一个更好的开始提供一些想法。
http://stackoverflow.com/questions/440905/how-can-i-create-a-pdf-file-in-classic-asp [< a href =http://stackoverflow.com/questions/440905/how-can-i-create-a-pdf-file-in-classic-asptarget =_ blanktitle =New Window> ^ ]
http://sourceforge.net/projects/aspdf / [ ^ ]
Check the below links for classic ASP - HTML to PDF conversion . Might give some idea for a better start .
http://stackoverflow.com/questions/440905/how-can-i-create-a-pdf-file-in-classic-asp[^]
http://sourceforge.net/projects/aspdf/[^]
这篇关于如何将html文件转换为pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文