【发布时间】:2016-09-05 08:54:19
【问题描述】:
多年来一直在努力寻找答案。
在我们的 OSX 开发系统上拥有单个二进制 pdftotext 的 0.39 版(使用 brew install poppler 安装。我们找不到其他版本 brew search poppler 只有一个。我们正在尝试查找此特定版本的源代码(在 linux 上编译)。出于某种原因,我们拥有的特定 pdf 文件仅适用于此版本(不是较新版本)。(尝试了其他类似 Ghostscript pdftk 但布局不起作用)。
我已尝试下载 poppler utils (https://poppler.freedesktop.org),但 v0.39 的 utils 在编译时不会提供编译后的二进制文件(只是包装脚本版本)。
有谁知道:
- pdftotext 二进制文件的版本控制如何工作? (与 poplar utils 版本相同?)
- 谁知道旧版本的 pdf 可以在哪里缓存/镜像 - 似乎只能找到最新版本 (3.04)?
- 支持的想法
还是我错过了什么?
在此先感谢,如果有人有指导,不胜感激 本
$ which pdftotext
/usr/local/bin/pdftotext
$ /usr/local/bin/pdftotext -v
pdftotext version 0.39.0
Copyright 2005-2015 The Poppler Developers - http://poppler.freedesktop.org
Copyright 1996-2011 Glyph & Cog, LLC
$ uname
Darwin
下载 poppler-0.39.0.tar.xz, ./configure & make 只提供
in /tmp/poppler-0.39.0/utils
$ ls -lt | grep pdftotext
-rwxr-xr-x 1 ben.forrest wheel 6417 5 Sep 18:48 pdftotext
-rw-r--r--@ 1 ben.forrest wheel 3273 1 Sep 2015 pdftotext.1
in /tmp/poppler-0.39.0/utils
$ file pdftotext
pdftotext: POSIX shell script text executable
brew 安装说明
$ brew search poppler
poppler ✔
$ brew info poppler
poppler: stable 0.39.0 (bottled)
PDF rendering library (based on the xpdf-3.0 code base)
http://poppler.freedesktop.org
Conflicts with: pdftohtml
/usr/local/Cellar/poppler/0.39.0 (473 files, 22.4M) *
Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/poppler.rb
==> Dependencies
Build: xz ✔, pkg-config ✔
Required: cairo ✔, fontconfig ✔, freetype ✔, gettext ✔, glib ✔, gobject-introspection ✔, jpeg ✔, libpng ✔, libtiff ✔, openjpeg ✔
Optional: qt ✔, qt5 ✘, little-cms2 ✔
==> Options
--with-little-cms2
Use color management system
--with-qt
Build Qt backend
--with-qt5
Build Qt5 backend
【问题讨论】: