Ruby:读取PDF文件 [英] Ruby: Reading PDF files
问题描述
我正在寻找一种快速,可靠的方式来读取/解析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工具包( ="http://en.wikipedia.org/wiki/Pdftotext" rel ="noreferrer"> pdftotext -包装器)和 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 有用:
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屋!