gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 22:07:00 26 4
gpt4 key购买 nike

我是 .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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com