python - Python - 使用 camelot 以相反的顺序读取 PDF 到 excel
问题描述
我正在使用库 camelot 来阅读 PDF 并使用 Python 导出为 excel。我尝试了两组 PDF 表格。对于一组表格,它可以完美运行。对于另一组 PDF 表单,数字以相反的顺序出现。有谁知道是什么原因导致它以及如何修复它,以便数字处于正常顺序。
这是 PDF 的链接: https ://drive.google.com/file/d/1AOo6a8eBt3-v_UU_OT2p99p3TeW-kk8t/view?usp=sharing 。
这是代码的主要部分:
tables=camelot.read_pdf(SchE_pdf,pages="all")
SchExlsx = ExcelWriter('5471 SchE.xlsx')
for i in list:
tables[i]
tables[i].parsing_report
tables[i].to_excel(SchExlsx,sheet_name=str(i))
解决方案
推荐阅读
- angular - Angular 6 使用外部库,angular json 中的脚本数组
- css - CSS GRID 在网格中避免 ::before 和 ::after
- c# - 如何在另一台计算机上使用 C# 中的数据库运行应用程序
- swift - 为什么在 Xcode 10 中默认不提供并行测试?
- javascript - FIREBASE phoneAuth (LinkWithPhoneNumber)。稍后如何在 Firebase Web 中更改用户的关联电话号码。(nodejs,创建反应应用程序)?
- spring-webflux - WebFilter 中的异步执行
- python - 无法替换数组 Python 中的双倍空格
- ios - 提交之前从 git 中删除的文件
- azure-devops - 在 Azure DevOps 中以 0 字节下载 Azure Blob
- java - 如何使不可更改的java类Serializable?