我认为解决方案应该使用像 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
}
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3193 次 |
| 最近记录: |