隐藏

C#如何将Pdf转为Html格式

发布:2020/1/15 16:30:42作者:管理员 来源:本站 浏览次数:1054

try {

        Document pdf = new Document(physicalPath);
        var path = "/upload/file/";
          var savepath=  Server.MapPath(Server.UrlDecode(path));
            savepath = savepath + "1111.html";
            pdf.Save(savepath, SaveFormat.Html);
        Response.Write("<a href='"+ path + "1111.html'>" + path + "1111.html</a>");
        }
        catch (Exception ex) {
        
        }