2011-11-11 58 views

回答

2

我認爲解決方案應該使用像ghostscript這樣的外部程序來構建你的jpg。

var exec = require('child_process').exec; 

exec('gs -dNOPAUSE -sDEVICE=jpeg -r144 -sOutputFile=p%03d.jpg file.pdf' , function(err) { 
    if (err) { 
     // something went wrong 
    } else { 
     // everything went good do something after the process is completed 
    } 
}); 
+0

感謝鬼腳本的信息,似乎我更進一步解決了這個問題:) –