我一直在使用 ghostscript 来做 pdf 以从 pdf 生成单个页面的图像。现在我需要能够从 pdf 中提取多个页面并生成一个长的垂直图像。
有没有我遗漏的论点允许这样做?
到目前为止,当我调用 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
};