求救:将PDF格式转换成HTM格式的.带将word转换成htm格式的
以前做的站上面上传只能上传OFFICE文档或者EXCEL什么的,,装服务器的时候还要装OFFICE最近老总下命令说要改成直接可以上传PDF格式的文件,PDF格式的文件上传以后直接就可以浏览,谁有办法??急啊 求各位帮忙
If fileEXT=".doc" Then '如果是Word文档
Set ObjOffice=Server.Createobject("Word.Application") '建立 Word应用程序对象
ObjOffice.Visible=False '对象不可视
Set WordDoc = ObjOffice.Documents.Open(Server.mappath(filename)) '建立文档对象
WordDoc.SaveAs Server.mappath(PreFileName)&".htm",8
fileEXT = ".htm"
response.write Server.mappath(PreFileName)&".htm"
response.write Server.mappath(filename)
'response.write filename
WordDoc.Close '关闭文档
ObjOffice.Quit '关闭应用程序对象
Set ObjOffice=Nothing
end If