2016-06-29 34 views
0

我們安裝了GPL ghostscript版本gs9.18。如何使用ghostscript tiffcp命令

按照文檔
http://www.ghostscript.com/doc/tiff/html/man/tiffcp.1.html 我們可以用tiffcp命令。但是,當我使用下面的命令時,它給出了錯誤。 有人可以告訴我如何使用ghostscript使用tiffcp。

D:\>D:\capfmw\gs\gs9.18\bin\gswin64c.exe tiffcp -c none -sOutputFile="D:\testima 
gefolder\ghostscript-converted-tiffs\test1.tif" D:\testimagefolder\wfr\264688.ti 
ff 
GPL Ghostscript 9.18 (2015-10-05) 
Copyright (C) 2015 Artifex Software, Inc. All rights reserved. 
This software comes with NO WARRANTY: see the file PUBLIC for details. 
Error: /undefinedfilename in (tiffcp) 
Operand stack: 

Execution stack: 
    %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval- 
- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- fa 
lse 1 %stopped_push 
Dictionary stack: 
    --dict:1189/1684(ro)(G)-- --dict:0/20(G)-- --dict:78/200(L)-- 
Current allocation mode is local 
Last OS error: No such file or directory 
GPL Ghostscript 9.18: Unrecoverable error, exit code 1 

回答

0

這不是Ghostscript文檔的一部分,它是LibTiff文檔的一部分。

Ghostscript使用LibTiff創建TIFF輸出,並且作爲我們GPL一致性的一部分,我們包括整個LibTiff發行版,包括文檔。

Tiffcp是libtiff的一部分,不是Ghostscript的一部分,如果你想使用它,你需要構建libtiff實用程序。請注意,由於您使用Windows,因此您將不會擁有源代碼包,因此您需要使用Git來克隆我們的存儲庫才能獲得LibTiff。或者,你可以簡單地從here

拿起libtiff