【问题标题】:pdftotext output different on Windows 7 PC and linux server, why?pdftotext 在 Windows 7 PC 和 linux 服务器上输出不同,为什么?
【发布时间】:2013-02-03 13:57:29
【问题描述】:

我在两台机器上使用相同版本的 xpdf。但是,在 Windows 7 PC 上创建的 .txt 文件与在 Ubuntu 12.04 linux 服务器上创建的文件不同。 Windows 7 .txt 文件格式良好,带有许多换行符,使得解析相当容易。但是,linux 版本根本不包含任何换行符。 Windows 7 上的 pdftotext 是否有我需要在 linux 上运行时显式调用的选项?

【问题讨论】:

    标签: windows-7 ubuntu-12.04 pdftotext


    【解决方案1】:

    通过阅读以下 http://linux.die.net/man/1/pdftotext 手册页,我看到以下内容:

    -eol unix | dos | mac
    

    您可以尝试使用以下标志执行,看看是否可以解决问题:

    pdftotext -eol dos 
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-01-03
      • 2022-06-16
      • 2019-09-05
      • 2017-09-28
      • 1970-01-01
      • 2012-11-11
      • 1970-01-01
      相关资源
      最近更新 更多