2017-02-02 25 views
0

我有一長串的pdf文件,我試圖在單個文件中進行合併。如果我給了命令

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/default -dNOPAUSE -dQUIET -dBATCH -dDetectDuplicateImages -dCompressFonts=true -r150 -sOutputFile=blender_manual.pdf $(ls -v) 

GS退出時錯誤

Error: /undefinedfilename in (1.1) 
Operand stack: 

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

命令的工作,如果我把* .PDF而不是$(LS -v),但在這種情況下,合併中的文件錯誤的順序。我怎樣才能解決這個問題?

回答

0

使用@file語法(請參閱Ghostscript文檔),按您希望處理的順序列出要處理的文件。

相關問題