c# - 将pdf文件转换为excel表格

标签 c# asp.net excel pdf

我是 .net 的新手,我有一个包含三个表格的 pdf,(带有购买详细信息)我的任务是从 pdf 中提取所有 3 个表格,并使用 c# 代码将每个表格转换为 excel 表格(三个 excel 表格)。,我用谷歌搜索了 3 天,我只能找到从 pdf 中提取文本的代码(但没有任何格式),我无法购买任何第三方工具,我需要一种方法来至少以适当的表格格式提取文本,然后我将使用互操作将其转换为 excel,或者直接转换为 excel 的代码,无论我急需什么解决方案,请帮助。

最佳答案

itextpdf支持 c# 从 pdf 中提取信息,但是要回答我们可以提取表的位置:

As described above: you can't get fields from a PDF that looks like a form, if the PDF isn't a form from a technical point of view; you can't get a table from a PDF that looks like a table, if the tabular structure (using tags) is missing inside the PDF.



我从他们那里得到的support panel

关于c# - 将pdf文件转换为excel表格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19078310/

相关文章:

c# - 如何将图像连同 DPI 信息一起保存到剪贴板?

c# - 应用程序与缓存 : Lock mechanism

C# ASP.NET 向单个用户添加属性列表

asp.net - 在代码中设置 Page.Theme 会使 css 文件链接到两次

excel - VBA - 乘列

excel - 在excel中根据纬度和经度计算航向

VBA宏不适用于法语excel

c# - .NET 反射有多贵?

c# - 如果给定父元素下存在某个元素,则仅解析 xml 文件

c# - 如何让我的 WPF 应用程序在 C# 中作为服务运行?