gpt4 book ai didi

c++ - 如何将 .pdf 的文章摘要放入我的 C++ 程序中

转载 作者:行者123 更新时间:2023-11-28 03:21:13 26 4
gpt4 key购买 nike

我正在寻找一些阅读 .pdf 文件的方法,但我无法从中得到任何东西,我可能需要一个库,但我发现的所有选项都非常困惑和困难处理。

我想知道哪种方式对我来说是完成这项任务的最佳方式,即搜索 .pdf 并获取其摘要部分中的内容。 (这是文本)

最佳答案

最简单、成本最低的方法是使用流行且为其他程序员所知的开源库。

在尝试从头开始编写您自己的 PDF 阅读器之前,请查看以下内容:

解析:

  • PoDoFo

    The PoDoFo library is a free, portable C++ library which includes classes to parse PDF files and modify their contents into memory. The changes can be written back to disk easily. The parser can also be used to extract information from a PDF file (for example the parser could be used in a PDF viewer). Besides parsing PoDoFo includes also very simple classes to create your own PDF files. All classes are documented so it is easy to start writing your own application using PoDoFo.

生成:

  • LibHaru

    Haru is a free, cross platform, open-sourced software library for generating PDF written in ANSI-C. It can work as both a static-library (.a, .lib) and a shared-library (.so, .dll).

  • panda

    A PDF generation API written in C

关于c++ - 如何将 .pdf 的文章摘要放入我的 C++ 程序中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15369717/

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