Ruby:阅读 PDF 文件 [英] Ruby: Reading PDF files

查看:29
本文介绍了Ruby:阅读 PDF 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种快速可靠的方法来读取/解析 Ruby 中的大型 PDF 文件(在 Linux 和 OSX 上).

I'm looking for a fast and reliable way to read/parse large PDF files in Ruby (on Linux and OSX).

直到现在我发现了相当古老和简单的PDF-toolkit(一个PDF-toolkit="http://en.wikipedia.org/wiki/Pdftotext" rel="noreferrer">pdftotext-wrapper) 和 PDF 阅读器,它无法读取我的大部分文件.尽管这两个库提供了我正在寻找的功能.

Until now I've found the rather old and simple PDF-toolkit (a pdftotext-wrapper) and PDF-reader, which was unable to read most of my files. Though the two libraries provide exactly the functionality I was looking for.

我的问题:我错过了什么吗?有没有更适合(更快、更可靠)来解决我的问题的工具?

My question: Have I missed something? Is there a tool that is better suited (faster and more reliable) to solve my problem?

推荐答案

您可能会发现 Docsplit 很有用:

You might find Docsplit useful:

Docsplit 是一个命令行实用程序和 Ruby 库,用于将文档拆分为其组成部分:可搜索的 UTF-8 纯文本、任何格式的页面图像或缩略图、PDF、单页和文档元数据(标题、作者、页数...)

Docsplit is a command-line utility and Ruby library for splitting apart documents into their component parts: searchable UTF-8 plain text, page images or thumbnails in any format, PDFs, single pages, and document metadata (title, author, number of pages...)

这篇关于Ruby:阅读 PDF 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆