pdftotext二进制文件的特定版本(旧版本的poppler-utils版本不同)?

时间:2016-09-05 08:54:20

标签: pdftotext xpdf

一直在挖掘并努力寻找答案。

在我们的OSX开发系统上安装了单个二进制文件pdftotext的版本0.39(使用brew install poppler安装。我们找不到其他版本brew search poppler只有一个版本。我们正试图找到这个特定版本的源代码(在linux上编译)。出于某种原因,我们只能使用这个版本(而不是更新版本)的特定pdf文件。(尝试过其他的东西,比如Ghostscript pdftk,但布局不起作用)。

我已经尝试过下载poppler utils(https://poppler.freedesktop.org)但是在编译时,v1.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&只提供

         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 install notes

    $ 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

1 个答案:

答案 0 :(得分:2)

对于那些可能关心的人,旧版本有一个调用已编译进程的包装器脚本。这个编译过程实际上是在一个“.lib”目录中,这就是为什么它在我的Mac上没有在finder中显示,只能在命令行上找到我遇到的另一个搜索。 #{popplerdir}/utils/.libs/pdftotext。这就是我需要的版本。