没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
C# ,asp.net 实现Pdf文件转html功能
读取硬盘路径下的Pdf文件,转化为html保存到硬盘,上网下载Aspose.Pdf.dll
/// <summary>
/// pdf文件转html Aspose.Pdf.dll
/// </summary>
/// <param name="filename"></param>
/// <param name="pdfFile"></param>
/// <param name="HTMLFile"></param>
/// <returns></returns>
public static string PdftoHtml(string pdfFile, string HTMLFile)
{
string result = "";
// Open the source PDF document
Document pdfDocument = new Document(pdfFile);
// Instantiate HTML SaveOptions object
Aspose.Pdf.HtmlSaveOptions htmlOptions = new Aspose.Pdf.HtmlSaveOptions();
// Specify to split the output into multiple pages
htmlOptions.SplitIntoPages = false;//ture 则按照pdf分多个html显示
// Save the document
pdfDocument.Save(HTMLFile, htmlOptions);
result = "OK";
return result;
读取硬盘路径下的Pdf文件,转化为html保存到硬盘,上网下载Aspose.Pdf.dll
/// <summary>
/// pdf文件转html Aspose.Pdf.dll
/// </summary>
/// <param name="filename"></param>
/// <param name="pdfFile"></param>
/// <param name="HTMLFile"></param>
/// <returns></returns>
public static string PdftoHtml(string pdfFile, string HTMLFile)
{
string result = "";
// Open the source PDF document
Document pdfDocument = new Document(pdfFile);
// Instantiate HTML SaveOptions object
Aspose.Pdf.HtmlSaveOptions htmlOptions = new Aspose.Pdf.HtmlSaveOptions();
// Specify to split the output into multiple pages
htmlOptions.SplitIntoPages = false;//ture 则按照pdf分多个html显示
// Save the document
pdfDocument.Save(HTMLFile, htmlOptions);
result = "OK";
return result;
资源评论
- weenie892022-09-16只能说,下载了个寂寞,最重要的那个都没。不能用
lihongxiu85
- 粉丝: 1
- 资源: 52
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功