我一直在使用ghostscript来执行PDF从图像生成单页图像。现在我需要能够从pdf中拉出多个页面并产生一个长的垂直图像。Ghostscript Multipage PDF to PNG
有没有一个论点,我错过了,这将允许这?
到目前为止我用下面的参数,当我叫出的ghostscript:
string[] args ={
"-q",
"-dQUIET",
"-dPARANOIDSAFER", // Run this command in safe mode
"-dBATCH", // Keep gs from going into interactive mode
"-dNOPAUSE", // Do not prompt and pause for each page
"-dNOPROMPT", // Disable prompts for user interaction
"-dFirstPage="+start,
"-dLastPage="+stop,
"-sDEVICE=png16m",
"-dTextAlphaBits=4",
"-dGraphicsAlphaBits=4",
"-r300x300",
// Set the input and output files
String.Format("-sOutputFile={0}", tempFile),
originalPdfFile
};
的是它在某种程度上可以在脚本/ bash的水平,离不开高水平代码的接线起来,像上面C#。 – Supra 2015-12-07 09:57:32