pdftoppm无法创建输出

时间:2017-10-11 22:01:53

标签: pdf ocr pdftoppm

我在命令提示符下运行pdftoppm,但无法创建任何输出。

这是我的输入

c:\test>pdftoppm -r 600 png W10475.pdf test

这是我在关联的'test'目录中的文件

c:\test>dir
 Volume in drive C is OS
 Volume Serial Number is 32C5-D3A1

 Directory of c:\test

10/11/2017  03:36 PM    <DIR>          .
10/11/2017  03:36 PM    <DIR>          ..
10/06/2017  10:00 PM            42,552 convert.exe
10/06/2017  10:00 PM            42,552 magick.exe
08/08/2017  04:22 PM         1,179,648 pdfinfo.exe
08/08/2017  04:22 PM         1,988,096 pdftoppm.exe
08/08/2017  04:22 PM         1,239,040 pdftotext.exe
06/02/2017  12:24 PM           805,964 tesseract.exe
10/09/2017  02:36 PM         5,076,873 W10475.pdf
10/09/2017  02:37 PM         6,376,241 W10926.pdf
10/09/2017  02:37 PM         7,272,812 W11240.pdf
10/09/2017  02:37 PM        11,403,203 W11285.pdf
10/09/2017  02:37 PM         4,576,258 W11292.pdf
10/09/2017  02:37 PM         5,819,421 W11335.pdf
              12 File(s)     45,822,660 bytes
           2 Dir(s)  53,296,689,152 bytes free

这是我的命令

的输出
pdftoppm version 4.00
Copyright 1996-2017 Glyph & Cog, LLC
Usage: pdftoppm [options] <PDF-file> <PPM-root>
  -f <int>          : first page to print
  -l <int>          : last page to print
  -r <number>       : resolution, in DPI (default is 150)
  -mono             : generate a monochrome PBM file
  -gray             : generate a grayscale PGM file
  -freetype <string>: enable FreeType font rasterizer: yes, no
  -aa <string>      : enable font anti-aliasing: yes, no
  -aaVector <string>: enable vector anti-aliasing: yes, no
  -opw <string>     : owner password (for encrypted files)
  -upw <string>     : user password (for encrypted files)
  -q                : don't print any messages or errors
  -cfg <string>     : configuration file to use in place of .xpdfrc
  -v                : print copyright and version info
  -h                : print usage information
  -help             : print usage information
  --help            : print usage information
  -?                : print usage information

没有抛出任何错误消息,也没有文件写入c:\ test文件夹。我以为pdftoppm.exe会写入调用它的同一个文件夹。我错了,还是没有写出输出?如果是这种情况,我该如何让它生成一些输出。

1 个答案:

答案 0 :(得分:0)

命令必须为:pdftoppm -r 600 -png W10475.pdf test