2013-09-30 43 views
0

你好這裏是我的腳本窗,我試圖從PDF gs_toolbin_extractFonts.ps字體可在gs_toolbin_extractFonts.ps提取字體時出現gostscript錯誤?

C:\Program Files\gs\gs9.10\bin>gswin32c.exe -q -dExtractSubsets -dNODISPLAY gs_toolbin_extractFonts.ps -c d:\anil\telugu\marripalli.pdf 
Error: /undefined in d:\anil\telugu\marripalli.pdf 
Operand stack: 

Execution stack: 
    %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_p 
ush .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- 
Dictionary stack: 
    --dict:1179/1684(ro)(G)-- --dict:0/20(G)-- --dict:79/200(L)-- 
Current allocation mode is local 
Last OS error: No such file or directory 
GPL Ghostscript 9.10: Unrecoverable error, exit code 1 

回答

0

你的命令行雲「-c文件名」 -c說「下面是在PostScript,直到我們得到一個-f',所以解釋器試圖將你的文件名視爲PostScript,這並不意外地失敗。

extractfonts.ps不會提取文本,它會提取字體,如果要提取文本,請改爲使用txtwrite設備。

+0

對不起,我想只提取字體 – AnilHoney

+0

然後,您可以使用extractfonts,但刪除-c開關 – KenS